On Wed 27 Nov gjr80 wrote:
> Is that how you obtained the data above? If not the output from the
> --get-json-data when the STORM is misbehaving would help.
No, I was using a script that uses BloomSkyAPIClient, and I've a
feeling that may be somewhat older than the present BloomSky driver in
weewx.
> $ PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/bloomsky.py
> --get-json-data
When I try this I get an error thus:
Traceback (most recent call last):
File "/usr/share/weewx/user/bloomsky.py", line 827, in <module>
main()
File "/usr/share/weewx/user/bloomsky.py", line 798, in main
get_json_data(opts.api_key)
File "/usr/share/weewx/user/bloomsky.py", line 823, in get_json_data
raw_data = api_client.sd.get_data()
File "/usr/share/weewx/user/bloomsky.py", line 708, in get_data
params, headers)
File "/usr/share/weewx/user/bloomsky.py", line 720, in get_request
obfuscated['Authorization'] = ''.join(("....",
obfuscated['Authorization'][-4:]))
TypeError: 'NoneType' object has no attribute '__getitem__'
The python command is ponting at python2.7
I tried using python3 but that didn't like the weewx modules.
--
73, Rick, M0LEP