GithubHelp home page GithubHelp logo

sirkus7 / ospilcd-mqtt Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 1.44 MB

OpenSprinkler status display -- a Raspberry Pi, I2C LCD, MQTT enabled display.

Python 100.00%
i2c-display mqtt opensprinkler raspberrypi

ospilcd-mqtt's People

Contributors

sirkus7 avatar stanoba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

anusornint

ospilcd-mqtt's Issues

AttributeError: 'X' object has no attribute 'status'

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'

Install script as a service

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

error

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?

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.