Fixed though I'm not sure why/how/what changed to break interceptor. Here's
the fix:
in interceptor.py you need to strip out the leading '&' in the url being
parsed. Add s=s.lstrip('&')
def _cgi_to_dict(s):
s=s.lstrip('&')
if '=' in s:
return dict([y.strip() for y in x.split('=')] for x in s.split('&'))
return dict()
On Sunday, January 21, 2024 at 10:18:51 AM UTC-8 Cory Verellen wrote:
> This is a new one I've not seen.
> Just updated (accidentally) to 5.0.0 via automatic update script. Oops,
> forgot I shouldn't do that with weewx. OK, let's see if I can fix this....
> Running Belchertown, and got the DB issue sorted. Now this
>
> Jan 21 10:00:26 weather weewxd[2883]: ERROR user.interceptor: parse failed
> for
> &PASSKEY=xxxxxxxxxxxxxxxxxxxxxxx&stationtype=AMBWeatherPro_V5.1.4&dateutc=2024-01-21+18:00:26&tempf=43.9&humidity=99&windspeedmph=0.00&windgustmph=0.00&maxdailygust=5.82&winddir=61&uv=0&solarradiation=20.31&hourlyrainin=0.000&eventrainin=0.409&dailyrainin=0.150&weeklyrainin=0.150&monthlyrainin=4.201&yearlyrainin=4.201&totalrainin=26.929&battout=1&tempinf=65.8&humidityin=41&baromrelin=29.297&baromabsin=29.220&temp1f=52.9&humidity1=66&batt1=1:
>
> dictionary update sequence element #0 has length 1; 2 is required
>
> There are some mentions of this out there but I've not found a solution
> yet.
>
> This is a Ambient WS-2902 that was working fine on 4.10.2 Any Ideas?
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/817a0e3b-b1fc-42e9-93d7-b5eb17d839ban%40googlegroups.com.