Peter, this is awesome! Thank you for your hard work, especially adding the custom panels option.
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:
. . .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!