My son is working on a school project and has built a SmartPlantPi system. We've been following the instructions in the Assembly and Usage Manual and didn't hit any problems until we got to page 29 where we ran SmartPlantPi.py
When that window populated, there seemed to be some issues, especially related to PubHub. See the attached .pdf for screen shots from the SmartPlantPi.py output screen
My son's project is due on 10/2, so he was hoping the system would be operational for his presentation. Since we are not programmers, we have just about exhausted our trouble-shooting capabilities.
Any help you can give would be greatly appreciated.
This a new error that we have not seen before. The quick way to fix this (while we look at this tomorrow), is to comment out the following line (line 372) in smartplantpi.py
pubnub.publish().channel('SmartPlantPi_Data').message(myMessage).async(publish_callback) John texted me and let me know he had talked to you. Put a # in front of this line so the section looks like this:
I was able to use nano to comment out that line of code. The device still does not seem to be working properly, however.
When we run the program, it goes through the start up, showing the sensors present and running through some other info. At the bottom, I’m showing a line with an error...It says:
AttributeError: ‘Publish’ object has no attribute ‘async’
After that, the program stops and returns to the command prompt. I’m assuming it’s supposed to continue running so the watering can occur and so the button and rotary switch can be used as described in the manual.
I hope you can help clear this up for us. Our main goal is to get the system working so watering happens automatically and we can read the on-going values on the display. Once that works, we’ll want to try to get the internet portal working where we can monitor the plant via the web.