[weewx-user] Re: weewxaverage extension

2019-07-19 Thread J D
Hi Phil,
If you right click on the page using Chrome you can inspect the page. Then 
under console it will show you that you have a javascript 404 error. The 
file missing is json/averages.json.
I would start by check the server to see if that file is there and in the 
correct directory.
Thanks Jerry

On Friday, July 19, 2019 at 12:30:30 PM UTC-7, Phil Owers wrote:
>
> Hi All
>
> I had trouble with the average extension back end of last year and thanks 
> to Gary he put me right. I'm changing over to a new server and I'm having 
> trouble again
>
> The old is on http://www.sheringhamweather.org.uk/averages.html  and 
> works.
>
> The new looks to be set up the same but the graph is empty.  Ive look 
> through VIEW SOURCE on edge or View Page Source on Firefox and admittedly 
> my understanding of it is limited but it looks similar as the files look 
> the same.  
> You can look at this at 
> http://www.sheringhamukweather.org.uk/averages.html   
>
> The problem is the same what ever browser I use and I have deleted the 
> browsing history as Ive had problems with that especially if I change an 
> icon on the forecast.
>
> Any help would be appreciated Thanks Phil
>

-- 
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/ea26fbd9-7bba-42a1-9cdc-1af406a76641%40googlegroups.com.


[weewx-user] Re: weewxaverage extension

2019-07-20 Thread Phil Owers
Thanks for your time Jerry.
I can see that its failed to open 
http://www.sheringhamukweather.org.uk/json/averages.json but looking on the 
server it has a subdirectory called json

drwxr-xr-x 1 ftp ftp  0 Jul 20 14:44 json 

and it has a file called averages.json will the following in it

[{
"_version": "averages.json.tmpl version 0.5.0",
"temperatureplot": {"series":
{"outTempMeanMinMax": {"name": "Temperature", "data": [[3.0, 7.2], [3.3, 
7.8], [4.2, 10.1], [6.2, 13.0], [9.0, 16.0], [11.9, 19.1], [14.1, 21.5], 
[14.1, 21.2], [12.1, 18.6], [10.1, 15.2], [6.5, 10.8], [4.5, 8.6]]},
"outTempMean": {"name": "Mean Temperature", "data": [5.1, 5.6, 7.1, 9.6, 
12.5, 15.5, 17.8, 17.6, 15.4, 12.7, 8.7, 6.6]},
"outTempMax": {"name": "Maximum Temperature", "data": [15.2, 18.3, 21.8, 
28.3, 28.8, 32.3, 34.1, 30.9, 30.3, 28.2, 17.6, 15.6]},
"outTempMin": {"name": "Minimum Temperature", "data": [-7.9, -5.4, -6.1, 
-0.3, -1.5, 5.1, 9.2, 8.1, 5.3, 2.8, -0.1, -5.9]}},
"yAxisLabel": {"text":  "(\u00B0 C)"
},
"yAxisUnits": {"text":  "\u00B0 C"
}},
"rainplot": {"series":
{"rainAvg": {"name": "Rain", "data": [53.5, 44.7, 43.4, 33.7, 46.0, 47.5, 
44.4, 52.2, 42.9, 62.1, 64.0, 56.5]}},
"yAxisLabel": {"text":  "(mm)"
},
"yAxisUnits": {"text":  "mm"
}},
"generated": "20 July 2019 14:50"
}]

but for some reason it cant see it.   Any more help would be appreciated.
Phil

On Friday, July 19, 2019 at 8:30:30 PM UTC+1, Phil Owers wrote:
>
> Hi All
>
> I had trouble with the average extension back end of last year and thanks 
> to Gary he put me right. I'm changing over to a new server and I'm having 
> trouble again
>
> The old is on http://www.sheringhamweather.org.uk/averages.html  and 
> works.
>
> The new looks to be set up the same but the graph is empty.  Ive look 
> through VIEW SOURCE on edge or View Page Source on Firefox and admittedly 
> my understanding of it is limited but it looks similar as the files look 
> the same.  
> You can look at this at 
> http://www.sheringhamukweather.org.uk/averages.html   
>
> The problem is the same what ever browser I use and I have deleted the 
> browsing history as Ive had problems with that especially if I change an 
> icon on the forecast.
>
> Any help would be appreciated Thanks Phil
>

-- 
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/22317aa6-4d31-42a9-bc0e-d41ac5313703%40googlegroups.com.


[weewx-user] Re: weewxaverage extension

2019-07-20 Thread gjr80
Phil,

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

-- 
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/3f63b213-12d7-419d-8b89-770f7dc7dd69%40googlegroups.com.


