WeatherFlow PiConsole - Archive

OK, so I have reverted to the unsecured websocket and have added the extra debug output. Can you patch again using wfpiconsole patch and then get the console back up and running. Now you should see a message printed every time a Sky message is received, along with the time since the last message in brackets. I am interested in know what happens when the console freezes.

Before you re-start the console, can you also run python3 -m pip list --format columns and copy/paste the output. That will tell me what versions on the different Python modules you are using. I can compare that with my output to see if you are using a different (and maybe buggy) module.

Also don’t worry about the extra output once you have pressed ctrl-c. That is a standard error indicating that you have used a keyboard interrupt to stop the console/copy the text. You might be able to right click on the text in VNC as well to copy instead.

I know I have no problems but in case

pi@WF_console:~ $ python3 -m pip list --format columns
Package           Version    
----------------- -----------
astroid           1.4.9      
asttokens         1.1.13     
attrs             18.2.0     
autobahn          18.9.2     
Automat           0.7.0      
automationhat     0.2.0      
blinker           1.3        
blinkt            0.1.2      
bluepy            1.1.4      
buttonshim        0.0.2      
Cap1xxx           0.1.3      
chardet           2.3.0      
click             6.6        
colorama          0.3.7      
colorzero         1.1        
constantly        15.1.0     
cryptography      1.7.1      
Cython            0.29.10    
docutils          0.14       
drumhat           0.1.0      
envirophat        1.0.0      
ephem             3.7.6.0    
ExplorerHAT       0.4.2      
Flask             0.12.1     
fourletterphat    0.1.0      
geographiclib     1.49       
geopy             1.17.0     
gpiozero          1.5.0      
hyperlink         18.0.0     
idna              2.7        
incremental       17.5.0     
isort             4.2.5      
itsdangerous      0.24       
jedi              0.10.2     
Jinja2            2.8        
keyring           10.1       
keyrings.alt      1.3        
Kivy              1.11.0.dev0
Kivy-Garden       0.1.4      
lazy-object-proxy 1.2.2      
MarkupSafe        0.23       
mcpi              0.1.1      
microdotphat      0.2.1      
mote              0.0.4      
motephat          0.0.2      
mypy              0.470      
numpy             1.12.1     
oauthlib          2.0.1      
packaging         18.0       
pantilthat        0.0.7      
pgzero            1.2        
phatbeat          0.1.1      
pianohat          0.1.0      
picamera          1.13       
picraft           1.0        
piglow            1.2.5      
pigpio            1.38       
Pillow            4.0.0      
pip               20.0.2     
pyasn1            0.4.4      
pyasn1-modules    0.2.2      
PyBluez           0.23       
pycrypto          2.6.1      
pyephem           3.7.6.0    
pygame            1.9.3      
Pygments          2.2.0      
pygobject         3.22.0     
PyHamcrest        1.9.0      
pyinotify         0.9.6      
PyJWT             1.4.2      
pylint            1.6.5      
pyOpenSSL         16.2.0     
pyparsing         2.3.0      
pyperclip         1.5.27     
pyserial          3.2.1      
python-apt        1.1.0b5    
pytz              2018.5     
pyudev            0.21.0     
pyxdg             0.25       
rainbowhat        0.1.0      
requests          2.12.4     
requests-oauthlib 0.7.0      
roman             2.0.0      
RPi.GPIO          0.6.5      
RTIMULib          7.2.1      
scrollphat        0.0.7      
scrollphathd      1.2.1      
SecretStorage     2.3.1      
sense-emu         1.1        
sense-hat         2.2.0      
service-identity  17.0.0     
setuptools        46.1.3     
simplejson        3.10.0     
six               1.11.0     
skywriter         0.0.7      
sn3218            1.2.7      
spidev            3.3        
thonny            3.1.0      
thonny-pi         1.1        
touchphat         0.0.1      
Twisted           18.7.0     
twython           3.4.0      
txaio             18.8.1     
typed-ast         0.6.3      
unicornhathd      0.0.4      
urllib3           1.19.1     
Werkzeug          0.11.15    
wheel             0.29.0     
wrapt             1.9.0      
zope.interface    4.5.0  

Here is my list…Python modules list.txt (4.7 KB)

