WeatherFlow PiConsole - Archive

Peter, this is awesome! Thank you for your hard work, especially adding the custom panels option.

1 Like

Good morning. Thank you for the update Peter. I updated my pi first and then made a backup copy of the ini file and then updated the piconsole. Everything went great. It seems that it kept my information in the ini file as well. The only issue I am having is when I hit menu on the touch screen piconsole exits or stops running.
Thank you,
Jim

Hi Jim, sorry you’re having issues. Seems like there might be a bug that I didn’t catch. Can you copy the contents of the terminal once you’ve pressed the Menu button and the console has crashed? That’ll let me know what the issue is.

rrypi:~ $ wfpiconsole start
[INFO ] [Logger ] Record log in /home/pi/.kivy/logs/kivy_22-03-06_10.txt
[INFO ] [Kivy ] v2.0.0
[INFO ] [Kivy ] Installed at “/home/pi/.local/lib/python3.9/site-packages/kivy/init.py”
[INFO ] [Python ] v3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110]
[INFO ] [Python ] Interpreter at “/usr/bin/python3”
[INFO ] [Factory ] 186 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the “OpenGL ES 2” graphics system
[INFO ] [GL ] Backend used
[INFO ] [GL ] OpenGL version <b’2.1 Mesa 20.3.5’>
[INFO ] [GL ] OpenGL vendor <b’Broadcom’>
[INFO ] [GL ] OpenGL renderer <b’V3D 4.2’>
[INFO ] [GL ] OpenGL parsed version: 2, 1
[INFO ] [GL ] Shading version <b’1.20’>
[INFO ] [GL ] Texture max size <4096>
[INFO ] [GL ] Texture max units <16>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[INFO ] [Text ] Provider: sdl2
[INFO ] [GL ] NPOT texture support is available
[INFO ] [Websocket ] 2022-03-06 09:49:04 - Opening connection
[INFO ] [ProbeSysfs ] device match: /dev/input/event5
[INFO ] [MTD ] Read event from </dev/input/event5>
[INFO ] [ProbeSysfs ] device match: /dev/input/event5
[INFO ] [HIDInput ] Read event from </dev/input/event5>
[INFO ] [Base ] Start application main loop
[INFO ] [MTD ] </dev/input/event5> range position X is 0 - 799
[INFO ] [HIDMotionEvent] using <generic ft5x06 (00)>
[INFO ] [MTD ] </dev/input/event5> range position Y is 0 - 479
[INFO ] [HIDMotionEvent] <generic ft5x06 (00)> range ABS X position is 0 - 799
[INFO ] [MTD ] </dev/input/event5> range touch major is 0 - 0
[INFO ] [HIDMotionEvent] <generic ft5x06 (00)> range ABS Y position is 0 - 479
[INFO ] [MTD ] </dev/input/event5> range touch minor is 0 - 0
[INFO ] [HIDMotionEvent] <generic ft5x06 (00)> range position X is 0 - 799
[INFO ] [MTD ] </dev/input/event5> range pressure is 0 - 255
[INFO ] [HIDMotionEvent] <generic ft5x06 (00)> range position Y is 0 - 479
[INFO ] [MTD ] </dev/input/event5> axes invertion: X is 0, Y is 0
[INFO ] [MTD ] </dev/input/event5> rotation set to 0
[INFO ] [Websocket ] 2022-03-06 09:49:04 - Connection open
[INFO ] [Base ] Leaving application in progress…
Traceback (most recent call last):
File “/home/pi/wfpiconsole/main.py”, line 498, in
wfpiconsole().run()
File “/home/pi/.local/lib/python3.9/site-packages/kivy/app.py”, line 950, in run
runTouchApp()
File “/home/pi/.local/lib/python3.9/site-packages/kivy/base.py”, line 582, in runTouchApp
EventLoop.mainloop()
File “/home/pi/.local/lib/python3.9/site-packages/kivy/base.py”, line 347, in mainloop
self.idle()
File “/home/pi/.local/lib/python3.9/site-packages/kivy/base.py”, line 391, in idle
self.dispatch_input()
File “/home/pi/.local/lib/python3.9/site-packages/kivy/base.py”, line 342, in dispatch_input
post_dispatch_input(*pop(0))
File “/home/pi/.local/lib/python3.9/site-packages/kivy/base.py”, line 308, in post_dispatch_input
wid.dispatch(‘on_touch_up’, me)
File “kivy/_event.pyx”, line 709, in kivy._event.EventDispatcher.dispatch
File “/home/pi/.local/lib/python3.9/site-packages/kivy/uix/behaviors/button.py”, line 179, in on_touch_up
self.dispatch(‘on_release’)
File “kivy/_event.pyx”, line 705, in kivy._event.EventDispatcher.dispatch
File “kivy/_event.pyx”, line 1248, in kivy._event.EventObservers.dispatch
File “kivy/_event.pyx”, line 1132, in kivy._event.EventObservers._dispatch
File “/home/pi/.local/lib/python3.9/site-packages/kivy/lang/builder.py”, line 57, in custom_callback
exec(kvlang.co_value, idmap)
File “/home/pi/wfpiconsole/wfpiconsole.kv”, line 89, in
on_release: Factory.mainMenu().open()
File “/home/pi/.local/lib/python3.9/site-packages/kivy/uix/modalview.py”, line 221, in open
self.dispatch(‘on_pre_open’)
File “kivy/_event.pyx”, line 709, in kivy._event.EventDispatcher.dispatch
File “/home/pi/wfpiconsole/panels/menu.py”, line 68, in on_pre_open
self.ids.stationPanel.add_widget(self.app.station.station_status_panel)
File “/home/pi/.local/lib/python3.9/site-packages/kivy/uix/boxlayout.py”, line 327, in add_widget
return super(BoxLayout, self).add_widget(widget, index, canvas)
File “/home/pi/.local/lib/python3.9/site-packages/kivy/uix/layout.py”, line 97, in add_widget
return super(Layout, self).add_widget(widget, index, canvas)
File “/home/pi/.local/lib/python3.9/site-packages/kivy/uix/widget.py”, line 618, in add_widget
raise WidgetException(‘Cannot add %r, it already has a parent %r’
kivy.uix.widget.WidgetException: Cannot add <lib.status.station_status object at 0xab33c098>, it already has a parent <kivy.uix.boxlayout.BoxLayout object at 0xa8c56680>
pi@raspberrypi:~ $

Sorry for the format. I’m working off of the Pi’s 7" screen and without a mouse.
Jim

That’s perfect, thanks. Does it crash the very first time you press the Menu button after the console has started?

A blank dark box opens like it is attempting to open settings and then the program exits back to McDonald’s window underneath.
Jim

McDonald’s window! That is a new one. Cmd window.

mine just updated from v4.04 to v22.21 at 15:10 UTC. Everything went smoothly . .except. . . when after I do a “wfpiconsole start” and the main screens appear. . . .pressing “Menu” button in the lower right. . . reverts back to " pi@wfpiconsole". I doesn’t crash…it just goes back to where it wants me to “wfpiconsole start” again. Once the main display screen are shown. . .everything is fine. . .IF. . .I don’t touch any of the buttons on the bottom.

Hmmmm, looks like the same issue as Jim has above. Can you post the contents of the terminal after the console has exited?

IF. . .I don’t touch any of the buttons on the bottom.

Even switching between panels causes a crash?

no; touching the Sager Moon Solar (Lightning) buttons are okay. Only touching “Menu” causes this

I have to way to extract the information except to take a snapshot of the screen.

Can you take a screenshot of the top of your wfpiconsole.ini file?

sorry for blurry image. on v22.21. . .when I touch “Menu”. . . the screen BRIEFLY goes to this:

image

. . .but then quickly goes to the screen as shown in my thread above.

Have you recently (within the last year!) changed the name of your Station? I think the PiConsole wants your station to be named “Bellevue Tempest WeatherSystem”, but the name looks different if I click on the link in your profile

Do you mind sharing the contents of your wfpiconsole.ini file with me in a PM? This is a very odd bug that should effect everyone, but only seems to be hitting you!

Peter. . .I use “Bellevue Tempest° WeatherSystem” as the name for my entire Tempest° system. That is the name that the API token is associated with. I have several other “tokens” which are for my SWS and 3 other Tempest° devices. . .but only the token associated with “Bellevue Tempest° WeatherSystem” is used ONLY for ‘wfpiconsole’. The link in my profile is associated with "Paver Patio Tempest°. . . tempestwx.com/station/30165/grid and ‘wfpiconsole’ is instructed to look for StationID 30165. The name “Bellevue Tempest° WeatherSystem” is the name I picked for my Entire WeatherFlow Tempest° system. . .all devices either WF or t° .

Peter. . .I too can share the contents of wfpiconsole.ini If I can figure out how to extract that file off the console in order to put it into some sort of transfer method.

you have to terminal in to the pi

most common command is

ssh pi@ip-of-the-pi

give password

then navigate to where the script is and just

nano wfpiconsole.log

to open it

and copy paste

You could install an ftp on the pi but that might be overkill

This is what my screen looks like now after starting the piconsole. I can touch the screen in the bottom right hand corner, where menu is, and exit out to the desktop.
Jim

Don’t worry about the entire contents if that is too much effort. If you could just share the API token you are using (or create a new one that you can then delete if you are happier with that), I should be able to get all the information I need

Actually, scrap that, I think I have all the information I need from looking at the map.

From the blurry photo of the menu screen you shared, I can see that the title is “Bellevue Tempest WeatherSystem”, and this means that in your wfpiconsole.ini file under [Station] the Name key must be set to that.

Looking at the map though, I can see that there are four stations which I assume are yours:

  • Bellevue Tempest° – Paver Patio
  • Bellevue Tempest° – Backyard
  • Bellevue Tempest° – Field Test
  • Kayleen WeatherFlow

In the past the PiConsole didn’t really care what was in the Name key under Station in the config file. It was just used to display the station name at the top of the menu. For this release though, which has the option to switch between different devices and stations, the Name key must match the name of the station that you are currently displaying data from (in your case 30165). This is because when you press on the Station tab in the Menu it tries to set the value of the Station dropdown box to the name of your current station using the value contained in the [Station][Name] config key. If that config key doesn’t match any of the station names associated with your API key, then the console falls over.

This is what I think is happening here. The [Station][Name] config key is set to “Bellevue Tempest WeatherSystem”, but it needs to be “Bellevue Tempest° – Paver Patio”.

There are two solutions. 1) delete the wfpiconsole.ini file and generate a new one. This will pull the correct station name. 2) edit the existing wfpiconsole.ini file and change the [Station][Name] config key to “Bellevue Tempest° – Paver Patio”.

EDIT: If you go with the second method, make sure you keep the double hyphen. This forum turns them into a single long hyphen!