peted-davis / WeatherFlow_PiConsole

Raspberry Pi Python console for WeatherFlow Tempest and Smart Home Weather Stations
GNU General Public License v3.0
159 stars 21 forks source link

wfpc menu button causes app to exit #149

Closed pmendiuk closed 6 days ago

pmendiuk commented 2 months ago

Hello, I just reinstalled wfpiconsole on Bullseye on a RPI3B+ and the wfpiconsole app stops when I touch the Menu Button Icon. Here is the console output:

Clock.tick() File "/home/patrick/wfpiconsole/venv/lib/python3.9/site-packages/kivy/clock.py", line 733, in tick self.post_idle(ts, self.idle()) File "/home/patrick/wfpiconsole/venv/lib/python3.9/site-packages/kivy/clock.py", line 776, in post_idle self._process_events() File "kivy/_clock.pyx", line 620, in kivy._clock.CyClockBase._process_events File "kivy/_clock.pyx", line 653, in kivy._clock.CyClockBase._process_events File "kivy/_clock.pyx", line 649, in kivy._clock.CyClockBase._process_events File "kivy/_clock.pyx", line 218, in kivy._clock.ClockEvent.tick File "/home/patrick/wfpiconsole/venv/lib/python3.9/site-packages/kivy/network/urlrequest.py", line 412, in _dispatch_result func(self, data) File "/home/patrick/wfpiconsole/panels/menu.py", line 122, in parse_station_list self.selector_panel.ids.station_dropdown.text = self.app.config['Station']['Name'] File "kivy/weakproxy.pyx", line 35, in kivy.weakproxy.WeakProxy.setattr File "kivy/properties.pyx", line 520, in kivy.properties.Property.set File "kivy/properties.pyx", line 567, in kivy.properties.Property.set File "kivy/properties.pyx", line 606, in kivy.properties.Property._dispatch File "kivy/_event.pyx", line 1307, in kivy._event.EventObservers.dispatch File "kivy/_event.pyx", line 1189, in kivy._event.EventObservers._dispatch File "/home/patrick/wfpiconsole/venv/lib/python3.9/site-packages/kivy/lang/builder.py", line 55, in custom_callback exec(kvlang.co_value, idmap) File "/home/patrick/wfpiconsole/kvlang/layout.kv", line 179, in on_text: app.mainMenu.get_station_devices() File "/home/patrick/wfpiconsole/panels/menu.py", line 189, in get_station_devices if tempest.split(':')[1].strip() == self.app.config['Station']['TempestID']: IndexError: list index out of range [^[[1;32mINFO^[[0m ] [Websocket ] 2024-08-23 17:30:07 - Closing connection [^[[1;32mINFO^[[0m ] [Websocket ] 2024-08-23 17:30:07 - Connection closed

peted-davis commented 2 months ago

Please double check all your station and device IDs that are entered in wfpiconsole.ini.