Thanks for the list (and thank you too @eric). I will have a look through and see if there is anything glaringly different.

#Peter first rain / a few lightnings since we upped to this version and definitively something fishy
As you know I’m using the Tempest. And is indeed like frozen, no more wind, no pressure update etc …




want me to patch ?

edit : weewx that’s running on the same pi is still running ok

Updated to 3.1.2 and the Sky messages are showing up in the terminal.

Patch 3.1.2 updated.txt (3.2 KB)

You too! There clearly is same nasty bug that needs squashing. I was having a think this evening and I might have an idea as to what it is. Let me make a new patch tomorrow and then I’ll get you to update to that.

@padieter Glad to see the patch is working. I am really interested in knowing whether the Sky messages continue to arrive after the console stops updating. This will really help clear up whether it is due to a loss of connection with the servers, or something internal to the console code. I am hoping for the latter right now, as I might have realised what the issue is.

@eric and @padieter, I have just pushed another patch to Github (v3.1.4), which I am really hoping will fix the freezing issues. Can you both run wfpiconsole patch and manually start your consoles with wfpiconsole start. The patch still contains the extra debugging output showing the time since the last Sky/Tempest message. If the fix works and your consoles have not frozen for a number of days I will release a full new version with this debugging output removed.

patched

pi@WF_console:~/wfpiconsole $ wfpiconsole patch

  [✓] Root user check passed

  ==============================
  Patching WeatherFlow PiConsole
  ==============================

  [✓] Raspberry Pi found. Hardware check passed
  [✓] Raspbian (Debian) found. OS check passed
  [✓] Checking for updated packages
  [i] No updated packages found

  [✓] Patching the WeatherFlow PiConsole to v3.1.4
  
  ============================================= 
  WeatherFlow PiConsole patching complete!      
  Restart the console with: 'wfpiconsole start' 
  or 'wfpiconsole autostart-enable'             
  ============================================= 

and terminal is logging (why not send it to a file ? This way no need to keep a terminal open or vnc …)

little typo lol

2020-04-13 12:05:03+0200 [-] 13/04/20 12:05:03  Tempest message rec**ie**ved (14)
2020-04-13 12:05:30+0200 [-] 13/04/20 12:05:30  Tempest message rec**ie**ved (27)

edit : potentially some rain in a few hours

Opps! Didn’t spot that little slip…

Good idea - didn’t think of that. You should be able to close the VNC application though. That won’t interrupt the console from running.

just relaunched it in ‘screen’. Even if my terminal disconnects, it’ll run and I can ‘screen’ back in the terminal

1 Like

still nothing to see except a long list of lines … :sleeping:

I have now patched to 3.1.4. I waited until I had 24 hours on 3.1.2 and my console didn’t get stuck! There was a lost connection at about noon time but the console continued to display the changing data.

Sky messages April 13th_before 3.1.4.txt (73.0 KB)

still running :sleeping: :sleeping: :sleeping: :sleeping:

checked memory usage etc but no apparent memory leakage … no cpu usage etc … all seems very calm on the pi :sleeping: :sleeping: :sleeping: :sleeping:

Running 24+ hours on 3.1.4 and everything seams good, no data display lockups.Sky messages April 14th_After 3.1.4.txt (73.0 KB)

Thanks for the updates @padieter and @eric. Glad to hear all is good and the console is not locking up. I’m getting more confident that we have solved the issue, but we’ll need a few more days to be sure. Keep me updated and let me know if it breaks. If not, I can start thinking about rolling the changes we’ve made into a new version.

nothing more I can say … :sleeping: :sleeping: :sleeping: :sleeping:

No problem Peter. My set up has been working great since April 12th.
Sky messages April 16th_After 3.1.4.txt (73.1 KB)

Thanks for the feedback @eric and @padieter. I think we can be fairly confident that the bug has gone. I don’t think the issue was the secure websocket, so I am going to try one more patch with that re-implemented. I’ll probably have that ready tomorrow/Saturday. If that runs OK as well, then I can get all the changes rolled into a new version. Thanks again for all the help!

1 Like

and another 24h passed by :sleeping: :sleeping: :sleeping:
guess I’ll stop tracing … just boring all those lines :no_mouth: there is nothing to debug … :crazy_face: :joy:

1 Like