WeatherFlow PiConsole - Archive

I will delete the ini in a second but thought I would go ahead and send you this:

pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
pi@raspberrypi:~ $

Peter
After deleting the ini the menu item still does not work. Here was the last bit of the cdm line:
Adding Version number: v22.3.1

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 0xab2cddb8>, it already has a parent <kivy.uix.boxlayout.BoxLayout object at 0xa5778e60>

OK, so that’s definitely still the same issue. I have added a possible work around to the development branch of the code. Can you run this command in the terminal

wfpiconsole beta

and then start the console with wfpiconsole start. Let me know if you see the same issue

Hi @peter and @jzsjr - Update to this, one I unplugged the USB Mouse and Keyboard the issue is no longer occurring. Just thought I’d report this to help with troubleshooting.

Regards
Paul

Hi @peter , do I need to select southern hemisphere anywhere? as I am still getting the northern hemisphere view. Regards Paul

No it should be based off your lat/lon. I used this website as a reference for getting the moon ‘right’. Does this agree with what you think it should be: Moon Phases 2023 – Lunar Calendar for Kallangur, Queensland, Australia

I just did my update today, and I am having the same problem. I am able to open the console just fine, but when I click on the Menu, it pops up for a second and closes back to terminal window. I deleted the .ini file and recreated a new one and am still having the same issue.
any thoughts? It appears my station name is correct

Can you post the output that you see on the terminal? It seems like some users are having an issue that so far I have been unable to recreate.

Peter
The beta attempt was a no go. The issue still exist. I’m going to try unplugging my keyboard as mentioned.
Jim

Pcarr-AU
I’m just running things with a keyboard and unplugging it did not correct any issue going to menu.
Jim

I can not remember how to copy and paste codepi@raspberryWeather:~ $ wfpiconsole start
[INFO ] [Logger ] Record log in /home/pi/.kivy/logs/kivy_22-03-07_25.txt
[INFO ] [Kivy ] v2.0.0
[INFO ] [Kivy ] Installed at “/home/pi/.local/lib/python3.7/site-packages/kivy/init.py”
[INFO ] [Python ] v3.7.3 (default, Jul 25 2020, 13:03:44)
[GCC 8.3.0]
[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 18.3.6’>
[INFO ] [GL ] OpenGL vendor <b’X.Org R300 Project’>
[INFO ] [GL ] OpenGL renderer <b’ATI RC410’>
[INFO ] [GL ] OpenGL parsed version: 2, 1
[INFO ] [GL ] Shading version <b’1.20’>
[INFO ] [GL ] Texture max size <2048>
[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-07 14:51:54 - Opening connection
[INFO ] [Base ] Start application main loop
[INFO ] [Websocket ] 2022-03-07 14:51:55 - Connection open
[INFO ] [Base ] Leaving application in progress…
Traceback (most recent call last):
File “main.py”, line 498, in
wfpiconsole().run()
File “/home/pi/.local/lib/python3.7/site-packages/kivy/app.py”, line 950, in run
runTouchApp()
File “/home/pi/.local/lib/python3.7/site-packages/kivy/base.py”, line 582, in runTouchApp
EventLoop.mainloop()
File “/home/pi/.local/lib/python3.7/site-packages/kivy/base.py”, line 347, in mainloop
self.idle()
File “/home/pi/.local/lib/python3.7/site-packages/kivy/base.py”, line 387, in idle
Clock.tick()
File “/home/pi/.local/lib/python3.7/site-packages/kivy/clock.py”, line 733, in tick
self.post_idle(ts, self.idle())
File “/home/pi/.local/lib/python3.7/site-packages/kivy/clock.py”, line 776, in post_idle
self._process_events()
File “kivy/_clock.pyx”, line 616, in kivy._clock.CyClockBase._process_events
File “kivy/_clock.pyx”, line 649, in kivy._clock.CyClockBase._process_events
File “kivy/_clock.pyx”, line 645, in kivy._clock.CyClockBase._process_events
File “kivy/_clock.pyx”, line 218, in kivy._clock.ClockEvent.tick
File “/home/pi/.local/lib/python3.7/site-packages/kivy/network/urlrequest.py”, line 513, in _dispatch_result
func(self, data)
File “/home/pi/wfpiconsole/panels/menu.py”, line 111, in parse_station_list
self.ids.stationDropdown.text = self.app.config[‘Station’][‘Name’]
File “kivy/weakproxy.pyx”, line 35, in kivy.weakproxy.WeakProxy.setattr
File “kivy/properties.pyx”, line 498, in kivy.properties.Property.set
File “kivy/properties.pyx”, line 545, in kivy.properties.Property.set
File “kivy/properties.pyx”, line 600, in kivy.properties.Property.dispatch
File “kivy/_event.pyx”, line 1248, in kivy._event.EventObservers.dispatch
File “kivy/_event.pyx”, line 1130, in kivy._event.EventObservers._dispatch
File “/home/pi/.local/lib/python3.7/site-packages/kivy/lang/builder.py”, line 57, in custom_callback
exec(kvlang.co_value, idmap)
File “/home/pi/wfpiconsole/wfpiconsole.kv”, line 1209, in
on_text: root.get_station_devices()
File “/home/pi/wfpiconsole/panels/menu.py”, line 144, in get_station_devices
self.get_station_metadata()
File “/home/pi/wfpiconsole/panels/menu.py”, line 341, in get_station_metadata
URL = URL.format(self.station_details[station][‘station_id’], App.get_running_app().config[‘Keys’][‘WeatherFlow’])
KeyError: ‘Fritz Weather Station’

OK, good news - I’ve finally been able to recreate the error :slight_smile: Now I just need to find a fix. For the time being are you happy to just not press the “Menu” button? I know it’s kinda annoying!

OK, this looks like the Station name issue, rather than the issue jszjr and Pcarr-AU are having. Can you let me know your Station ID please?

Station ID is - 28059

OK, so the name associated with that Station looks like it is “Millard Park” (Tempest), which doesn’t match ‘Fritz Weather Station’. You need to make sure that the Name key under Station in wfpiconsole.ini is set to Millard Park

@jzsjr and @Pcarr-AU, so after a little digging it seems like the problem is that when the Menu button is pressed, the console thinks it has been pressed once through the touchscreen and once with a mouse. This is why unplugging the keyboard/mouse probably worked. I am going to look at ways to try and stop this, as it seems like it only occurs on a Pi4, with a touchscreen and with a mouse plugged in :upside_down_face:

@peter - I just upgraded to the latest version but I’m getting the error shows below: Any help will be appreciated.
Screen Shot 2022-03-07 at 4.34.19 PM

Try running this command in a terminal before starting the console again:

python3 -m pip install certifi

I’m checking out now (it’s late here!), but I’ll be back tomorrow to keep working out the bugs :rofl:

Thank you @peter the console is back up. :+1:

Don’t worry about me, I’m good.
Jim