Code Monkey home page Code Monkey logo

rpi-screenbrightness-mqtt's People

Contributors

andersop91 avatar tofuschnitzel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rpi-screenbrightness-mqtt's Issues

Service fails to start

Hi, if I run the command sudo systemctl status rpi_screenbrightness_mqtt , the results is FAILURE (see first pic below)
image

And this is the result of running the command sudo journalctl -u rpi_screenbrightness_mqtt.service :
image

Can you please help me ?

How to add hostname in topic?

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?

Screen reported as always on

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.

Service does not start

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'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.