-
Notifications
You must be signed in to change notification settings - Fork 111
Add URL Display Theme for Raspberry Pi #3205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MartinRinas
wants to merge
49
commits into
openWB:master
Choose a base branch
from
MartinRinas:copilot/implement-display-theme-modbus
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
19a9835
Update publish_docs_to_wiki.yml
MartinRinas 07abf0b
Merge branch 'openWB:master' into master
MartinRinas 1ae671a
Merge branch 'openWB:master' into master
MartinRinas 2646d1a
Merge branch 'openWB:master' into master
MartinRinas f8944c5
Merge branch 'openWB:master' into master
MartinRinas e83795f
Merge branch 'openWB:master' into master
MartinRinas c4a0d32
Merge branch 'openWB:master' into master
MartinRinas 14694d4
Merge branch 'openWB:master' into master
MartinRinas 8afa5c2
Merge branch 'openWB:master' into master
MartinRinas 6be1634
Merge branch 'openWB:master' into master
MartinRinas b6074a1
Merge branch 'openWB:master' into master
MartinRinas 6f581a8
fems: support multiple and single segment regex rqeuests (#1397)
LKuemmel 719a191
one connect to server for all components
LKuemmel 0387eed
0.1s sleep between readings
LKuemmel e033d36
fix self.data --> self._data in fems/bat.py
dj3mu 5773c81
Duo+RFID: fix matching if other cp is plugged
LKuemmel fd411b4
Revert "fix rct crashes"
LKuemmel 9577b56
RCT: 0.5s sleep between server connections
LKuemmel e360cb8
build UI
LKuemmel 59e83fa
Calculate_soc_tronity (#1398)
MartinRinas c32d6d8
Merge branch 'master' of https://github.com/openWB/core
MartinRinas 909fb3f
Merge branch 'master' of https://github.com/openWB/core
MartinRinas 3aa4283
Merge branch 'master' of https://github.com/openWB/core
MartinRinas 9d9c7b3
Merge branch 'master' of https://github.com/openWB/core
MartinRinas 17dcaea
Merge branch 'openWB:master' into master
MartinRinas 65e9b0e
Merge branch 'openWB:master' into master
MartinRinas 9d78bd5
Merge branch 'openWB:master' into master
MartinRinas d936545
Merge branch 'openWB:master' into master
MartinRinas 13cc4de
Merge branch 'openWB:master' into master
MartinRinas 068bf56
Merge branch 'openWB:master' into master
MartinRinas 27cde5d
Merge branch 'openWB:master' into master
MartinRinas 68261e6
Merge branch 'master' of https://github.com/MartinRinas/core
MartinRinas baccc10
Merge branch 'openWB:master' into master
MartinRinas 7bf97bb
Merge branch 'openWB:master' into master
MartinRinas 0596bab
Merge branch 'openWB:master' into master
MartinRinas 07389a4
Merge branch 'openWB:master' into master
MartinRinas c1c6610
Merge branch 'openWB:master' into master
MartinRinas bd49e28
fix publish soc_timestamp
MartinRinas b41f1d9
Initial plan
Copilot 34cdd45
Add URL Display Theme for Raspberry Pi
Copilot 661d0f2
Fix insecure randomness: replace Math.random() with crypto.randomUUID…
Copilot 61b54a0
Revert "Fix insecure randomness: replace Math.random() with crypto.ra…
MartinRinas 52c8ac0
symlink
MartinRinas 77da3a6
symlink
MartinRinas 1bb067e
Merge branch 'master' of https://github.com/openWB/core into copilot/…
MartinRinas 5bd0906
review comments
MartinRinas 4467eec
typos
MartinRinas abcb264
move to vite8, remove unused dependencies
MartinRinas 46a7c8a
build workflow
MartinRinas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: Check Display Theme URL Display | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - packages/modules/display_themes/url_display/source/** | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| node: [ 24 ] | ||
| # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
|
||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js ${{ matrix.node }} | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node }} | ||
| cache: 'npm' | ||
| cache-dependency-path: packages/modules/display_themes/url_display/source/package-lock.json | ||
|
|
||
| - name: Install Dependencies and Build | ||
| run: | | ||
| cd packages/modules/display_themes/url_display/source | ||
| npm install | ||
| npm run build --if-present |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| from helpermodules.auto_str import auto_str | ||
|
|
||
| from modules.common.abstract_device import DeviceDescriptor | ||
|
|
||
|
|
||
| @auto_str | ||
| class UrlDisplayThemeConfiguration: | ||
| def __init__(self, | ||
| url: str = "http://www.example.com" | ||
| ) -> None: | ||
| self.url = url | ||
|
|
||
|
|
||
| @auto_str | ||
| class UrlDisplayTheme: | ||
| def __init__(self, | ||
| name: str = "URL Display", | ||
| type: str = "url_display", | ||
| official: bool = False, | ||
| userManagementSupported: bool = False, | ||
| configuration: UrlDisplayThemeConfiguration = None) -> None: | ||
| self.name = name | ||
| self.type = type | ||
| self.official = official | ||
| self.userManagementSupported = userManagementSupported | ||
| self.configuration = configuration or UrlDisplayThemeConfiguration() | ||
|
|
||
|
|
||
| theme_descriptor = DeviceDescriptor(configuration_factory=UrlDisplayTheme) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| node_modules/ |
14 changes: 14 additions & 0 deletions
14
packages/modules/display_themes/url_display/source/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <!doctype html> | ||
| <html lang="de"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>openWB Display - URL</title> | ||
| </head> | ||
| <body> | ||
| <div id="status"> | ||
| <p id="message">Verbinde mit MQTT...</p> | ||
| </div> | ||
| <script type="module" src="/src/main.js"></script> | ||
| </body> | ||
| </html> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.