[weewx-user] Re: weewxaverage extension

2019-07-20 Thread Phil Owers
Sorry Gary, either you were to quick or I was to slow.
After I posted I realised I hadn't changed it back to json/averages.json. 
where it is now.  I was playing to see if I could change anything but it 
didn't.
Afraid to say it still fails
Phil

On Friday, July 19, 2019 at 8:30:30 PM UTC+1, Phil Owers wrote:
>
> Hi All
>
> I had trouble with the average extension back end of last year and thanks 
> to Gary he put me right. I'm changing over to a new server and I'm having 
> trouble again
>
> The old is on http://www.sheringhamweather.org.uk/averages.html  and 
> works.
>
> The new looks to be set up the same but the graph is empty.  Ive look 
> through VIEW SOURCE on edge or View Page Source on Firefox and admittedly 
> my understanding of it is limited but it looks similar as the files look 
> the same.  
> You can look at this at 
> http://www.sheringhamukweather.org.uk/averages.html   
>
> The problem is the same what ever browser I use and I have deleted the 
> browsing history as Ive had problems with that especially if I change an 
> icon on the forecast.
>
> Any help would be appreciated Thanks Phil
>

-- 
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/7ff66e12-15f6-4f4a-982d-2fab102756e6%40googlegroups.com.


[weewx-user] Re: weewxaverage extension

2019-07-20 Thread gjr80
Yes, can that part ids fixed now but there will be another error somewhere, you 
need to open the page in your browser and then use your browsers developer 
tools to look at the console log, in particular the java console log and see 
what rrrors come up when you refresh the page. That is where you will get s 
clue as to the error.

Unfortunately I am away from home with only an iPad and I can’t view the 
console log on my browser.

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+unsubscr...@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.


[weewx-user] Re: weewxaverage extension

2019-07-20 Thread Andrew Milner
did you stop and restart weewx after changing it back?

On Saturday, 20 July 2019 18:09:28 UTC+3, gjr80 wrote:
>
> Yes, can that part ids fixed now but there will be another error 
> somewhere, you need to open the page in your browser and then use your 
> browsers developer tools to look at the console log, in particular the java 
> console log and see what rrrors come up when you refresh the page. That is 
> where you will get s clue as to the error. 
>
> Unfortunately I am away from home with only an iPad and I can’t view the 
> console log on my browser. 
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8e17a0cf-d9ff-499d-85b0-cb1e458c3a44%40googlegroups.com.


[weewx-user] Re: weewxaverage extension

2019-07-20 Thread Andrew Milner
did you stop and restart weewx after changing it back again?

On Saturday, 20 July 2019 18:09:28 UTC+3, gjr80 wrote:
>
> Yes, can that part ids fixed now but there will be another error 
> somewhere, you need to open the page in your browser and then use your 
> browsers developer tools to look at the console log, in particular the java 
> console log and see what rrrors come up when you refresh the page. That is 
> where you will get s clue as to the error. 
>
> Unfortunately I am away from home with only an iPad and I can’t view the 
> console log on my browser. 
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/031a9741-fa0e-4021-b2b6-f17f464fafb8%40googlegroups.com.


[weewx-user] Re: weewxaverage extension

2019-07-20 Thread gjr80
Yes he did, the JavaScript file is correct now. There is another error now.

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/dbec8dfc-4921-4b6b-9a10-b4d2e141d00b%40googlegroups.com.


[weewx-user] Re: weewxaverage extension

2019-07-20 Thread Phil Owers
Hi Gary
The averages.html is in the same directory as index.html (the main 
directory)   The scripts / json sub-directory hang of that.
This is the same as my old server which works OK.

>From the Browser  Control / hsr tag I get
XHRGEThttp://www.sheringhamukweather.org.uk/json/averages.json  [HTTP/1.1 
404 Not Found 32ms]
 
Phil

On Friday, July 19, 2019 at 8:30:30 PM UTC+1, Phil Owers wrote:
>
> Hi All
>
> I had trouble with the average extension back end of last year and thanks 
> to Gary he put me right. I'm changing over to a new server and I'm having 
> trouble again
>
> The old is on http://www.sheringhamweather.org.uk/averages.html  and 
> works.
>
> The new looks to be set up the same but the graph is empty.  Ive look 
> through VIEW SOURCE on edge or View Page Source on Firefox and admittedly 
> my understanding of it is limited but it looks similar as the files look 
> the same.  
> You can look at this at 
> http://www.sheringhamukweather.org.uk/averages.html   
>
> The problem is the same what ever browser I use and I have deleted the 
> browsing history as Ive had problems with that especially if I change an 
> icon on the forecast.
>
> Any help would be appreciated Thanks Phil
>

