Skip to content

Commit 451be43

Browse files
authored
Merge pull request #2589 from benderl/fix-logging
Fix logging
2 parents 3f9f99f + 2887ac2 commit 451be43

4 files changed

Lines changed: 106 additions & 1 deletion

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build Web Theme Colors
2+
3+
on:
4+
push:
5+
paths:
6+
- packages/modules/web_themes/colors/source/**
7+
branches:
8+
- master
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js 24
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 24
22+
cache: npm
23+
cache-dependency-path: packages/modules/web_themes/colors/source/package-lock.json
24+
25+
- name: Install Dependencies and Build
26+
run: |
27+
cd packages/modules/web_themes/colors/source
28+
npm install
29+
npm run build --if-present
30+
31+
- name: Commit and Push Changes
32+
run: |
33+
git config user.name "${{ github.actor }}"
34+
git config user.email "${{ github.actor }}@users.noreply.github.com"
35+
git add packages/modules/web_themes/colors/web
36+
git commit -m "Build Web Theme: Colors"
37+
git push
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Check Display Theme Colors
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- packages/modules/display_themes/colors/source/**
7+
branches:
8+
- master
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node: [ 22, 24 ]
17+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
18+
19+
steps:
20+
- name: Checkout Repository
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node.js ${{ matrix.node }}
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ matrix.node }}
27+
cache: 'npm'
28+
cache-dependency-path: packages/modules/display_themes/colors/source/package-lock.json
29+
30+
- name: Install Dependencies and Build
31+
run: |
32+
cd packages/modules/display_themes/colors/source
33+
npm install
34+
npm run build --if-present
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Check Web Theme Colors
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- packages/modules/web_themes/colors/source/**
7+
branches:
8+
- master
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node: [ 22, 24 ]
17+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
18+
19+
steps:
20+
- name: Checkout Repository
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node.js ${{ matrix.node }}
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ matrix.node }}
27+
cache: 'npm'
28+
cache-dependency-path: packages/modules/web_themes/colors/source/package-lock.json
29+
30+
- name: Install Dependencies and Build
31+
run: |
32+
cd packages/modules/web_themes/colors/source
33+
npm install
34+
npm run build --if-present

packages/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def handler_with_control_interval():
7171
self.interval_counter = self.interval_counter + 1
7272
log.info("# ***Start*** ")
7373
log.debug(run_command.run_shell_command("top -b -n 1 | head -n 20"))
74-
log.debug(f'Drosselung: {run_command.run_shell_command("vcgencmd get_throttled")}')
74+
log.debug(f'Drosselung: {run_command.run_shell_command("if which vcgencmd >/dev/null; then vcgencmd get_throttled; else echo not found; fi")}')
7575
log.debug(f"Threads: {enumerate()}")
7676
for thread in threading.enumerate():
7777
logging.debug(f"Thread Name: {thread.name}")

0 commit comments

Comments
 (0)