Help with HighCharts Error

177 views
Skip to first unread message

Mitchell Tuckness

unread,
May 14, 2021, 7:11:08 AM5/14/21
to weewx-user
Hi all! I am having an issue with Weewx & the Belchertown skin. A short history of what I have tried doing. I was running my station on a Raspberry Pi 4 and everything was good, until the PI started finding errors on the SD card, well apparently it was. So it was flagging the OS as Read Only. I tried a plethora of things to resolve it and finally, I got an old laptop out and installed Ubuntu on it. 

I then installed Weewx, the drivers for the GW1000 and a few services like OpenWeather, MQTT and others.

Once I got all the stuff I used previously, I copied the configuration file (weewx.conf) from the PI over to the new system to save time reconfiguring it with all the service logins and that. Then I went to add some additional Graphs, but they are not showing up. 

I am still learning Linux, so my troubleshooting skills are pretty limited; so I am reaching out to you all to get some help to figure this issue out. Here is the error I see in Syslog.

ay 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.reportengine: Found configuration file /home/weewx/skins/Belchertown/skin.conf for report 'Belchertown'
May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.JSONHelpers', 'user.belchertown.getData']
May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.manager: Daily summary version is 4.0
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  Parse error in value at line 146.
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 196, in run
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      obj.start()
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 281, in start
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      self.run()
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 152, in run
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      ngen = self.generate(gen_dict[section_name], self.gen_ts)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 222, in generate
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      ngen += self.generate(section[subsection], gen_ts)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 222, in generate
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      ngen += self.generate(section[subsection], gen_ts)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 310, in generate
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      searchList = self._getSearchList(encoding, timespan,
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 387, in _getSearchList
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      searchList += obj.get_extension_list(timespan, db_lookup)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/user/belchertown.py", line 307, in get_extension_list
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      chart_dict = configobj.ConfigObj(chart_config_path, file_error=True)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/usr/lib/python3/dist-packages/configobj.py", line 1229, in __init__
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      self._load(infile, configspec)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/usr/lib/python3/dist-packages/configobj.py", line 1318, in _load
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      raise error
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "<string>", line None
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  configobj.ParseError: Parse error in value at line 146.
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  Generator terminated
May 14 04:45:46 weewx-pi weewx[814] INFO weewx.reportengine: Copied 2 files to /var/www/maladomini.net/
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator'
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  Parse error in value at line 146.
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 196, in run
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      obj.start()
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 281, in start
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      self.run()
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/user/belchertown.py", line 1442, in run
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      self.chart_dict = configobj.ConfigObj(chart_config_path, file_error=True)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/usr/lib/python3/dist-packages/configobj.py", line 1229, in __init__
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      self._load(infile, configspec)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "/usr/lib/python3/dist-packages/configobj.py", line 1318, in _load
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****      raise error
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****    File "<string>", line None
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  configobj.ParseError: Parse error in value at line 146.
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  Generator terminated

vince

unread,
May 14, 2021, 12:12:36 PM5/14/21
to weewx-user
On Friday, May 14, 2021 at 4:11:08 AM UTC-7 Mitchell Tuckness wrote:
I am still learning Linux, so my troubleshooting skills are pretty limited; so I am reaching out to you all to get some help to figure this issue out. Here is the error I see in Syslog.

ay 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.reportengine: Found configuration file /home/weewx/skins/Belchertown/skin.conf for report 'Belchertown'
May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.JSONHelpers', 'user.belchertown.getData']
May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.manager: Daily summary version is 4.0
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  Parse error in value at line 146. 
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  configobj.ParseError: Parse error in value at line 146.
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  Generator terminated
May 14 04:45:46 weewx-pi weewx[814] INFO weewx.reportengine: Copied 2 files to /var/www/maladomini.net/
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator'
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  Parse error in value at line 146.
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  configobj.ParseError: Parse error in value at line 146.
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:         ****  Generator terminated


I'd guess you have a typo at line 146 in weewx.conf since two different skins are throwing the same error.

 

gjr80

unread,
May 14, 2021, 3:33:10 PM5/14/21
to weewx-user
Given it’s a generator that is throwing the error it is quite possible the problem config file is skin related rather than weewx.conf. Given that WeeWX has managed to get this far that tends to rule out weewx.conf as the source. Obvious candidate is Belchertown skin.conf, it could be in a Belchertown specific config file (user.belchertown.HighchartsJsonGenerator throws the error) but since CheetahGenerator also throws the error that tends to point at skin.conf.

Either way line 146 has your answer.

Gary

purc...@maladomini.com

unread,
May 14, 2021, 8:08:25 PM5/14/21
to weewx...@googlegroups.com

The error starts as soon as I add the graphs.conf. If I don’t have graphs.conf loading, I don’t have any errors.

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/mwIWm1G3tDw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/514f6f3f-e0c1-49b3-a7f8-9702e29b217fn%40googlegroups.com.

Mitchell Tuckness

unread,
May 14, 2021, 8:08:25 PM5/14/21
to weewx...@googlegroups.com
That line is empty. I think I got some headway on it. I rebuilt the graphs.conf file and so far, it looks like the error is gone. So I think my issue probably lies in that file. The odd thing is, I entered everything in I had on the one I copied over, but it works and the one I copied over doesn't. It must not like a space or something I can't see visually. I'll know more when I get home to work on it.


_________________
- Mitchell Tuckness


--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/mwIWm1G3tDw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages