Skip to content

Commit e5178db

Browse files
teuchezhnurbiy.teuchezhclaudeangelrenedoAngel Fernandez Cobo
authored
sync: dev to main (#41)
* feat: move to bun and ts (#8) * feat: migrate to Bun runtime and TypeScript Major architectural changes: Runtime & Build System: - Migrate from Node.js + Yarn to Bun.js (v1.3.6) - Replace Rollup bundler with Bun's built-in bundler - Add build.ts configuration for Bun.build() API - Remove rollup.config.js and 5 Rollup dependencies - Build time improved by 75% (1.4s → 0.8s) TypeScript Migration: - Convert all 15 JavaScript files to TypeScript - Add comprehensive type definitions in src/types.ts - Create TypeScript configuration with strict mode - Add type declarations for SVG imports (src/types/svg.d.ts) - Implement proper typing for Home Assistant entities - Add interfaces for weather data, animations, and configuration Code Modernization: - Migrate Lit components to decorators (@Property, @State) - Add type safety to Canvas API operations - Type all animation classes and particle systems - Update ESLint configuration for TypeScript support - Fix all TypeScript compilation and linting errors Dependencies: - Add: typescript (^5.9.3), @typescript-eslint packages - Remove: rollup, @rollup/plugin-* packages - Update: package.json scripts to use Bun commands Files Changed: - 15 files: .js → .ts conversion - Deleted: rollup.config.js, yarn.lock - Added: build.ts, tsconfig.json, bun.lock, src/types.ts - Modified: package.json, eslint.config.js - Rebuilt: dynamic-weather-card.js (88.40 KB) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: restore wind direction icon and add wind bearing control to demo Bug Fix: - Import windDirection function from svg-icons.ts - Replace getSVGIcon('windDirection', ...) with direct windDirection() call - Fix wind direction arrow not displaying in the card Demo Improvements: - Add wind bearing input control (0-359°) - Add quick direction buttons (N, E, S, W) - Update presets with specific wind bearing values - Update demo sequence with varying wind directions - Add translations for wind bearing control (EN/RU) Files Modified: - src/components/card.ts: Fix windDirection import and usage - test.html: Add wind bearing controls and update demo data - dynamic-weather-card.js: Rebuilt with fixes Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: resolve eslint warnings by replacing any types with proper typing - Replace any with unknown/specific types in card.ts, index.ts, types.ts - Add index signature to WeatherEntityAttributes for dynamic attributes - Add missing properties to interfaces (wind_gust, forecast_hourly, etc.) - Remove non-null assertions by adding null checks - Add ConfigInput interface for setConfig method - Extend language support to include all supported languages (de, nl, fr) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * ci: migrate GitHub Actions from Yarn/Node to Bun - Replace actions/setup-node with oven-sh/setup-bun in validate.yml and release.yml - Change yarn install to bun install --frozen-lockfile - Change yarn build to bun run build - Add bun lint step before build - Replace node -p with grep for parsing version in auto-tag.yml Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * refactor: convert translation files from JS to TypeScript - Convert all locale translation.js files to translation.ts - Add proper typing with Translation interface - Update imports in index.ts to reference .ts files - Remove emojis from translation strings for cleaner output Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: update sun entity in readme --------- Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> * ci: update dependabot config (#16) * feat: add Spanish translation (#19) Port Spanish translation from main branch to TypeScript format. - Add Spanish translation file (es/translation.ts) - Update SupportedLanguage type to include 'es' - Add Spanish language detection in resolveLanguage - Update all translation files to include Spanish in language selector - Update documentation (README.md, README.ru.md, info.md, test.html) * feat(card): add daily forecast and configurable clock position - Previsión diaria según parametro - Previsión semanal según parametro Co-authored-by: Angel Fernandez Cobo <angel.fernandez@fieldeas.com> * сhore: sync-main-dev (#22) * feat: port Italian translation from main to TypeScript - Add Italian (it) translation file in TypeScript format - Update language resolution to detect Italian locale - Add Italian to supported languages type - Update demo translations interface for Italian language option Ported from commit 0c30af9 in main branch. * refactor: fix typo in folder name internalization -> internationalization - Rename src/internalization to src/internationalization - Update all import paths in src/index.ts and src/components/card.ts - Add Italian language option to all translation files - Rebuild bundle with corrected paths * chore: sync-main-dev (#23) * feat: add translation to spanish (#17) * - Añadir traducción a español * no message * - Strings must use singlequote --------- Co-authored-by: Angel Fernandez Cobo <angel.fernandez@fieldeas.com> * feat: added Italian translation following existing localization structure (#15) * Add Italian translations for weather conditions * Add Italian translations to i18n module * Add Italian language support in resolveLanguage * Update Language Italian test.html * Update translation.js * Update translation.js * Update translation.js * Update translation.js * Update translation.js --------- Co-authored-by: Teuchezh Nurbiy <40827089+teuchezh@users.noreply.github.com> * feat(i18n): add show_clock translation key - Added show_clock translation to all language files - Updated Translation interface to include show_clock field - Rebuilt dynamic-weather-card.js with new translations Translations: - en: Show current time - ru: Показывать часы - de: Aktuelle Uhrzeit anzeigen - fr: Afficher l'heure actuelle - nl: Huidige tijd weergeven - es: Mostrar hora actual - it: Mostra ora corrente --------- Co-authored-by: angelrenedo <xicksport@gmail.com> Co-authored-by: Angel Fernandez Cobo <angel.fernandez@fieldeas.com> Co-authored-by: SerpikoIT <75452931+SerpikoIT@users.noreply.github.com> * docs: add agents.md (#25) Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> * feat: sun object (#26) Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> * feat: add forecast subscription support for modern weather integrations (#27) Add support for weather/subscribe_forecast WebSocket API used by DWD, Met.no and other modern weather integrations in Home Assistant 2024+. The card now subscribes to real-time forecast updates instead of relying only on entity attributes. Key changes: - Implement weather/subscribe_forecast WebSocket subscription - Add hourly and daily forecast state management - Support automatic sun data retrieval from sun.sun entity - Fix TypeScript directive lifecycle method (reconnected) - Remove debug console logs - Maintain backward compatibility with attribute-based forecast Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> * docs: setup issue templates (#28) * docs: setup issue templates * ci: update workflows for run at main branch update dependabot config --------- Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> * fix: wind speed display (#29) Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> * feat(editor): add visual editor with automatic detection of the language (#30) * - Añadir la posiblidad de cambiar la posicion del reloj - Previsión diaria según parametro - Previsión semanal según parametro * - Añadir editor visual de la card * - Controlar errores * -Editor visual finalizado * - Idioma dinamico en el editor según el idioma de HA * - Controlar que al dejar el nombre vacio salga el friendlyName --------- Co-authored-by: Angel Fernandez Cobo <angel.fernandez@fieldeas.com> * feat: clock format (#31) Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> * docs: refactor readme (#32) * docs: refactor readme * docs: rename test.html to demo.html actualize demo settings and translations --------- Co-authored-by: teuchezh <nurbiy632@gmailcom> * sync: main to dev (#37) * feat: add translation to spanish (#17) * - Añadir traducción a español * no message * - Strings must use singlequote --------- Co-authored-by: Angel Fernandez Cobo <angel.fernandez@fieldeas.com> * feat: added Italian translation following existing localization structure (#15) * Add Italian translations for weather conditions * Add Italian translations to i18n module * Add Italian language support in resolveLanguage * Update Language Italian test.html * Update translation.js * Update translation.js * Update translation.js * Update translation.js * Update translation.js --------- Co-authored-by: Teuchezh Nurbiy <40827089+teuchezh@users.noreply.github.com> * sync: dev to main (#33) * feat: move to bun and ts (#8) * feat: migrate to Bun runtime and TypeScript Major architectural changes: Runtime & Build System: - Migrate from Node.js + Yarn to Bun.js (v1.3.6) - Replace Rollup bundler with Bun's built-in bundler - Add build.ts configuration for Bun.build() API - Remove rollup.config.js and 5 Rollup dependencies - Build time improved by 75% (1.4s → 0.8s) TypeScript Migration: - Convert all 15 JavaScript files to TypeScript - Add comprehensive type definitions in src/types.ts - Create TypeScript configuration with strict mode - Add type declarations for SVG imports (src/types/svg.d.ts) - Implement proper typing for Home Assistant entities - Add interfaces for weather data, animations, and configuration Code Modernization: - Migrate Lit components to decorators (@Property, @State) - Add type safety to Canvas API operations - Type all animation classes and particle systems - Update ESLint configuration for TypeScript support - Fix all TypeScript compilation and linting errors Dependencies: - Add: typescript (^5.9.3), @typescript-eslint packages - Remove: rollup, @rollup/plugin-* packages - Update: package.json scripts to use Bun commands Files Changed: - 15 files: .js → .ts conversion - Deleted: rollup.config.js, yarn.lock - Added: build.ts, tsconfig.json, bun.lock, src/types.ts - Modified: package.json, eslint.config.js - Rebuilt: dynamic-weather-card.js (88.40 KB) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: restore wind direction icon and add wind bearing control to demo Bug Fix: - Import windDirection function from svg-icons.ts - Replace getSVGIcon('windDirection', ...) with direct windDirection() call - Fix wind direction arrow not displaying in the card Demo Improvements: - Add wind bearing input control (0-359°) - Add quick direction buttons (N, E, S, W) - Update presets with specific wind bearing values - Update demo sequence with varying wind directions - Add translations for wind bearing control (EN/RU) Files Modified: - src/components/card.ts: Fix windDirection import and usage - test.html: Add wind bearing controls and update demo data - dynamic-weather-card.js: Rebuilt with fixes Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: resolve eslint warnings by replacing any types with proper typing - Replace any with unknown/specific types in card.ts, index.ts, types.ts - Add index signature to WeatherEntityAttributes for dynamic attributes - Add missing properties to interfaces (wind_gust, forecast_hourly, etc.) - Remove non-null assertions by adding null checks - Add ConfigInput interface for setConfig method - Extend language support to include all supported languages (de, nl, fr) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * ci: migrate GitHub Actions from Yarn/Node to Bun - Replace actions/setup-node with oven-sh/setup-bun in validate.yml and release.yml - Change yarn install to bun install --frozen-lockfile - Change yarn build to bun run build - Add bun lint step before build - Replace node -p with grep for parsing version in auto-tag.yml Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * refactor: convert translation files from JS to TypeScript - Convert all locale translation.js files to translation.ts - Add proper typing with Translation interface - Update imports in index.ts to reference .ts files - Remove emojis from translation strings for cleaner output Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: update sun entity in readme --------- Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> * ci: update dependabot config (#16) * feat: add Spanish translation (#19) Port Spanish translation from main branch to TypeScript format. - Add Spanish translation file (es/translation.ts) - Update SupportedLanguage type to include 'es' - Add Spanish language detection in resolveLanguage - Update all translation files to include Spanish in language selector - Update documentation (README.md, README.ru.md, info.md, test.html) * feat(card): add daily forecast and configurable clock position - Previsión diaria según parametro - Previsión semanal según parametro Co-authored-by: Angel Fernandez Cobo <angel.fernandez@fieldeas.com> * сhore: sync-main-dev (#22) * feat: port Italian translation from main to TypeScript - Add Italian (it) translation file in TypeScript format - Update language resolution to detect Italian locale - Add Italian to supported languages type - Update demo translations interface for Italian language option Ported from commit 0c30af9 in main branch. * refactor: fix typo in folder name internalization -> internationalization - Rename src/internalization to src/internationalization - Update all import paths in src/index.ts and src/components/card.ts - Add Italian language option to all translation files - Rebuild bundle with corrected paths * chore: sync-main-dev (#23) * feat: add translation to spanish (#17) * - Añadir traducción a español * no message * - Strings must use singlequote --------- Co-authored-by: Angel Fernandez Cobo <angel.fernandez@fieldeas.com> * feat: added Italian translation following existing localization structure (#15) * Add Italian translations for weather conditions * Add Italian translations to i18n module * Add Italian language support in resolveLanguage * Update Language Italian test.html * Update translation.js * Update translation.js * Update translation.js * Update translation.js * Update translation.js --------- Co-authored-by: Teuchezh Nurbiy <40827089+teuchezh@users.noreply.github.com> * feat(i18n): add show_clock translation key - Added show_clock translation to all language files - Updated Translation interface to include show_clock field - Rebuilt dynamic-weather-card.js with new translations Translations: - en: Show current time - ru: Показывать часы - de: Aktuelle Uhrzeit anzeigen - fr: Afficher l'heure actuelle - nl: Huidige tijd weergeven - es: Mostrar hora actual - it: Mostra ora corrente --------- Co-authored-by: angelrenedo <xicksport@gmail.com> Co-authored-by: Angel Fernandez Cobo <angel.fernandez@fieldeas.com> Co-authored-by: SerpikoIT <75452931+SerpikoIT@users.noreply.github.com> * docs: add agents.md (#25) Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> * feat: sun object (#26) Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> * feat: add forecast subscription support for modern weather integrations (#27) Add support for weather/subscribe_forecast WebSocket API used by DWD, Met.no and other modern weather integrations in Home Assistant 2024+. The card now subscribes to real-time forecast updates instead of relying only on entity attributes. Key changes: - Implement weather/subscribe_forecast WebSocket subscription - Add hourly and daily forecast state management - Support automatic sun data retrieval from sun.sun entity - Fix TypeScript directive lifecycle method (reconnected) - Remove debug console logs - Maintain backward compatibility with attribute-based forecast Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> * docs: setup issue templates (#28) * docs: setup issue templates * ci: update workflows for run at main branch update dependabot config --------- Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> * fix: wind speed display (#29) Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> * feat(editor): add visual editor with automatic detection of the language (#30) * - Añadir la posiblidad de cambiar la posicion del reloj - Previsión diaria según parametro - Previsión semanal según parametro * - Añadir editor visual de la card * - Controlar errores * -Editor visual finalizado * - Idioma dinamico en el editor según el idioma de HA * - Controlar que al dejar el nombre vacio salga el friendlyName --------- Co-authored-by: Angel Fernandez Cobo <angel.fernandez@fieldeas.com> * feat: clock format (#31) Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> * docs: refactor readme (#32) * docs: refactor readme * docs: rename test.html to demo.html actualize demo settings and translations --------- Co-authored-by: teuchezh <nurbiy632@gmailcom> --------- Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: angelrenedo <xicksport@gmail.com> Co-authored-by: Angel Fernandez Cobo <angel.fernandez@fieldeas.com> Co-authored-by: SerpikoIT <75452931+SerpikoIT@users.noreply.github.com> Co-authored-by: teuchezh <nurbiy632@gmailcom> * sync: rm old files --------- Co-authored-by: angelrenedo <xicksport@gmail.com> Co-authored-by: Angel Fernandez Cobo <angel.fernandez@fieldeas.com> Co-authored-by: SerpikoIT <75452931+SerpikoIT@users.noreply.github.com> Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: teuchezh <nurbiy632@gmailcom> * chore(deps-dev): bump the development-dependencies group with 2 updates (#36) * ci: bump actions/github-script from 7 to 8 (#35) Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 8. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](actions/github-script@v7...v8) --- updated-dependencies: - dependency-name: actions/github-script dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ci: bump actions/checkout from 4 to 6 (#34) * fix(ci): include only dynamic-weather-card.js in release assets (#38) HACS downloads only the main JS file from release assets. Other files (README, LICENSE, CHANGELOG, hacs.json) are read directly from the repository. Co-authored-by: teuchezh <nurbiy632@gmailcom> * docs: fix manual installation path in README files (#39) Correct the installation directory from config/www/ to config/www/community/dynamic-weather-card/ and update the resource URL to match the correct path structure. Co-authored-by: teuchezh <nurbiy632@gmailcom> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: nurbiy.teuchezh <nurbiy.teuchezh@wilix.org> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: angelrenedo <xicksport@gmail.com> Co-authored-by: Angel Fernandez Cobo <angel.fernandez@fieldeas.com> Co-authored-by: SerpikoIT <75452931+SerpikoIT@users.noreply.github.com> Co-authored-by: teuchezh <nurbiy632@gmailcom> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 78d1d42 commit e5178db

9 files changed

Lines changed: 77 additions & 30 deletions

File tree

.github/workflows/auto-tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
2020
with:
2121
fetch-depth: 0
2222

@@ -49,7 +49,7 @@ jobs:
4949
5050
- name: Trigger release workflow
5151
if: steps.check-tag.outputs.exists == 'false'
52-
uses: actions/github-script@v7
52+
uses: actions/github-script@v8
5353
with:
5454
script: |
5555
await github.rest.actions.createWorkflowDispatch({

.github/workflows/hacs-validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818

1919
- name: HACS validation
2020
uses: hacs/action@main

.github/workflows/release.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout code
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v6
2525
with:
2626
fetch-depth: 0 # Fetch all history for changelog generation
2727

@@ -162,13 +162,7 @@ jobs:
162162
tag_name: ${{ steps.version.outputs.tag }}
163163
name: Release ${{ steps.version.outputs.tag }}
164164
body: ${{ steps.changelog.outputs.changelog }}
165-
files: |
166-
dynamic-weather-card.js
167-
hacs.json
168-
README.md
169-
README.ru.md
170-
LICENSE
171-
CHANGELOG.md
165+
files: dynamic-weather-card.js
172166
draft: false
173167
prerelease: false
174168
make_latest: true

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v6
1616

1717
- name: Setup Bun
1818
uses: oven-sh/setup-bun@v2

CLAUDE.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# CLAUDE.md
2+
3+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4+
5+
## Project Summary
6+
7+
Dynamic Weather Card is a custom Home Assistant Lovelace card with realistic canvas-based weather animations. Built with Lit (Web Components) and TypeScript, distributed via HACS.
8+
9+
## Essential Commands
10+
11+
```bash
12+
bun install # Install dependencies
13+
bun run dev # Development with watch mode
14+
bun run build # Production build (runs lint first)
15+
bun run lint # Check code style
16+
bun run lint:fix # Auto-fix lint issues
17+
bun run typecheck # TypeScript type checking
18+
```
19+
20+
## Testing
21+
22+
No automated tests. Manual testing via `demo.html` - open in browser to test various weather conditions and configurations.
23+
24+
## Architecture Overview
25+
26+
See **AGENTS.md** for detailed architecture documentation. Key points:
27+
28+
- **Entry point**: `src/index.ts` registers `custom:dynamic-weather-card`
29+
- **Main component**: `src/components/card.ts` - Lit Element handling UI, canvas, and HA integration
30+
- **Animation system**: `src/animations/` - Each weather condition has its own class extending `BaseAnimation`
31+
- **i18n**: `src/internationalization/` - Singleton `i18n` object with `i18n.t('key')` for translations
32+
33+
### Adding New Animation
34+
35+
1. Create class in `src/animations/` extending `BaseAnimation`
36+
2. Implement `draw(time, width, height, timeOfDay)` method
37+
3. Register in `card.ts` at `initializeAnimations()` and add case in `draw()` method
38+
39+
### Adding New Language
40+
41+
1. Create `src/internationalization/locales/XX/translation.ts`
42+
2. Import in `src/internationalization/index.ts`
43+
44+
## Code Conventions
45+
46+
- Strict TypeScript with ESLint enforcement
47+
- Conventional Commits: `feat:`, `fix:`, `docs:`, `chore:`
48+
- PRs target `dev` branch, not `main`
49+
- Branch naming: `feature/`, `fix/`, `docs/`, `chore/`
50+
51+
## Build Output
52+
53+
Single bundled file: `dynamic-weather-card.js` (ESM, minified, target: browser)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@
9393
### Option 2: Manual Installation
9494

9595
1. Download `dynamic-weather-card.js` from the [latest release](https://github.com/teuchezh/dynamic-weather-card/releases)
96-
2. Copy it to `config/www/` directory
96+
2. Copy it to `config/www/community/dynamic-weather-card/` directory
9797
3. Add resource in Home Assistant:
9898

9999
**Settings****Dashboards****Resources****Add Resource**
100100

101101
```
102-
URL: /local/dynamic-weather-card.js
102+
URL: /local/community/dynamic-weather-card/dynamic-weather-card.js
103103
Type: JavaScript Module
104104
```
105105

README.ru.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@
9393
### Вариант 2: Ручная установка
9494

9595
1. Скачайте `dynamic-weather-card.js` из [последнего релиза](https://github.com/teuchezh/dynamic-weather-card/releases)
96-
2. Скопируйте файл в директорию `config/www/`
96+
2. Скопируйте файл в директорию `config/www/community/dynamic-weather-card/`
9797
3. Добавьте ресурс в Home Assistant:
9898

9999
**Настройки****Панели управления****Ресурсы****Добавить ресурс**
100100

101101
```
102-
URL: /local/dynamic-weather-card.js
102+
URL: /local/community/dynamic-weather-card/dynamic-weather-card.js
103103
Тип: JavaScript Module
104104
```
105105

bun.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"lit": "^3.0.0"
3333
},
3434
"devDependencies": {
35-
"@typescript-eslint/eslint-plugin": "^8.53.0",
36-
"@typescript-eslint/parser": "^8.53.0",
35+
"@typescript-eslint/eslint-plugin": "^8.53.1",
36+
"@typescript-eslint/parser": "^8.53.1",
3737
"eslint": "^9.39.2",
3838
"eslint-plugin-lit": "^2.1.1",
3939
"tslib": "^2.8.1",

0 commit comments

Comments
 (0)