weewx no longer running

106 views
Skip to first unread message

mukbar

unread,
Jul 10, 2023, 12:50:29 PM7/10/23
to weewx-user
Hello,

Have lurked here for years. Many folks have been invaluable in helping me set up https://sanpedrowx.com/. 

I am stuck now and need some help, please. weewx is no longer running.

weewx version 4.10.2
installed with the debian package on Raspberry Pi 4 Model B rev 1.4.
raspbian version: 10

Trying to start weewx with sudo weewxd with debug = 1 yields:

/usr/lib/python3/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.7) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
Traceback (most recent call last):
  File "/usr/share/weewx/weewxd", line 249, in <module>
    main()
  File "/usr/share/weewx/weewxd", line 154, in main
    engine.run()
  File "/usr/share/weewx/weewx/engine.py", line 178, in run
    self.dispatchEvent(weewx.Event(weewx.STARTUP))
  File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
    callback(event)
  File "/usr/share/weewx/weewx/engine.py", line 584, in startup
    self._catchup(self.engine.console.genStartupRecords)
  File "/usr/share/weewx/weewx/engine.py", line 697, in _catchup
    for record in generator(lastgood_ts):
  File "/usr/share/weewx/user/weatherflowudp.py", line 620, in genStartupRecords
    for packet in readDataFromWF(since_ts + 1, self._token, self._devices, self._device_dict, self._batch_size):
  File "/usr/share/weewx/user/weatherflowudp.py", line 329, in readDataFromWF
    raise DriverException("Could not fetch records from WeatherFlow webservice: {}".format(response))
user.weatherflowudp.DriverException: Could not fetch records from WeatherFlow webservice: <Response [404]>

Thank you.

Rainer Lang

unread,
Jul 10, 2023, 1:07:23 PM7/10/23
to weewx...@googlegroups.com

try

sudo pip3 install --upgrade requests
if pip3 is not installed, do it before

sudo apt-get -y install python3-pip

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/56b65698-3ea4-482b-8974-1a5a48c88a7bn%40googlegroups.com.

mukbar

unread,
Jul 10, 2023, 2:02:24 PM7/10/23
to weewx-user
Thank you. Just did all that. Now says python3-pip is already the newest version.

Forgot to mention weather station: Weatherflow Tempest

sudo weewxd now yields:

Traceback (most recent call last):
  File "/usr/share/weewx/weewxd", line 249, in <module>
    main()
  File "/usr/share/weewx/weewxd", line 154, in main
    engine.run()
  File "/usr/share/weewx/weewx/engine.py", line 178, in run
    self.dispatchEvent(weewx.Event(weewx.STARTUP))
  File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
    callback(event)
  File "/usr/share/weewx/weewx/engine.py", line 584, in startup
    self._catchup(self.engine.console.genStartupRecords)
  File "/usr/share/weewx/weewx/engine.py", line 697, in _catchup
    for record in generator(lastgood_ts):
  File "/usr/share/weewx/user/weatherflowudp.py", line 620, in genStartupRecords
    for packet in readDataFromWF(since_ts + 1, self._token, self._devices, self._device_dict, self._batch_size):
  File "/usr/share/weewx/user/weatherflowudp.py", line 329, in readDataFromWF
    raise DriverException("Could not fetch records from WeatherFlow webservice: {}".format(response))
user.weatherflowudp.DriverException: Could not fetch records from WeatherFlow webservice: <Response [404]>

vince

unread,
Jul 10, 2023, 3:25:53 PM7/10/23
to weewx-user
What did you change in your weewx system that possibly caused it to break ?

Or is it a new system that you are trying to get to work ?

mukbar

unread,
Jul 10, 2023, 3:45:28 PM7/10/23
to weewx-user
It is an old system that crashed in December 2022,  due to a power outage, I think. I lost remote access at that time. I finally came to the site in Belize last week and have been trying to bring the system back to life with no luck. Everything on my droplet side (MQTT, etc.) is working, as far as I can tell. But I cannot get weewx to start. Not sure if it being down for 6 months has rendered recovery impossible. 

Should I delete weewx and reinstall and start over? Or is there more troubleshooting I should do?

Rainer Lang

unread,
Jul 10, 2023, 3:49:10 PM7/10/23
to weewx...@googlegroups.com

that's an option
but keep your Skin files (rename your skin directory) and weewx.conf so you can cannibalize on them when doing a complete new install - and, of course, keep your weewx.sdb 😉 (safety copy).
You may need to download a new updated driver/extension for your Tempest, too.

vince

unread,
Jul 10, 2023, 5:32:41 PM7/10/23
to weewx-user
You are not providing enough information to explain your setup.

A 404 error typically means the file it's looking for on the server isn't found.   You seem to be using some kind of websockets-enabled fork of the normal UDP-only driver so my 'guess' is that you are trying to look up data for a station id that does not exist.

What URL are you trying to access ?   Can you access it using their instructions at https://weatherflow.github.io/Tempest/api/ ?

mukbar

unread,
Jul 10, 2023, 6:05:57 PM7/10/23
to weewx-user
You are right, Vince. Input station number instead of station ID. Dumb. Cleaned that up in weewx.conf. 

No more 404 error, I don't think.

sudo weewxd now yields:

^CTraceback (most recent call last):

  File "/usr/share/weewx/weewxd", line 249, in <module>
    main()
  File "/usr/share/weewx/weewxd", line 154, in main
    engine.run()
  File "/usr/share/weewx/weewx/engine.py", line 208, in run
    for packet in self.console.genLoopPackets():
  File "/usr/share/weewx/user/weatherflowudp.py", line 304, in genLoopPackets
    m=s.recvfrom(1024)
KeyboardInterrupt

Any ideas?
Reply all
Reply to author
Forward
0 new messages