Skip to content

Commit 4bef160

Browse files
committed
Merge remote-tracking branch 'origin/master' into temperture
2 parents 10b360a + 179ee31 commit 4bef160

33 files changed

+270
-107
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323
- Allow to force starting Hyperion in read-only mode (`--readonlyMode`)
2424
- JSON-API: Support to query for a dedicated set of configuration items for a set of instances
2525
- JSON-API: Support to save a dedicated set of configuration items for a set of instances
26+
- JSON-API: Limit update emission frequency: Images (25Hz), raw LED-Colors (40Hz) & LED-Device data (200Hz)
27+
- Effects: Limit the maximum update rate to 200Hz
2628

2729
**JSON-API**
2830
- New subscription support for event updates, i.e. `Suspend, Resume, Idle, idleResume, Restart, Quit`.
@@ -44,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4446
- Refactored: Python to enable parallel effect processing under Python 3.12
4547
- Fixed: Python 3.12 crashes (#1747)
4648
- osX Grabber: Use ScreenCaptureKit under macOS 15 and above
49+
- Removed maximum LED number constraint from Matrix layout schema which was not synced with the UI behaviour (#1804)
4750

4851
**JSON-API**
4952
- Refactored JSON-API to ensure consistent authorization behaviour across sessions and single requests with token authorization.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ The amount of "%" must match with following arguments
120120
> TODO
121121
122122
## Visual Studio Code
123-
**We assume that you successfully compiled Hyperion with the [Compile HowTo](CompileHowto.md) WITHOUT Docker** \
123+
**We assume that you successfully compiled Hyperion with the [Compile HowTo](doc/development/CompileHowto.md) WITHOUT Docker** \
124124
If you want to use VSCode for development follow the steps.
125125
126126
- Install [VSCode](https://code.visualstudio.com/). On Ubuntu 16.04+ you can also use the [Snapcraft VSCode](https://snapcraft.io/code) package.

dependencies/external/mbedtls

Submodule mbedtls updated 1030 files

dependencies/external/protobuf

Submodule protobuf updated 1213 files

effects/candle.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
sleepTime = float(hyperion.args.get('sleepTime', 0.14))
2222

23+
# Limit update rate
24+
sleepTime = max(hyperion.lowestUpdateInterval(), sleepTime)
25+
2326
candles = hyperion.args.get('candles', "all")
2427
ledlist = hyperion.args.get('ledlist', "1")
2528

effects/gif.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
grayscale = bool(hyperion.args.get('grayscale', False))
1212

1313
sleepTime = 1./framesPerSecond
14+
15+
# Limit update rate
16+
sleepTime = max(hyperion.lowestUpdateInterval(), sleepTime)
17+
1418
imageFrameList = []
1519

1620
if imageData:

effects/ledtest-seq.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Get parameters
55
sleepTime = float(hyperion.args.get('sleepTime', 0.5))
66

7+
# Limit update rate
8+
sleepTime = max(hyperion.lowestUpdateInterval(), sleepTime)
9+
710
def TestRgb( iteration ):
811

912
switcher = {

effects/ledtest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
testleds = hyperion.args.get('testleds', "all")
1212
ledlist = hyperion.args.get('ledlist', "1")
1313

14+
# Limit update rate
15+
sleepTime = max(hyperion.lowestUpdateInterval(), sleepTime)
16+
1417
testlist = ()
1518
if (testleds == "list") and (type(ledlist) is str):
1619
for s in ledlist.split(','):

effects/plasma.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
height = hyperion.imageHeight()
77
sleepTime = float(hyperion.args.get('sleepTime', 0.2))
88

9+
# Limit update rate
10+
sleepTime = max(hyperion.lowestUpdateInterval(), sleepTime)
11+
912
def mapto(x, in_min, in_max, out_min, out_max):
1013
return float((x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min)
1114

effects/running_dots.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
sleepTime = float(hyperion.args.get('speed', 1.5)) * 0.005
55
whiteLevel = int(hyperion.args.get('whiteLevel', 0))
66
lvl = int(hyperion.args.get('colorLevel', 220))
7+
8+
# Limit update rate
9+
sleepTime = max(hyperion.lowestUpdateInterval(), sleepTime)
710

8-
# check value
11+
# check value
912
whiteLevel = min( whiteLevel, 254 )
1013
lvl = min( lvl, 255 )
1114

0 commit comments

Comments
 (0)