tofuschnitzel / rpi-screenbrightness-mqtt Goto Github PK
View Code? Open in Web Editor NEWprovides a service for controlling a RaspberryPis screenbrightness via mqtt
License: GNU General Public License v3.0
provides a service for controlling a RaspberryPis screenbrightness via mqtt
License: GNU General Public License v3.0
Hi, I need set hostname in topic to control multiple Rpi's so I added this in conf file:
state_topic = ${HOSTNAME}/state/power
but mqtt stops sending anything after that.
How can do that?
First of all thanks for a great project!
Small issue with the touch screen blanking out via:
xset s 120
xset dpms 120 120 120
The light entity in HA always reports the backlight as on even though the backlight is off by timing out from the settings above.
Would be great if the readme could contain if it depends on xscreensaver or specific X settings with dmps / s.
The service was working in the past, but not anymore.
It seems python libraries are breaking the code.
Output of sudo journalctl -u rpi_screenbrightness_mqtt.service
mai 09 17:13:06 pi3 systemd[1]: rpi_screenbrightness_mqtt.service: Service hold-off time over, scheduling restart.
mai 09 17:13:06 pi3 systemd[1]: Stopped RasPi Sceeen Brightness Control MQTT.
mai 09 17:13:06 pi3 systemd[1]: Started RasPi Sceeen Brightness Control MQTT.
mai 09 17:13:06 pi3 python3[18239]: Traceback (most recent call last):
mai 09 17:13:06 pi3 python3[18239]: File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
mai 09 17:13:06 pi3 python3[18239]: "__main__", mod_spec)
mai 09 17:13:06 pi3 python3[18239]: File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
mai 09 17:13:06 pi3 python3[18239]: exec(code, run_globals)
mai 09 17:13:06 pi3 python3[18239]: File "/usr/local/lib/python3.5/dist-packages/rpi_screenbrightness_mqtt-0.5.0-py3.5.egg/rpi_screenbrightness_mqtt/run.py", line 7,
mai 09 17:13:06 pi3 python3[18239]: File "/usr/local/lib/python3.5/dist-packages/rpi_backlight/__init__.py", line 55
mai 09 17:13:06 pi3 python3[18239]: f"board_type must be a member of the BoardType enum, got {type(board_type)}"
mai 09 17:13:06 pi3 python3[18239]: ^
mai 09 17:13:06 pi3 python3[18239]: SyntaxError: invalid syntax
mai 09 17:13:06 pi3 systemd[1]: rpi_screenbrightness_mqtt.service: Main process exited, code=exited, status=1/FAILURE
mai 09 17:13:06 pi3 systemd[1]: rpi_screenbrightness_mqtt.service: Unit entered failed state.
mai 09 17:13:06 pi3 systemd[1]: rpi_screenbrightness_mqtt.service: Failed with result 'exit-code'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.