|
Post by lightbringer1974 on Dec 27, 2018 15:43:59 GMT -8
|
|
|
Post by SDL on Dec 27, 2018 16:06:23 GMT -8
Hello lightbringer!
BP is off today, so I get to answer all the questions.
I see what the problem is. It looks like Pubnub updated their library and removed the async function. The reason I know this is that they did a similar thing up on our big Linux machines at the University (running Unbutu) and broke a bunch of robotics programs for my poor students.
def publishEventToPubNub():
myMessage = {} myMessage["SmartPlantPi_Last_Event"] = state.Last_Event if (DEBUG): print myMessage
pubnub.publish().channel('SmartPlantPi_Data').message(myMessage).async(publish_callback)
Line 372 is at the bottom of the above block.
Add a # in front of it to comment it out.
So it looks like this:
#pubnub.publish().channel('SmartPlantPi_Data').message(myMessage).async(publish_callback)
That will fix this problem. I'll load up the latest library and upload a fix to the repository shortly.
I assume you aren't really using PubNub at this point?
Another reason to move to the SmartGardenSystem code is support of the Blynk app.
BP
|
|
|
Post by lightbringer1974 on Dec 27, 2018 16:13:50 GMT -8
Is the blink app compatible with this SmartPlant system.If so how can i use that instead.
CERK
|
|
|
Post by SDL on Dec 27, 2018 16:29:59 GMT -8
|
|
|
Post by lightbringer1974 on Dec 27, 2018 17:15:29 GMT -8
I deleted and reinstalled it, but still the same issues. Do I still use the command sudo pip install'pubnub>=4.0.5' ?
|
|
|
Post by SDL on Dec 28, 2018 8:48:14 GMT -8
Pleaser post the error. The last one.
BP
|
|