Skip to content

Commit 559b471

Browse files
authored
night light and others (#277)
- ***Breaking changes***: requires `Glow Worm Luciferin` firmware (v5.21.3). - **The smoothing feature is greatly improved thanks to the [Exponential Moving Average (EMA)](https://github.com/sblantipodi/firefly_luciferin/wiki/Smoothing-color-transitions#what-is-exponential-moving-average-ema).** EMA is a smoothing technique that gradually adjusts values over time, giving more weight to recent data while still considering past values. Unlike a simple average, EMA reacts faster to changes while still keeping transitions smooth. By combining [Frame Generation](https://github.com/sblantipodi/firefly_luciferin/wiki/Smoothing-color-transitions#how-does-it-works-linear-interpolation-with-frame-insertion) and [EMA](https://github.com/sblantipodi/firefly_luciferin/wiki/Smoothing-color-transitions#what-is-exponential-moving-average-ema), Luciferin delivers an even more natural and immersive ambient lighting effect while keeping system performance efficient. - Home Assistant integration has been updated to make room for this new feature: - `select.luciferin_smoothing_level` entity has been removed. - `select.luciferin_frame_generation` has been added. - `select.luciferin_smoothing_ema` has been added. - **[Eye care](https://github.com/sblantipodi/firefly_luciferin/wiki/Eye-care-and-night-mode) features has been extended:** Closes [#247](#247). - `Night light:` Use warmer colors to block blue light. The higher you raise the level, the more blue light will be blocked. The 'Auto' setting syncs with the night light setting in your operating system. - `Luminosity threshold:` Added the option to customize the threshold value for this feature. - [Color temperature correction](https://github.com/sblantipodi/firefly_luciferin/wiki/Color-Temperature-and-White-Balance) algorithm has been improved, now it does not reduce brightness on faint colors. - Optimize PIPEWIREXDG pipeline. PR [#276](#276). Thanks @Ape. - The firmware now smooths out transitions when switching from one color to another in solid mode. (Full firmware only). - [Test image](https://github.com/sblantipodi/firefly_luciferin/wiki/Color-Grading-(Hue-Saturation-and-Lightness-tuning)) improvements: - You can now access other settings while using Test Image. Closes [108](#108). - Every change is now reflected in real time by the test image. - The test image now allows for 4 levels of saturation (100%, 75%, 50%, 25%). This helps to test colors with various levels of saturation. - You can now open the `Info menu` along with the `Settings menu`. This allows you to check in real time how changing settings affects FPS, without having to swap back and forth between the Settings and Info menus. Closes [#236](#236). - **Net code overhead reduction for reduced power usage.** Closes [#281](#281). - Small UI reorganizations and improvements and better handling of the info tooltips. - Restarting capture due to a framerate change is now much faster. - Added support for 4.000.000 and 6.000.000 baud rates for newer UART chips. Use with caution. - Home assistant brightness control not working with Bias light. Fixed. Closes [#278](#278). - Fixed an issue that reverted the baud rate to 115.200 when changing network settings. - Tray icon [update menu](https://github.com/sblantipodi/firefly_luciferin/wiki/Luciferin-update-management) does not work when `Check for updates` is disabled. Fixed. - Settings cannot be opened when the MQTT server is unreachable. Issue resolved. - Following a recent change in [Home Assistant](https://github.com/sblantipodi/firefly_luciferin/wiki/Home-Automation-configs), the light entity is no longer recognized as an RGB entity. Fixed.
1 parent f2b1aaa commit 559b471

File tree

113 files changed

+2949
-1446
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+2949
-1446
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
github: [sblantipodi]
2-
custom: ["https://www.paypal.com/donate?hosted_button_id=ZEJM8ZLQW5E4A", "https://www.patreon.com/Luciferinambilightclone"]
1+
github: [ sblantipodi ]
2+
custom: [ "https://www.paypal.com/donate?hosted_button_id=ZEJM8ZLQW5E4A", "https://www.patreon.com/Luciferinambilightclone" ]
33

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Bug Report
22
description: Report an issue with Luciferin.
33
title: "[Bug]: "
4-
labels: [bug, triage]
4+
labels: [ bug, triage ]
55
assignees:
66
- sblantipodi
77
body:
@@ -12,19 +12,19 @@ body:
1212
- type: input
1313
id: firefly-version
1414
attributes:
15-
label: Firefly Luciferin version
15+
label: Firefly Luciferin version
1616
description: Right click the tray icon and select info.
1717
placeholder: Tell us what you see!
1818
validations:
1919
required: true
2020
- type: input
2121
id: gw-version
2222
attributes:
23-
label: Glow Worm Luciferin version
23+
label: Glow Worm Luciferin version
2424
description: Right click the tray icon of Firefly Luciferin -> Settings -> Devices tab -> you can see the firmware version
2525
placeholder: Tell us what you see!
2626
validations:
27-
required: true
27+
required: true
2828
- type: dropdown
2929
id: firmware-type
3030
attributes:
@@ -42,9 +42,9 @@ body:
4242
options:
4343
- WiFi Stream
4444
- MQTT Stream
45-
- USB
45+
- USB
4646
validations:
47-
required: true
47+
required: true
4848
- type: textarea
4949
id: steps-reproduce
5050
attributes:
@@ -56,9 +56,9 @@ body:
5656
id: config
5757
attributes:
5858
label: Fiefly Luciferin config file
59-
description: Please copy and paste your Firefly Luciferin config file.
59+
description: Please copy and paste your Firefly Luciferin config file.
6060
placeholder: You can find your config file in ~(Documents or .config)\FireflyLuciferin\FireflyLuciferin.yaml file. Please remove your MQTT password if you don't want to share it
61-
render: shell
61+
render: shell
6262
- type: textarea
6363
id: logs
6464
attributes:

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Feature request
22
description: Suggest an idea for the Luciferin project
33
title: "[Feature request]: "
4-
labels: [triage]
4+
labels: [ triage ]
55
assignees:
66
- sblantipodi
77
body:

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ jobs:
4343
mvn -B package
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
shell: bash
46+
shell: bash
47+
# - name: Add msbuild to PATH
48+
# uses: microsoft/setup-msbuild@v1.1
49+
# - name: Install WiX
50+
# run: dotnet tool install --global wix
4751
- name: Java 14 Package API, create EXE binary
4852
run: |
4953
rm -rf target/fireflyluciferin-${{steps.get-id.outputs.id}}.jar;
@@ -133,4 +137,4 @@ jobs:
133137
name: FireflyLuciferinLinux_${{steps.get-id.outputs.id}}_ALPHA.rpm
134138
path: FireflyLuciferinLinux.rpm
135139
# - name: Setup action-debug-vscode session
136-
# uses: fawazahmed0/action-debug-vscode@main
140+
# uses: fawazahmed0/action-debug-vscode@main

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
prerelease: false
3636

3737
windows_build_parallel:
38-
needs: [create_draft_release]
38+
needs: [ create_draft_release ]
3939
runs-on: windows-latest
4040
steps:
4141
- uses: actions/checkout@v4
@@ -92,7 +92,7 @@ jobs:
9292
shell: bash
9393

9494
linux_build_parallel:
95-
needs: [create_draft_release]
95+
needs: [ create_draft_release ]
9696
runs-on: ubuntu-24.04
9797
steps:
9898
- uses: actions/checkout@v4
@@ -148,7 +148,7 @@ jobs:
148148
gh release upload "${{ env.RELEASE_VERSION }}" FireflyLuciferinLinux.rpm
149149
150150
create_release:
151-
needs: [windows_build_parallel, linux_build_parallel]
151+
needs: [ windows_build_parallel, linux_build_parallel ]
152152
runs-on: windows-latest
153153
steps:
154154
- uses: actions/checkout@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*.lck
44
*.msg
55
*.deb
6+
*.log
67
/logs/
78
FireflyLuciferin.iml
89
/build_tools/wixtools/Firefly*.exe
-21.9 KB

data/img/color_order.jpg

3.51 KB

data/img/dark_theme.png

4.03 KB

0 commit comments

Comments
 (0)