-- 
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/d826f4c9-5060-4440-9c64-55e77fce1cdb%40googlegroups.com.


[weewx-user] Re: weewxaverage extension

2019-07-20 Thread Phil Owers
I should also add that when I go into my new web server and find 
averages.json the properties are
/sheringhamukweather.org.uk/wwwroot/json/averages.json

Is that a clue

Phil

On Friday, July 19, 2019 at 8:30:30 PM UTC+1, Phil Owers wrote:
>
> Hi All
>
> I had trouble with the average extension back end of last year and thanks 
> to Gary he put me right. I'm changing over to a new server and I'm having 
> trouble again
>
> The old is on http://www.sheringhamweather.org.uk/averages.html  and 
> works.
>
> The new looks to be set up the same but the graph is empty.  Ive look 
> through VIEW SOURCE on edge or View Page Source on Firefox and admittedly 
> my understanding of it is limited but it looks similar as the files look 
> the same.  
> You can look at this at 
> http://www.sheringhamukweather.org.uk/averages.html   
>
> The problem is the same what ever browser I use and I have deleted the 
> browsing history as Ive had problems with that especially if I change an 
> icon on the forecast.
>
> Any help would be appreciated Thanks Phil
>

-- 
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/64e1832a-e165-48c1-81f5-64157a909a80%40googlegroups.com.


[weewx-user] Re: weewxaverage extension

2019-07-20 Thread gjr80
Phil,

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

-- 
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/a607e92c-5ffe-4207-b76a-a8f4d8bebbda%40googlegroups.com.


[weewx-user] Re: weewxaverage extension

2019-07-21 Thread Phil Owers
Hi Gary
Yep confirmed the files were where they should be so as you mentioned it 
got me thinking about permissions and it maybe useful for others.
To cut a long story short my web server only hosts windows type web sites 
which need a web.config file to give it clues as to what to do with certain 
things.
So I added an empty web.config and added the following (which I admit I got 
from searching good old google.

 
 
 
 
 
 
 


It now works OK so thanks to you and eveybody else.
Phil

 


On Friday, July 19, 2019 at 8:30:30 PM UTC+1, Phil Owers wrote:
>
> Hi All
>
> I had trouble with the average extension back end of last year and thanks 
> to Gary he put me right. I'm changing over to a new server and I'm having 
> trouble again
>
> The old is on http://www.sheringhamweather.org.uk/averages.html  and 
> works.
>
> The new looks to be set up the same but the graph is empty.  Ive look 
> through VIEW SOURCE on edge or View Page Source on Firefox and admittedly 
> my understanding of it is limited but it looks similar as the files look 
> the same.  
> You can look at this at 
> http://www.sheringhamukweather.org.uk/averages.html   
>
> The problem is the same what ever browser I use and I have deleted the 
> browsing history as Ive had problems with that especially if I change an 
> icon on the forecast.
>
> Any help would be appreciated Thanks Phil
>

-- 
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/212625d6-b30f-4ae2-bf14-2691b5f57d68%40googlegroups.com.


Re: [weewx-user] Re: weewxaverage extension

2019-07-20 Thread Phil Owers
>From memory it says cant open file
www.sheringhamukweather.org.uk/json/averages.json with  a 404 error
number.  Or should l be looking for something else. Phil

On Sat, 20 Jul 2019, 16:09 gjr80,  wrote:

> Yes, can that part ids fixed now but there will be another error
> somewhere, you need to open the page in your browser and then use your
> browsers developer tools to look at the console log, in particular the java
> console log and see what rrrors come up when you refresh the page. That is
> where you will get s clue as to the error.
>
> Unfortunately I am away from home with only an iPad and I can’t view the
> console log on my browser.
>
> 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+unsubscr...@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
> .
>

-- 
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/CALTQ7pOc_XxpEfN%2BvpGpN5oOPeRqujv5yQ9X48LavyoJWQ_3%2Bw%40mail.gmail.com.


Re: [weewx-user] Re: weewxaverage extension

2019-07-20 Thread gjr80
Hang on, I thought json/averages.json exists, but if it does it is not where it 
should be. On your web server the directory that contains averages.html should 
also contain a directory json and that directory should contain averages.json. 
Your second post says you have a directory json containing a file 
averages.json, where is that directory relative to the directory containing 
averages.html?

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/460f62f4-40b0-4efd-a4f5-7079d0a82c83%40googlegroups.com.