The problem is the JavaScript that loads and displays the plot is looking in the wrong directory for the .json file containing the plot data; it is currently looking in the scripts directory but it should be looking in the json directory. To fix it, on your WeeWX machine edit skins/HighcartsAverages/scripts/averages.js (will be in the /etc/weewx or /home/weewx directory depending on your install type). Around line 44 you have:
json_source: 'scripts/averages.json', // path to the JSON file holding the source data
change it to:
json_source: 'json/averages.json', // path to the JSON file holding the source data
Save the file and restart WeeWX. The plot should work after the next report cycle completes.
Gary
Gary
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/cf460458-e617-47df-a2e0-24d663025332%40googlegroups.com.
Gary
So from your last two posts are these statements true:
- averages.html resides in /sheringhamukweather.org.uk/wwwroot
- the directory json resides in /sheringhamukweather.org.uk/wwwroot
- averages.json resides in /sheringhamukweather.org.uk/wwwroot/json
If each of the above is true then when I view http://sheringhamukweather.org.uk/json/averages.json in my browser I should see a json format file but I still get 404 so it must be a permissions problem. Check the ownership and permissions for /sheringhamukweather.org.uk/wwwroot/json and /sheringhamukweather.org.uk/wwwroot/json/averages.json, they should be the same as for /sheringhamukweather.org.uk/wwwroot/averages.html.
Gary
<configuration> |
<system.webServer> |
<staticContent> |
<remove fileExtension=".json"/> |
<mimeMap fileExtension=".json" mimeType="application/json"/> |
</staticContent> |
</system.webServer> |
<?xml version="1.0" encoding="utf-8"?> |