sirkus7 / ospilcd-mqtt Goto Github PK
View Code? Open in Web Editor NEWOpenSprinkler status display -- a Raspberry Pi, I2C LCD, MQTT enabled display.
OpenSprinkler status display -- a Raspberry Pi, I2C LCD, MQTT enabled display.
root@pizerow:/home/pi# ./ospiLCD-mqtt.py
[Connected with result code 0]
Msg:opensprinkler/availability: online
Traceback (most recent call last):
File "./ospiLCD-mqtt.py", line 258, in
client.loop_forever()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1756, in loop_forever
rc = self._loop(timeout)
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1164, in _loop
rc = self.loop_read()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1556, in loop_read
rc = self._packet_read()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 2439, in _packet_read
rc = self._packet_handle()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 3033, in _packet_handle
return self._handle_publish()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 3327, in _handle_publish
self._handle_on_message(message)
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
on_message(self, self._userdata, message)
File "./ospiLCD-mqtt.py", line 71, in mqtt_message
update_display()
File "./ospiLCD-mqtt.py", line 95, in update_display
if ja.status.sn[x] == 0:
AttributeError: 'X' object has no attribute 'status'
Hi,
first of all thanks for continuing the work of @stanoba, keeping the script up-to-date and making it even better.
I don't have any issue, this is more like an idea - the documentation could have one more section dealing with how to setup the script as a service.
Thanks
Mike
Hello How I can set user end password line in configuration file?
hello @sirkus7 after test the script I have this error:
root@opensprinkler:/home/pi# ./ospiLCD-mqtt.py
Traceback (most recent call last):
File "./ospiLCD-mqtt.py", line 231, in
dotsize=8, charmap='A02', auto_linebreaks=True, backlight_enabled=True)
File "/usr/local/lib/python2.7/dist-packages/RPLCD/i2c.py", line 168, in init
auto_linebreaks=auto_linebreaks)
File "/usr/local/lib/python2.7/dist-packages/RPLCD/lcd.py", line 98, in init
self._init_connection()
File "/usr/local/lib/python2.7/dist-packages/RPLCD/i2c.py", line 173, in _init_connection
self.bus = SMBus(self._port)
IOError: [Errno 2] No such file or directory
root@opensprinkler:/home/pi#
what missing?
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.