|
Post by oaktree on Jul 16, 2018 8:08:59 GMT -8
Hi,
I am trying to set up my online dashboard in order to see my plant data. However, after setting up my pubnub account by following the directions in the 'Advanced Manual', I seem to have reached an impasse. I have 0 published messages on my pubhub account, even though my system is currently running.
I have changed the publishing and subscribing keys in my 'config.py' file already, but this has not made a difference. Additionally, when I run the file 'listen.py' in another terminal, I can see the "incoming messages" the way they should be, but they never make it to pubhub.
Has anyone had a similar problem / know what I could do to fix this. Any input would be much appreciated.
Thanks.
|
|
|
Post by SDL on Jul 16, 2018 9:33:36 GMT -8
A couple of suggestions:
1) Do you have a conflocal.py file?
2) Turn on the Debug inside SmartPlantPi.py
3) Watch what the pubnub software is doing when you run sudo python SmartPlantPi.py
It should give you a clue. It is almost always a mismatch for publish/subscribe keys. Maybe you swapped them or cut off a character.
BP
Change to True:
############# # Debug True or False ############
DEBUG = False
|
|
|
Post by oaktree on Jul 16, 2018 11:48:16 GMT -8
In response to your questions:
1) No. Is this a problem / should it have been downloaded along with the rest of the code from GitHub? It seems like in the SmartPlantPi.py code it imports from config.py if conflocal.py is not found.
2) In debug mode I can see lines that say "Publishing Data to PubNub time : XXXXXXX, followed by the message that is "sent" presumably, but never recieved.
3) How does one watch the pubnub software? That dosen't really make sense to me.
Thanks!
|
|
|
Post by SDL on Jul 17, 2018 10:01:34 GMT -8
No problem with config.py versus conflocal.py Just wanted to make sure you weren't using both!
Yes, the message has been sent to PubNub.
In Pubnub, go to the debug tab and set up a receiver for your stream to see if you are getting it at pubnub. Based on what said, it's going to pubnub. Something is setup wrong there.
BP
|
|
|
Post by oaktree on Jul 18, 2018 6:02:21 GMT -8
Okay - I have figured out the PubNub problem. On the other hand, when I open freeboard and import the .json file, all I get is a screen that loads infinitely, rather than popping up the desired dashboard. I do I work around and fix this?
Thanks
|
|
|
Post by SDL on Jul 19, 2018 13:14:26 GMT -8
There is a thread here on the forum that addresses that issue. Search on JSON and PubNub and you will find out what has fixed this problem for others.
One thing you really need to do (PubNub doesn't always play well with browsers) is log out, shut down your browser and then log in again.
BP
|
|