I suspect the main issue you are encountering is running the highcharts report under wee_reports. Presently wee_reports does not load any user extensions (such as used by the highcharts extension) and consequently the report will fail. As an aside, when released WeeWX 4 will support user extensions under wee_reports.
Niculskin has nothing to do with the highcharts extension so any of the highcharts files you added to Niculskin can be removed, they will do nothing but confuse. WeeWX extensions can be installed in one of two ways; they can be installed using the WeeWX utility wee_extension <http://weewx.com/docs/utilities.htm#wee_extension_utility> or they can be installed manually. wee_extension is the recommended option for novice users as wee_extension takes care of copying the right files to the right locations as well as making the necessary config settings/changes to enable basic operation of the extension. Getting the highcharts extension to work is a two step process, first you need to get the extension generating the JSON data files used by Highcharts. Then you need to configure your web server to serve the pages with the plots. First we should concentrate on getting the necessary JSON files generated. It is not clear to me exactly what is in your [StdReport] stanza in weewx.conf. Could I suggest you post the output from the WeeWX utility wee_debug <http://weewx.com/docs/utilities.htm#wee_debug_utility>. Before posting the wee_debug output do check it for sensitive info such as user names, passwords, API keys etc; wee_debug is pretty good at obfuscating such sensitive info but it is not perfect. Gary On Tuesday, 31 March 2020 20:52:10 UTC+10, Astrid wrote: > > Hello! > > I am using weewx 3.9.2 (installed via rpm) on > leap 15.1 and a a little bit modified version > from niculskin (installed manually). > I manually installed highcharts from git > https://github.com/gjr80/weewx-highcharts > and do my best to follow the instruction on > https://github.com/gjr80/weewx-highcharts/wiki/User's-Guide > to get it run. > But it does not run. :( > > My local weewx is at /usr/share/weewx, config > is at /etc/weewx, local "www" is at /var/www/htdocsweewx. > > To /usr/share/weewx/user I put > highcharts.py > highcharts.pyc > > To /etc/weewx/skins/Highcharts I put > json-dir, js-dir and skin.conf. > > json-dir I put to /etc/weewx/skins/niculskin too, I do > not know, of there necessay too? > Dito I put the two js-files to /etc/weewx/skins/niculskin/js > > In /etc/weewx/weewx.conf I add the stanzalines > for highcharts at StdReport form UserGuide. > There are only the lines > > [[[CheetahGenerator]]] > [[[[ToDate]]]] > [[[[[YearJSON]]]]] > stale_age = 3600 > > no monthjson. Is it ok? > > To /var/www/htdocs/weewx I put graphs.html > and check, that the relative path to js is ok. > > I restart weewxd and with wee_reports I run > the reports. > > If I check with journalctl -b | grep weewx > there is inside: > > Mär 31 12:45:08 linux wee_reports[28082]: reportengine: Found configuration > file /etc/weewx/skins/Highcharts/skin.conf for report 'Highcharts' > Mär 31 12:45:08 linux wee_reports[28082]: cheetahgenerator: using search list > ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', > 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', > 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', > 'user.highchartsSearchX.highchartsMinRanges', > 'user.highchartsSearchX.highchartsWeek', > 'user.highchartsSearchX.highchartsYear', > 'user.highchartsSearchX.highchartsWindRose'] > Mär 31 12:45:10 linux wee_reports[28082]: cheetahgenerator: **** Ignoring > template /etc/weewx/skins/Highcharts/json/week.json.tmpl > Mär 31 12:45:10 linux wee_reports[28082]: **** File > "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate > Mär 31 12:45:10 linux wee_reports[28082]: **** File > "_etc_weewx_skins_Highcharts_json_week_json_tmpl.py", line 371, in respond > Mär 31 12:45:11 linux wee_reports[28082]: cheetahgenerator: **** Ignoring > template /etc/weewx/skins/Highcharts/json/year.json.tmpl > Mär 31 12:45:11 linux wee_reports[28082]: **** File > "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate > Mär 31 12:45:11 linux wee_reports[28082]: **** File > "_etc_weewx_skins_Highcharts_json_year_json_tmpl.py", line 363, in respond > Mär 31 12:45:11 linux wee_reports[28082]: reportengine: Found configuration > file /etc/weewx/skins/niculskin/skin.conf for report 'StandardReport' > Mär 31 12:45:11 linux wee_reports[28082]: cheetahgenerator: using search list > ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', > 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', > 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', > 'user.historygenerator.MyXSearch'] > Mär 31 12:45:20 linux wee_reports[28082]: copygenerator: copied 11 files to > /var/www/htdocs/weewx > Mär 31 12:45:20 linux wee_reports[28082]: reportengine: Found configuration > file /etc/weewx/skins/Ftp/skin.conf for report 'FTP' > Mär 31 12:45:27 linux wee_reports[28082]: ftpupload: Uploaded file > /RSS/weewx_rss.xml > > But why does it ignore the json-files? > > /var/www/htdocs/weewx/graphs.html > > only shows the text from html. No plots. > > How I can get it run? > > Regards, Astrid > > -- 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/09697394-d9fb-4545-95ea-34ed47f36294%40googlegroups.com.
