Repository: dbuezas/lovelace-plotly-graph-card Branch: master Commit: 20e9686a657b Files: 54 Total size: 5.3 MB Directory structure: gitextract_m5l_are3/ ├── .github/ │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.md │ │ └── feature_request.md │ └── workflows/ │ ├── build-on-release.yml │ └── validate.yaml ├── .gitignore ├── .prettierrc.js ├── changelog.md ├── discussion-index.md ├── discussion-index.mjs ├── docs/ │ └── resources/ │ └── rangeselector.apng ├── hacs.json ├── jest.config.js ├── package.json ├── readme.md ├── script/ │ └── hot-reload.mjs ├── src/ │ ├── cache/ │ │ ├── Cache.ts │ │ ├── date-ranges.test.ts │ │ ├── date-ranges.ts │ │ ├── fetch-states.ts │ │ └── fetch-statistics.ts │ ├── duration/ │ │ ├── duration.test.ts │ │ └── duration.ts │ ├── filters/ │ │ ├── fft-regression.js │ │ ├── filters.test.ts │ │ └── filters.ts │ ├── hot-reload.ts │ ├── is-production.ts │ ├── jsonschema.ts │ ├── parse-config/ │ │ ├── defaults.ts │ │ ├── deprecations.ts │ │ ├── parse-color-scheme.ts │ │ ├── parse-config.ts │ │ ├── parse-statistics.ts │ │ └── themed-layout.ts │ ├── plotly-graph-card.ts │ ├── plotly.ts │ ├── recorder-types.ts │ ├── style-hack.ts │ ├── touch-controller.ts │ ├── types.ts │ └── utils.ts ├── tsconfig.json └── yaml-editor/ ├── .gitignore ├── README.md ├── package.json ├── patch-schema.js ├── src/ │ ├── index.css │ ├── index.ejs │ ├── index.ts │ ├── schema.json │ └── types.d.ts ├── tsconfig.json └── webpack.config.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .github/FUNDING.yml ================================================ # These are supported funding model platforms buy_me_a_coffee: dbuezas ================================================ FILE: .github/ISSUE_TEMPLATE/bug_report.md ================================================ --- name: Bug report about: Create a report to help us improve title: '' labels: bug assignees: '' --- **Describe the bug** A clear and concise description of what the bug is. **Screenshots** If applicable, add screenshots to help explain your problem. **yaml** ```yaml type: custom:plotly-graph entities: - entity: sensor.my_sensor ``` **Additional context** Add any other context about the problem here. ================================================ FILE: .github/ISSUE_TEMPLATE/feature_request.md ================================================ --- name: Feature request about: Suggest an idea for this project title: '' labels: enhancement assignees: '' --- **Describe the solution you'd like** A clear and concise description of what you want to happen. **How would it be defined in yaml?** ```yaml type: custom:plotly-graph entities: - entity: sensor.monthly_internet_energy entity_feature_config: xxx global_feature_config: xxx ``` **Scribble** When applicable, paste a drawing of how the feature would look like **Additional context** Add any other context or screenshots about the feature request here. ================================================ FILE: .github/workflows/build-on-release.yml ================================================ name: Build on release on: release: types: [published] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install dependencies run: npm install - name: Update package.json run: npm version ${{ github.ref_name }} --git-tag-version false - name: Build run: npm run build - name: Upload release asset uses: svenstaro/upload-release-action@v2 with: file: dist/plotly-graph-card.js ================================================ FILE: .github/workflows/validate.yaml ================================================ name: HACS-Validate on: push: pull_request: jobs: hacs: name: HACS Action runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v2" - name: HACS Action uses: "hacs/action@main" with: category: "plugin" ================================================ FILE: .gitignore ================================================ node_modules .DS_Store /dist /coverage ================================================ FILE: .prettierrc.js ================================================ module.exports = { semi: true, //trailingComma: "all", singleQuote: false, printWidth: 80, tabWidth: 2, }; ================================================ FILE: changelog.md ================================================ v1.4.0 - Feature: long term statistics support (thanks to @FrnchFrgg) - Breaking change: yaml for attributes changed (use `attribute: temperature` instead of `climate.living::temperature`) see readme! (old way still works) - Fix: `minimal_response` attribute was ignored and it was set equal to `significant_changes_only`instead - Fix: default yaxes now applies to 30 yaxes (previously only 10) ================================================ FILE: discussion-index.md ================================================ ## [Electricity prices for today and tomorrow with Nordpool](https://github.com/dbuezas/lovelace-plotly-graph-card/discussions/494)
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| YAML configuration |
|---|
|
```yaml
hours_to_show: current_day
time_offset: -24h
defaults:
entity:
hovertemplate: |
$fn ({ get }) => (
`%{y:,.1f} ${get('.unit_of_measurement')} |
| Preset configurations |
|
```js
window.PlotlyGraphCardPresets = {
yesterday: { // Start of preset with name 'yesterday'
hours_to_show: "current_day",
time_offset: "-24h",
},
simpleHover: { // Start of preset with name 'simpleHover'
defaults: {
entity: {
hovertemplate: ({get}) => (
`%{y:,.1f} ${get('.unit_of_measurement')} |