Wfpiconsole crashing: key error

I’m experiencing the something similar. This is a Pi dedicated to WFPiConsole so no changes have been made. I’ve tried uninstalling and reinstalling but I still get the same errors.

Traceback (most recent call last):
  File "/home/steve/wfpiconsole/main.py", line 613, in <module>
    wfpiconsole_app.run()
  File "/home/steve/wfpiconsole/venv/lib/python3.9/site-packages/kivy/app.py", line 956, in run
    runTouchApp()
  File "/home/steve/wfpiconsole/venv/lib/python3.9/site-packages/kivy/base.py", line 574, in runTouchApp
    EventLoop.mainloop()
  File "/home/steve/wfpiconsole/venv/lib/python3.9/site-packages/kivy/base.py", line 339, in mainloop
    self.idle()
  File "/home/steve/wfpiconsole/venv/lib/python3.9/site-packages/kivy/base.py", line 379, in idle
    Clock.tick()
  File "/home/steve/wfpiconsole/venv/lib/python3.9/site-packages/kivy/clock.py", line 733, in tick
    self.post_idle(ts, self.idle())
  File "/home/steve/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/steve/wfpiconsole/lib/sager.py", line 77, in fetch_forecast
    threading.Thread(target=self.generate_forecast(), daemon=True).start()
  File "/home/steve/wfpiconsole/lib/sager.py", line 274, in generate_forecast
    if METAR['clouds']:
KeyError: 'clouds'
[INFO   ] [Websocket   ] 2025-02-14 17:00:43 - Closing connection
[INFO   ] [Websocket   ] 2025-02-14 17:00:43 - Connection closed

Any suggestions?

I started seeing that yesterday. I got around it by setting the CheckWX key to zero. I tried getting a new CheckWX key but that did not fix it. I had not gotten around to reporting it … sorry :slight_smile: .

1 Like

@wx3i09 and @steveandkelley, hopefully this is just a temporary glitch in the data being provided by the CheckWX API. It happens sporadically. If it’s still not working in a week or so, I’ll take another look at it

Thanks everyone. Changing the CheckWX API key to 0 fixed it.

This should now be fixed permanently in the latest version: v25.2.1

1 Like

I just gave 25.2.1 a try and it is working now.

Just updated, changed my CheckWX API back and it’s working nicely.

Thanks for the support!

Glad to hear it’s working. I’ve moved this issue to a new topic in case others come looking for a fix

What is the issue, exactly? I ran the update to 25.2.1 and now the app won’t run. I get “ERROR: unable to complete CheckWX API call”. How do I fix it?

Changed it back to what?

Please can you send me your CheckWX API key in a private message and I will take a look at what is happening

I’d be happy to, but don’t know how to get a copy off the Pi. How do I get that?

You can either use SSH or VNC to connect to the Pi from a desktop or laptop, or if you have a keyboard and mouse attached to the Pi, then you can login to the forum on the Pi itself and share the API key directly from there

I do not have a keyboard or mouse. What is the username and password for SSH?

How did you setup the console originally?

It was done for me by Donald Barnett.

OK, you will have to get in touch with them to get the username and password. I don’t know what he would have set.

Can you send me images of the error you are seeing instead?

I am also having the same ‘unable to complete CheckWX API call’
This is also a Donald Barnett touch raspberry pi setup. Can you help me fix this? I do have the station
Number & ID. I do have the login from Donald for my device
Paul Phillips

The CheckWX API key provided by Donald is likely to be invalid. You’ll have to ask him why.

You need to register for a new key here: Create Your Account | CheckWX Aviation Weather API, then update the CheckWX API key in your wfpiconsole.ini file. You’ll then be back up and running

Thank you , I will take care it soon.