diff --git a/.github/workflows/build_web_theme_colors.yml b/.github/workflows/build_web_theme_colors.yml new file mode 100644 index 0000000000..65cff97d3a --- /dev/null +++ b/.github/workflows/build_web_theme_colors.yml @@ -0,0 +1,37 @@ +name: Build Web Theme Colors + +on: + push: + paths: + - packages/modules/web_themes/colors/source/** + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Node.js 24 + uses: actions/setup-node@v4 + with: + node-version: 24 + cache: npm + cache-dependency-path: packages/modules/web_themes/colors/source/package-lock.json + + - name: Install Dependencies and Build + run: | + cd packages/modules/web_themes/colors/source + npm install + npm run build --if-present + + - name: Commit and Push Changes + run: | + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + git add packages/modules/web_themes/colors/web + git commit -m "Build Web Theme: Colors" + git push diff --git a/.github/workflows/check_display_theme_colors.yml b/.github/workflows/check_display_theme_colors.yml new file mode 100644 index 0000000000..259f4b917e --- /dev/null +++ b/.github/workflows/check_display_theme_colors.yml @@ -0,0 +1,34 @@ +name: Check Display Theme Colors + +on: + pull_request: + paths: + - packages/modules/display_themes/colors/source/** + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node: [ 22, 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/colors/source/package-lock.json + + - name: Install Dependencies and Build + run: | + cd packages/modules/display_themes/colors/source + npm install + npm run build --if-present diff --git a/.github/workflows/check_web_theme_colors.yml b/.github/workflows/check_web_theme_colors.yml new file mode 100644 index 0000000000..b0bbb9f78b --- /dev/null +++ b/.github/workflows/check_web_theme_colors.yml @@ -0,0 +1,34 @@ +name: Check Web Theme Colors + +on: + pull_request: + paths: + - packages/modules/web_themes/colors/source/** + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node: [ 22, 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/web_themes/colors/source/package-lock.json + + - name: Install Dependencies and Build + run: | + cd packages/modules/web_themes/colors/source + npm install + npm run build --if-present diff --git a/packages/main.py b/packages/main.py index 878c56397a..34538fd566 100755 --- a/packages/main.py +++ b/packages/main.py @@ -71,7 +71,7 @@ def handler_with_control_interval(): self.interval_counter = self.interval_counter + 1 log.info("# ***Start*** ") log.debug(run_command.run_shell_command("top -b -n 1 | head -n 20")) - log.debug(f'Drosselung: {run_command.run_shell_command("vcgencmd get_throttled")}') + log.debug(f'Drosselung: {run_command.run_shell_command("if which vcgencmd >/dev/null; then vcgencmd get_throttled; else echo not found; fi")}') log.debug(f"Threads: {enumerate()}") for thread in threading.enumerate(): logging.debug(f"Thread Name: {thread.name}")