[weewx-user] Re: Belchertown Earthquake data error

2019-07-07 Thread Pat
This should be all set now in commit f4b62e1 

 
and will appear in 1.1 (unless you manually add the changes now)

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/cb0a9df5-d0ea-45fc-b3d7-aa6ff9d8b6c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Belchertown Earthquake data error

2019-07-07 Thread Pat
As other's have said probably a timeout or website down error. I'll add an 
error catcher in Belchertown 1.1 so the skin will generate even if no data 
is available. I should have done that before. Sorry about that

On Saturday, July 6, 2019 at 7:25:19 PM UTC-4, Patrick Mendiuk wrote:
>
> I have been running the Belchertown skin without any errors for a while 
> now and this started happening after the California earthquakes.  Is anyone 
> else getting this error?
>
> Jul  6 16:04:26 MITX-6930 weewx[22281]: reportengine: Running report 
> 'Belchertown'
> Jul  6 16:04:26 MITX-6930 weewx[22281]: reportengine: Found configuration 
> file /etc/weewx/skins/Belchertown/skin.conf for report 'Belchertown'
> Jul  6 16:04:26 MITX-6930 weewx[22281]: cheetahgenerator: using search 
> list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
> 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
> 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 
> 'user.belchertown.getData']
> Jul  6 16:04:26 MITX-6930 weewx[22281]: manager: Daily summary version is 
> 2.0
> Jul  6 16:04:26 MITX-6930 weewx[22281]: reportengine: Caught 
> unrecoverable exception in generator 
> 'weewx.cheetahgenerator.CheetahGenerator'
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   No JSON object 
> could be decoded
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   Traceback (most 
> recent call last):
> Jul  6 16:04:26 MITX-6930 weewx[22281]: File 
> "/usr/share/weewx/weewx/reportengine.py", line 204, in run
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   obj.start()
> Jul  6 16:04:26 MITX-6930 weewx[22281]: File 
> "/usr/share/weewx/weewx/reportengine.py", line 300, in start
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   self.run()
> Jul  6 16:04:26 MITX-6930 weewx[22281]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 160, in run
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   ngen = self.
> generate(gen_dict[section_name], self.gen_ts)
> Jul  6 16:04:26 MITX-6930 weewx[22281]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 234, in generate
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   ngen += self.
> generate(section[subsection], gen_ts)
> Jul  6 16:04:26 MITX-6930 weewx[22281]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 234, in generate
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   ngen += self.
> generate(section[subsection], gen_ts)
> Jul  6 16:04:26 MITX-6930 weewx[22281]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   default_binding)
> Jul  6 16:04:26 MITX-6930 weewx[22281]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 374, in _getSearchList
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   searchList += 
> obj.get_extension_list(timespan, db_lookup)
> Jul  6 16:04:26 MITX-6930 weewx[22281]: File 
> "/usr/share/weewx/user/belchertown.py", line 636, in get_extension_list
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   eqdata = json.
> load( read_file )
> Jul  6 16:04:26 MITX-6930 weewx[22281]: File 
> "/usr/lib/python2.7/json/__init__.py", line 291, in load
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   **kw)
> Jul  6 16:04:26 MITX-6930 weewx[22281]: File 
> "/usr/lib/python2.7/json/__init__.py", line 339, in loads
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   return 
> _default_decoder.decode(s)
> Jul  6 16:04:26 MITX-6930 weewx[22281]: File 
> "/usr/lib/python2.7/json/decoder.py", line 364, in decode
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   obj, end = self.
> raw_decode(s, idx=_w(s, 0).end())
> Jul  6 16:04:26 MITX-6930 weewx[22281]: File 
> "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   raise ValueError
> ("No JSON object could be decoded")
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   ValueError: No JSON 
> object could be decoded
> Jul  6 16:04:26 MITX-6930 weewx[22281]:   Generator terminated
> Jul  6 16:04:26 MITX-6930 weewx[22281]: copygenerator: copied 2 files to /
> var/www/html
>
> Patrick
>
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9444bf74-a29b-4fdd-a655-9dc1d574f3f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Belchertown Earthquake data error

2019-07-06 Thread vince
On Saturday, July 6, 2019 at 4:25:19 PM UTC-7, Patrick Mendiuk wrote:
>
> I have been running the Belchertown skin without any errors for a while 
> now and this started happening after the California earthquakes.  Is anyone 
> else getting this error?
>
>
No, but the list of what's recent was super out of date.  Their site is 
getting hammered as you'd expect.

(kid-2 is 70 miles south of there and felt both quite strongly).

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/7c0272c8-c7aa-4b4f-abba-21de0d9c77e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.