Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-06 Thread Praveen Chandrasekaran
Hi Gary,
Issue resolved after restarting weewx! Thanks.

Regards,
Praveen

On Thu, 6 Sep 2018 at 09:30, gjr80  wrote:

> Proven,
>
> If you haven't restarted WeeWX then you are still using the old
> highcharts.py which will of course cause the error. Please restart WeeWX
> and see how the new code goes. The point of the instrumented version I said
> I would send was to troubleshoot the new code, I won't be doing that until
> I know for sure the new code causes a problem.
>
> Simple rule of thumb for WeeWX changes:
>
> 'Change something in a .py file and you need to restart WeeWX, change
> something in weewx.conf and you need do a config reload or a restart,
> change something in a skin and there is no need to do anything.'
>
> Gary
>
> --
> 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/WgCKuU-gBcU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-05 Thread gjr80
Proven,

If you haven't restarted WeeWX then you are still using the old highcharts.py 
which will of course cause the error. Please restart WeeWX and see how the new 
code goes. The point of the instrumented version I said I would send was to 
troubleshoot the new code, I won't be doing that until I know for sure the new 
code causes a problem.

Simple rule of thumb for WeeWX changes:

'Change something in a .py file and you need to restart WeeWX, change something 
in weewx.conf and you need do a config reload or a restart, change something in 
a skin and there is no need to do anything.'

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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-05 Thread Andrew Milner
If you restart weewx you may not need the special version.  The restart may 
fix things anyway.

You should always stop weewx and restart it when modules are changed.  You 
can usually edit skins without needing to restart however.



On Thursday, 6 September 2018 05:42:24 UTC+3, Praveen Chandrasekaran wrote:
>
> Hi Gary,
>
> No, I did not restart. I will do once you provide the special version.
>
> Regards,
> Praveen 
>
> On Thu, 6 Sep 2018, 04:32 gjr80, > wrote:
>
>> Did you restart WeeWX?
>>
>> If you did I will get a special version of highcharts.py to you that will 
>> log a bit more info to help with debugging.
>>
>> Gary
>>
>> On Thursday, 6 September 2018 00:31:55 UTC+10, Praveen Chandrasekaran 
>> wrote:
>>>
>>> Hi Gary,
>>>
>>> The highcharts.py was below for me:
>>>
>>> /usr/share/weewx/user
>>>
>>> I downloaded the updated file, diffed with old file to ensure it has 
>>> changes. Deleted the year.json. However the next report cycle year.json 
>>> still has the same issue.
>>>
>>> Regards,
>>> Praveen
>>>
>>> On Tue, 4 Sep 2018 at 19:12, gjr80  wrote:
>>>
 OK, found the bug that was causing the 90 degree wind direction. Its 
 fixed in version 0.2.2 
 .

 Praveen. To save yourself having to make changes to plots.js:

 - rename /home/weewx/bin/user/highcharts.py to 
 /home/weewx/bin/user/highcharts_0_2_1.py (note will be in 
 /usr/share/weewx/bin if your WeeWX install is other than a setup.py 
 install)
 - download the updated highcharts.py:

 $ wget -P /home/weewx/bin/user https://
 raw.githubusercontent.com/gjr80/weewx-highcharts/3aac742ff778dbd6e6710b440c38dedade5c8880/bin/user/highcharts.py
 (change /home/weewx/bin to /usr/share/weewx/bin if your WeeWX install 
 is other than a setup.py install)

 - delete year.json, it will most likely be in 
 /home/weewx/public_html/json (note will be in /var/www/html/weewx/json 
 if your WeeWX install is other than a setup.py install)
 - restart WeeWX

 year.json should be re-generated on the next report cycle and that 
 should fix the wind direction issue on the year plot. Let me know if any 
 further issues.

 Gary



 On Sunday, 2 September 2018 23:58:01 UTC+10, Praveen Chandrasekaran 
 wrote:
>
> That was silly of me to miss! Sorry!
>
> On Sun, 2 Sep 2018, 18:57 gjr80,  wrote:
>
>> The reason is that plots.js can no longer find your week.json and 
>> year.json files, quite likely because using the new plots.js 
>> overwrote a couple of settings. Try editing plots.js and locate the 
>> lines:
>>
>> var week_json = '../json/week.json';
>> var year_json = '../json/year.json';
>>
>>
>> for your web server I think these will need to be changed to :
>>
>> var week_json = '../weather/json/week.json';
>> var year_json = '../weather/json/year.json';
>>
>> This was one of my first extensions and clearly it needs a little 
>> polish.
>>
>> Gary
>>
>> On Sunday, 2 September 2018 20:34:57 UTC+10, Praveen Chandrasekaran 
>> wrote:
>>>
>>> Hi Gary,
>>>
>>> After updating the plots.js neither the weekly nor the yearly works!
>>>
>>> Regards,
>>> Praveen
>>>
>>> On Sun, 2 Sep 2018 at 07:43, Praveen Chandrasekaran <
>>> pravee...@gmail.com> wrote:
>>>
 Hi Gary,

 The week.json having winddir close to 270 always is fine. This is 
 south west monsoon season and the winds are always from west and west 
 south 
 west here from June to September. 

 Will look into other stuff you mentioned and get back soon.

 Regards,
 Praveen 

 On Sun, 2 Sep 2018, 05:12 gjr80,  wrote:

> Ok, I think there are a couple of issues here. Firstly, I cannot 
> get your weekly plots to display, the page gives an error in plot.js; 
> it 
> seems that I updated plot.js after I put out the most recent 
> weewx-Highcharts release but never updated the plot.js that is listed 
> separately on the release. Try replacing your existing plot.js with 
> this 
> one 
> .
>  
> Hopefully that will get your weekly plots displaying.
>
> As for the 90 degree wind direction, that is actually the yearly 
> plot (it uses year.json not week.json)not the weekly plot. The yearly 
> plot 
> displays daily values appropriate to the observation being plotted. 
> For 
> outTemp this is daily min, max and avg, for windSpeed this is day 
> gust, day 
> max 5 min average speed and day average speed. For windDir the day 
> 

Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-05 Thread Praveen Chandrasekaran
Hi Gary,

No, I did not restart. I will do once you provide the special version.

Regards,
Praveen

On Thu, 6 Sep 2018, 04:32 gjr80,  wrote:

> Did you restart WeeWX?
>
> If you did I will get a special version of highcharts.py to you that will
> log a bit more info to help with debugging.
>
> Gary
>
> On Thursday, 6 September 2018 00:31:55 UTC+10, Praveen Chandrasekaran
> wrote:
>>
>> Hi Gary,
>>
>> The highcharts.py was below for me:
>>
>> /usr/share/weewx/user
>>
>> I downloaded the updated file, diffed with old file to ensure it has
>> changes. Deleted the year.json. However the next report cycle year.json
>> still has the same issue.
>>
>> Regards,
>> Praveen
>>
>> On Tue, 4 Sep 2018 at 19:12, gjr80  wrote:
>>
>>> OK, found the bug that was causing the 90 degree wind direction. Its
>>> fixed in version 0.2.2
>>> .
>>>
>>> Praveen. To save yourself having to make changes to plots.js:
>>>
>>> - rename /home/weewx/bin/user/highcharts.py to
>>> /home/weewx/bin/user/highcharts_0_2_1.py (note will be in
>>> /usr/share/weewx/bin if your WeeWX install is other than a setup.py
>>> install)
>>> - download the updated highcharts.py:
>>>
>>> $ wget -P /home/weewx/bin/user https://
>>> raw.githubusercontent.com/gjr80/weewx-highcharts/3aac742ff778dbd6e6710b440c38dedade5c8880/bin/user/highcharts.py
>>> (change /home/weewx/bin to /usr/share/weewx/bin if your WeeWX install
>>> is other than a setup.py install)
>>>
>>> - delete year.json, it will most likely be in
>>> /home/weewx/public_html/json (note will be in /var/www/html/weewx/json
>>> if your WeeWX install is other than a setup.py install)
>>> - restart WeeWX
>>>
>>> year.json should be re-generated on the next report cycle and that
>>> should fix the wind direction issue on the year plot. Let me know if any
>>> further issues.
>>>
>>> Gary
>>>
>>>
>>>
>>> On Sunday, 2 September 2018 23:58:01 UTC+10, Praveen Chandrasekaran
>>> wrote:

 That was silly of me to miss! Sorry!

 On Sun, 2 Sep 2018, 18:57 gjr80,  wrote:

> The reason is that plots.js can no longer find your week.json and
> year.json files, quite likely because using the new plots.js
> overwrote a couple of settings. Try editing plots.js and locate the
> lines:
>
> var week_json = '../json/week.json';
> var year_json = '../json/year.json';
>
>
> for your web server I think these will need to be changed to :
>
> var week_json = '../weather/json/week.json';
> var year_json = '../weather/json/year.json';
>
> This was one of my first extensions and clearly it needs a little
> polish.
>
> Gary
>
> On Sunday, 2 September 2018 20:34:57 UTC+10, Praveen Chandrasekaran
> wrote:
>>
>> Hi Gary,
>>
>> After updating the plots.js neither the weekly nor the yearly works!
>>
>> Regards,
>> Praveen
>>
>> On Sun, 2 Sep 2018 at 07:43, Praveen Chandrasekaran <
>> pravee...@gmail.com> wrote:
>>
>>> Hi Gary,
>>>
>>> The week.json having winddir close to 270 always is fine. This is
>>> south west monsoon season and the winds are always from west and west 
>>> south
>>> west here from June to September.
>>>
>>> Will look into other stuff you mentioned and get back soon.
>>>
>>> Regards,
>>> Praveen
>>>
>>> On Sun, 2 Sep 2018, 05:12 gjr80,  wrote:
>>>
 Ok, I think there are a couple of issues here. Firstly, I cannot
 get your weekly plots to display, the page gives an error in plot.js; 
 it
 seems that I updated plot.js after I put out the most recent
 weewx-Highcharts release but never updated the plot.js that is listed
 separately on the release. Try replacing your existing plot.js with 
 this
 one
 .
 Hopefully that will get your weekly plots displaying.

 As for the 90 degree wind direction, that is actually the yearly
 plot (it uses year.json not week.json)not the weekly plot. The yearly 
 plot
 displays daily values appropriate to the observation being plotted. For
 outTemp this is daily min, max and avg, for windSpeed this is day 
 gust, day
 max 5 min average speed and day average speed. For windDir the day 
 vector
 average direction is plotted. For some reason this is being set to 90
 degrees or null (open up the direction plot to display the full suite 
 of
 data not just the last month that it defaults to). I note your 
 week.json
 has windDir that is very close to 270 degrees nearly all the time, 
 maybe
 there is some funny vector averaging going on, I think not as it would 
 not
 give exactly 90 degrees all the time. I need to 

Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-05 Thread gjr80
Did you restart WeeWX?

If you did I will get a special version of highcharts.py to you that will 
log a bit more info to help with debugging.

Gary

On Thursday, 6 September 2018 00:31:55 UTC+10, Praveen Chandrasekaran wrote:
>
> Hi Gary,
>
> The highcharts.py was below for me:
>
> /usr/share/weewx/user
>
> I downloaded the updated file, diffed with old file to ensure it has 
> changes. Deleted the year.json. However the next report cycle year.json 
> still has the same issue.
>
> Regards,
> Praveen
>
> On Tue, 4 Sep 2018 at 19:12, gjr80 > 
> wrote:
>
>> OK, found the bug that was causing the 90 degree wind direction. Its 
>> fixed in version 0.2.2 
>> .
>>
>> Praveen. To save yourself having to make changes to plots.js:
>>
>> - rename /home/weewx/bin/user/highcharts.py to 
>> /home/weewx/bin/user/highcharts_0_2_1.py (note will be in 
>> /usr/share/weewx/bin if your WeeWX install is other than a setup.py 
>> install)
>> - download the updated highcharts.py:
>>
>> $ wget -P /home/weewx/bin/user https://
>> raw.githubusercontent.com/gjr80/weewx-highcharts/3aac742ff778dbd6e6710b440c38dedade5c8880/bin/user/highcharts.py
>> (change /home/weewx/bin to /usr/share/weewx/bin if your WeeWX install is 
>> other than a setup.py install)
>>
>> - delete year.json, it will most likely be in 
>> /home/weewx/public_html/json (note will be in /var/www/html/weewx/json 
>> if your WeeWX install is other than a setup.py install)
>> - restart WeeWX
>>
>> year.json should be re-generated on the next report cycle and that 
>> should fix the wind direction issue on the year plot. Let me know if any 
>> further issues.
>>
>> Gary
>>
>>
>>
>> On Sunday, 2 September 2018 23:58:01 UTC+10, Praveen Chandrasekaran wrote:
>>>
>>> That was silly of me to miss! Sorry!
>>>
>>> On Sun, 2 Sep 2018, 18:57 gjr80,  wrote:
>>>
 The reason is that plots.js can no longer find your week.json and 
 year.json files, quite likely because using the new plots.js overwrote 
 a couple of settings. Try editing plots.js and locate the lines:

 var week_json = '../json/week.json';
 var year_json = '../json/year.json';


 for your web server I think these will need to be changed to :

 var week_json = '../weather/json/week.json';
 var year_json = '../weather/json/year.json';

 This was one of my first extensions and clearly it needs a little 
 polish.

 Gary

 On Sunday, 2 September 2018 20:34:57 UTC+10, Praveen Chandrasekaran 
 wrote:
>
> Hi Gary,
>
> After updating the plots.js neither the weekly nor the yearly works!
>
> Regards,
> Praveen
>
> On Sun, 2 Sep 2018 at 07:43, Praveen Chandrasekaran <
> pravee...@gmail.com> wrote:
>
>> Hi Gary,
>>
>> The week.json having winddir close to 270 always is fine. This is 
>> south west monsoon season and the winds are always from west and west 
>> south 
>> west here from June to September. 
>>
>> Will look into other stuff you mentioned and get back soon.
>>
>> Regards,
>> Praveen 
>>
>> On Sun, 2 Sep 2018, 05:12 gjr80,  wrote:
>>
>>> Ok, I think there are a couple of issues here. Firstly, I cannot get 
>>> your weekly plots to display, the page gives an error in plot.js; it 
>>> seems 
>>> that I updated plot.js after I put out the most recent weewx-Highcharts 
>>> release but never updated the plot.js that is listed separately on the 
>>> release. Try replacing your existing plot.js with this one 
>>> .
>>>  
>>> Hopefully that will get your weekly plots displaying.
>>>
>>> As for the 90 degree wind direction, that is actually the yearly 
>>> plot (it uses year.json not week.json)not the weekly plot. The yearly 
>>> plot 
>>> displays daily values appropriate to the observation being plotted. For 
>>> outTemp this is daily min, max and avg, for windSpeed this is day gust, 
>>> day 
>>> max 5 min average speed and day average speed. For windDir the day 
>>> vector 
>>> average direction is plotted. For some reason this is being set to 90 
>>> degrees or null (open up the direction plot to display the full suite 
>>> of 
>>> data not just the last month that it defaults to). I note your 
>>> week.json 
>>> has windDir that is very close to 270 degrees nearly all the time, 
>>> maybe 
>>> there is some funny vector averaging going on, I think not as it would 
>>> not 
>>> give exactly 90 degrees all the time. I need to look into this further.
>>>
>>> The bottom line is what data highcharts is plotting appears 
>>> consistent with the data it is being fed. I expect once the plot.js 
>>> issue 
>>> is fixed the weekly plots will render fine as will the 

Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-05 Thread Praveen Chandrasekaran
Hi Gary,

The highcharts.py was below for me:

/usr/share/weewx/user

I downloaded the updated file, diffed with old file to ensure it has
changes. Deleted the year.json. However the next report cycle year.json
still has the same issue.

Regards,
Praveen

On Tue, 4 Sep 2018 at 19:12, gjr80  wrote:

> OK, found the bug that was causing the 90 degree wind direction. Its fixed
> in version 0.2.2
> .
>
> Praveen. To save yourself having to make changes to plots.js:
>
> - rename /home/weewx/bin/user/highcharts.py to
> /home/weewx/bin/user/highcharts_0_2_1.py (note will be in
> /usr/share/weewx/bin if your WeeWX install is other than a setup.py
> install)
> - download the updated highcharts.py:
>
> $ wget -P /home/weewx/bin/user https://
> raw.githubusercontent.com/gjr80/weewx-highcharts/3aac742ff778dbd6e6710b440c38dedade5c8880/bin/user/highcharts.py
> (change /home/weewx/bin to /usr/share/weewx/bin if your WeeWX install is
> other than a setup.py install)
>
> - delete year.json, it will most likely be in /home/weewx/public_html/json
> (note will be in /var/www/html/weewx/json if your WeeWX install is other
> than a setup.py install)
> - restart WeeWX
>
> year.json should be re-generated on the next report cycle and that should
> fix the wind direction issue on the year plot. Let me know if any further
> issues.
>
> Gary
>
>
>
> On Sunday, 2 September 2018 23:58:01 UTC+10, Praveen Chandrasekaran wrote:
>>
>> That was silly of me to miss! Sorry!
>>
>> On Sun, 2 Sep 2018, 18:57 gjr80,  wrote:
>>
>>> The reason is that plots.js can no longer find your week.json and
>>> year.json files, quite likely because using the new plots.js overwrote
>>> a couple of settings. Try editing plots.js and locate the lines:
>>>
>>> var week_json = '../json/week.json';
>>> var year_json = '../json/year.json';
>>>
>>>
>>> for your web server I think these will need to be changed to :
>>>
>>> var week_json = '../weather/json/week.json';
>>> var year_json = '../weather/json/year.json';
>>>
>>> This was one of my first extensions and clearly it needs a little polish.
>>>
>>> Gary
>>>
>>> On Sunday, 2 September 2018 20:34:57 UTC+10, Praveen Chandrasekaran
>>> wrote:

 Hi Gary,

 After updating the plots.js neither the weekly nor the yearly works!

 Regards,
 Praveen

 On Sun, 2 Sep 2018 at 07:43, Praveen Chandrasekaran <
 pravee...@gmail.com> wrote:

> Hi Gary,
>
> The week.json having winddir close to 270 always is fine. This is
> south west monsoon season and the winds are always from west and west 
> south
> west here from June to September.
>
> Will look into other stuff you mentioned and get back soon.
>
> Regards,
> Praveen
>
> On Sun, 2 Sep 2018, 05:12 gjr80,  wrote:
>
>> Ok, I think there are a couple of issues here. Firstly, I cannot get
>> your weekly plots to display, the page gives an error in plot.js; it 
>> seems
>> that I updated plot.js after I put out the most recent weewx-Highcharts
>> release but never updated the plot.js that is listed separately on the
>> release. Try replacing your existing plot.js with this one
>> .
>> Hopefully that will get your weekly plots displaying.
>>
>> As for the 90 degree wind direction, that is actually the yearly plot
>> (it uses year.json not week.json)not the weekly plot. The yearly plot
>> displays daily values appropriate to the observation being plotted. For
>> outTemp this is daily min, max and avg, for windSpeed this is day gust, 
>> day
>> max 5 min average speed and day average speed. For windDir the day vector
>> average direction is plotted. For some reason this is being set to 90
>> degrees or null (open up the direction plot to display the full suite of
>> data not just the last month that it defaults to). I note your week.json
>> has windDir that is very close to 270 degrees nearly all the time, maybe
>> there is some funny vector averaging going on, I think not as it would 
>> not
>> give exactly 90 degrees all the time. I need to look into this further.
>>
>> The bottom line is what data highcharts is plotting appears
>> consistent with the data it is being fed. I expect once the plot.js issue
>> is fixed the weekly plots will render fine as will the weekly windDir 
>> plot.
>> I need to look further at how the year winDir data is
>> generated.
>>
>> Gary
>>
>> On Sunday, 2 September 2018 01:12:15 UTC+10, Praveen Chandrasekaran
>> wrote:
>>>
>>> And the output graphs are available now at:
>>>
>>> http://bedi.co.in:15000/pc-aws/weather/graphs.html?graph=w
>>>
>>> As you can see direction graph is all 90 degrees. Apart from that
>>> everything else works and 

Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-04 Thread gjr80
OK, found the bug that was causing the 90 degree wind direction. Its fixed 
in version 0.2.2 
.

Praveen. To save yourself having to make changes to plots.js:

- rename /home/weewx/bin/user/highcharts.py to 
/home/weewx/bin/user/highcharts_0_2_1.py (note will be in 
/usr/share/weewx/bin if your WeeWX install is other than a setup.py install)
- download the updated highcharts.py:

$ wget -P /home/weewx/bin/user https:
//raw.githubusercontent.com/gjr80/weewx-highcharts/3aac742ff778dbd6e6710b440c38dedade5c8880/bin/user/highcharts.py
(change /home/weewx/bin to /usr/share/weewx/bin if your WeeWX install is 
other than a setup.py install)

- delete year.json, it will most likely be in /home/weewx/public_html/json 
(note will be in /var/www/html/weewx/json if your WeeWX install is other 
than a setup.py install)
- restart WeeWX

year.json should be re-generated on the next report cycle and that should 
fix the wind direction issue on the year plot. Let me know if any further 
issues.

Gary



On Sunday, 2 September 2018 23:58:01 UTC+10, Praveen Chandrasekaran wrote:
>
> That was silly of me to miss! Sorry!
>
> On Sun, 2 Sep 2018, 18:57 gjr80, > wrote:
>
>> The reason is that plots.js can no longer find your week.json and 
>> year.json files, quite likely because using the new plots.js overwrote a 
>> couple of settings. Try editing plots.js and locate the lines:
>>
>> var week_json = '../json/week.json';
>> var year_json = '../json/year.json';
>>
>>
>> for your web server I think these will need to be changed to :
>>
>> var week_json = '../weather/json/week.json';
>> var year_json = '../weather/json/year.json';
>>
>> This was one of my first extensions and clearly it needs a little polish.
>>
>> Gary
>>
>> On Sunday, 2 September 2018 20:34:57 UTC+10, Praveen Chandrasekaran wrote:
>>>
>>> Hi Gary,
>>>
>>> After updating the plots.js neither the weekly nor the yearly works!
>>>
>>> Regards,
>>> Praveen
>>>
>>> On Sun, 2 Sep 2018 at 07:43, Praveen Chandrasekaran  
>>> wrote:
>>>
 Hi Gary,

 The week.json having winddir close to 270 always is fine. This is south 
 west monsoon season and the winds are always from west and west south west 
 here from June to September. 

 Will look into other stuff you mentioned and get back soon.

 Regards,
 Praveen 

 On Sun, 2 Sep 2018, 05:12 gjr80,  wrote:

> Ok, I think there are a couple of issues here. Firstly, I cannot get 
> your weekly plots to display, the page gives an error in plot.js; it 
> seems 
> that I updated plot.js after I put out the most recent weewx-Highcharts 
> release but never updated the plot.js that is listed separately on the 
> release. Try replacing your existing plot.js with this one 
> .
>  
> Hopefully that will get your weekly plots displaying.
>
> As for the 90 degree wind direction, that is actually the yearly plot 
> (it uses year.json not week.json)not the weekly plot. The yearly plot 
> displays daily values appropriate to the observation being plotted. For 
> outTemp this is daily min, max and avg, for windSpeed this is day gust, 
> day 
> max 5 min average speed and day average speed. For windDir the day vector 
> average direction is plotted. For some reason this is being set to 90 
> degrees or null (open up the direction plot to display the full suite of 
> data not just the last month that it defaults to). I note your week.json 
> has windDir that is very close to 270 degrees nearly all the time, maybe 
> there is some funny vector averaging going on, I think not as it would 
> not 
> give exactly 90 degrees all the time. I need to look into this further.
>
> The bottom line is what data highcharts is plotting appears consistent 
> with the data it is being fed. I expect once the plot.js issue is fixed 
> the 
> weekly plots will render fine as will the weekly windDir plot. I need to 
> look further at how the year winDir data is 
> generated.
>
> Gary
>
> On Sunday, 2 September 2018 01:12:15 UTC+10, Praveen Chandrasekaran 
> wrote:
>>
>> And the output graphs are available now at:
>>
>> http://bedi.co.in:15000/pc-aws/weather/graphs.html?graph=w
>>
>> As you can see direction graph is all 90 degrees. Apart from that 
>> everything else works and is awesome. 
>>
>> On Sat, 1 Sep 2018 at 19:56, Praveen Chandrasekaran <
>> pravee...@gmail.com> wrote:
>>
>>> Hi Gary,
>>>
>>> My json can be taken from
>>>
>>> http://bedi.co.in:15000/pc-aws/weather/json/week.json
>>>
>>> As you can see wind direction is all fine in this but graphics shows 
>>> all as 90 degrees
>>>
>>> Regards,
>>> Praveen 
>>>
>>> -- 

Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-02 Thread Praveen Chandrasekaran
That was silly of me to miss! Sorry!

On Sun, 2 Sep 2018, 18:57 gjr80,  wrote:

> The reason is that plots.js can no longer find your week.json and
> year.json files, quite likely because using the new plots.js overwrote a
> couple of settings. Try editing plots.js and locate the lines:
>
> var week_json = '../json/week.json';
> var year_json = '../json/year.json';
>
>
> for your web server I think these will need to be changed to :
>
> var week_json = '../weather/json/week.json';
> var year_json = '../weather/json/year.json';
>
> This was one of my first extensions and clearly it needs a little polish.
>
> Gary
>
> On Sunday, 2 September 2018 20:34:57 UTC+10, Praveen Chandrasekaran wrote:
>>
>> Hi Gary,
>>
>> After updating the plots.js neither the weekly nor the yearly works!
>>
>> Regards,
>> Praveen
>>
>> On Sun, 2 Sep 2018 at 07:43, Praveen Chandrasekaran 
>> wrote:
>>
>>> Hi Gary,
>>>
>>> The week.json having winddir close to 270 always is fine. This is south
>>> west monsoon season and the winds are always from west and west south west
>>> here from June to September.
>>>
>>> Will look into other stuff you mentioned and get back soon.
>>>
>>> Regards,
>>> Praveen
>>>
>>> On Sun, 2 Sep 2018, 05:12 gjr80,  wrote:
>>>
 Ok, I think there are a couple of issues here. Firstly, I cannot get
 your weekly plots to display, the page gives an error in plot.js; it seems
 that I updated plot.js after I put out the most recent weewx-Highcharts
 release but never updated the plot.js that is listed separately on the
 release. Try replacing your existing plot.js with this one
 .
 Hopefully that will get your weekly plots displaying.

 As for the 90 degree wind direction, that is actually the yearly plot
 (it uses year.json not week.json)not the weekly plot. The yearly plot
 displays daily values appropriate to the observation being plotted. For
 outTemp this is daily min, max and avg, for windSpeed this is day gust, day
 max 5 min average speed and day average speed. For windDir the day vector
 average direction is plotted. For some reason this is being set to 90
 degrees or null (open up the direction plot to display the full suite of
 data not just the last month that it defaults to). I note your week.json
 has windDir that is very close to 270 degrees nearly all the time, maybe
 there is some funny vector averaging going on, I think not as it would not
 give exactly 90 degrees all the time. I need to look into this further.

 The bottom line is what data highcharts is plotting appears consistent
 with the data it is being fed. I expect once the plot.js issue is fixed the
 weekly plots will render fine as will the weekly windDir plot. I need to
 look further at how the year winDir data is
 generated.

 Gary

 On Sunday, 2 September 2018 01:12:15 UTC+10, Praveen Chandrasekaran
 wrote:
>
> And the output graphs are available now at:
>
> http://bedi.co.in:15000/pc-aws/weather/graphs.html?graph=w
>
> As you can see direction graph is all 90 degrees. Apart from that
> everything else works and is awesome.
>
> On Sat, 1 Sep 2018 at 19:56, Praveen Chandrasekaran <
> pravee...@gmail.com> wrote:
>
>> Hi Gary,
>>
>> My json can be taken from
>>
>> http://bedi.co.in:15000/pc-aws/weather/json/week.json
>>
>> As you can see wind direction is all fine in this but graphics shows
>> all as 90 degrees
>>
>> Regards,
>> Praveen
>>
>> --
>> 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/WgCKuU-gBcU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> weewx-user+...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
 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/WgCKuU-gBcU/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 weewx-user+...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>> --
> 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/WgCKuU-gBcU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are 

Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-02 Thread gjr80
The reason is that plots.js can no longer find your week.json and year.json 
files, quite likely because using the new plots.js overwrote a couple of 
settings. Try editing plots.js and locate the lines:

var week_json = '../json/week.json';
var year_json = '../json/year.json';


for your web server I think these will need to be changed to :

var week_json = '../weather/json/week.json';
var year_json = '../weather/json/year.json';

This was one of my first extensions and clearly it needs a little polish.

Gary

On Sunday, 2 September 2018 20:34:57 UTC+10, Praveen Chandrasekaran wrote:
>
> Hi Gary,
>
> After updating the plots.js neither the weekly nor the yearly works!
>
> Regards,
> Praveen
>
> On Sun, 2 Sep 2018 at 07:43, Praveen Chandrasekaran  > wrote:
>
>> Hi Gary,
>>
>> The week.json having winddir close to 270 always is fine. This is south 
>> west monsoon season and the winds are always from west and west south west 
>> here from June to September. 
>>
>> Will look into other stuff you mentioned and get back soon.
>>
>> Regards,
>> Praveen 
>>
>> On Sun, 2 Sep 2018, 05:12 gjr80, > 
>> wrote:
>>
>>> Ok, I think there are a couple of issues here. Firstly, I cannot get 
>>> your weekly plots to display, the page gives an error in plot.js; it seems 
>>> that I updated plot.js after I put out the most recent weewx-Highcharts 
>>> release but never updated the plot.js that is listed separately on the 
>>> release. Try replacing your existing plot.js with this one 
>>> .
>>>  
>>> Hopefully that will get your weekly plots displaying.
>>>
>>> As for the 90 degree wind direction, that is actually the yearly plot 
>>> (it uses year.json not week.json)not the weekly plot. The yearly plot 
>>> displays daily values appropriate to the observation being plotted. For 
>>> outTemp this is daily min, max and avg, for windSpeed this is day gust, day 
>>> max 5 min average speed and day average speed. For windDir the day vector 
>>> average direction is plotted. For some reason this is being set to 90 
>>> degrees or null (open up the direction plot to display the full suite of 
>>> data not just the last month that it defaults to). I note your week.json 
>>> has windDir that is very close to 270 degrees nearly all the time, maybe 
>>> there is some funny vector averaging going on, I think not as it would not 
>>> give exactly 90 degrees all the time. I need to look into this further.
>>>
>>> The bottom line is what data highcharts is plotting appears consistent 
>>> with the data it is being fed. I expect once the plot.js issue is fixed the 
>>> weekly plots will render fine as will the weekly windDir plot. I need to 
>>> look further at how the year winDir data is 
>>> generated.
>>>
>>> Gary
>>>
>>> On Sunday, 2 September 2018 01:12:15 UTC+10, Praveen Chandrasekaran 
>>> wrote:

 And the output graphs are available now at:

 http://bedi.co.in:15000/pc-aws/weather/graphs.html?graph=w

 As you can see direction graph is all 90 degrees. Apart from that 
 everything else works and is awesome. 

 On Sat, 1 Sep 2018 at 19:56, Praveen Chandrasekaran <
 pravee...@gmail.com> wrote:

> Hi Gary,
>
> My json can be taken from
>
> http://bedi.co.in:15000/pc-aws/weather/json/week.json
>
> As you can see wind direction is all fine in this but graphics shows 
> all as 90 degrees
>
> Regards,
> Praveen 
>
> -- 
> 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/WgCKuU-gBcU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> weewx-user+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
 -- 
>>> 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/WgCKuU-gBcU/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> weewx-user+...@googlegroups.com .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-02 Thread Praveen Chandrasekaran
Hi Gary,

After updating the plots.js neither the weekly nor the yearly works!

Regards,
Praveen

On Sun, 2 Sep 2018 at 07:43, Praveen Chandrasekaran 
wrote:

> Hi Gary,
>
> The week.json having winddir close to 270 always is fine. This is south
> west monsoon season and the winds are always from west and west south west
> here from June to September.
>
> Will look into other stuff you mentioned and get back soon.
>
> Regards,
> Praveen
>
> On Sun, 2 Sep 2018, 05:12 gjr80,  wrote:
>
>> Ok, I think there are a couple of issues here. Firstly, I cannot get your
>> weekly plots to display, the page gives an error in plot.js; it seems that
>> I updated plot.js after I put out the most recent weewx-Highcharts release
>> but never updated the plot.js that is listed separately on the release. Try
>> replacing your existing plot.js with this one
>> .
>> Hopefully that will get your weekly plots displaying.
>>
>> As for the 90 degree wind direction, that is actually the yearly plot (it
>> uses year.json not week.json)not the weekly plot. The yearly plot displays
>> daily values appropriate to the observation being plotted. For outTemp this
>> is daily min, max and avg, for windSpeed this is day gust, day max 5 min
>> average speed and day average speed. For windDir the day vector average
>> direction is plotted. For some reason this is being set to 90 degrees or
>> null (open up the direction plot to display the full suite of data not just
>> the last month that it defaults to). I note your week.json has windDir that
>> is very close to 270 degrees nearly all the time, maybe there is some funny
>> vector averaging going on, I think not as it would not give exactly 90
>> degrees all the time. I need to look into this further.
>>
>> The bottom line is what data highcharts is plotting appears consistent
>> with the data it is being fed. I expect once the plot.js issue is fixed the
>> weekly plots will render fine as will the weekly windDir plot. I need to
>> look further at how the year winDir data is
>> generated.
>>
>> Gary
>>
>> On Sunday, 2 September 2018 01:12:15 UTC+10, Praveen Chandrasekaran wrote:
>>>
>>> And the output graphs are available now at:
>>>
>>> http://bedi.co.in:15000/pc-aws/weather/graphs.html?graph=w
>>>
>>> As you can see direction graph is all 90 degrees. Apart from that
>>> everything else works and is awesome.
>>>
>>> On Sat, 1 Sep 2018 at 19:56, Praveen Chandrasekaran 
>>> wrote:
>>>
 Hi Gary,

 My json can be taken from

 http://bedi.co.in:15000/pc-aws/weather/json/week.json

 As you can see wind direction is all fine in this but graphics shows
 all as 90 degrees

 Regards,
 Praveen

 --
 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/WgCKuU-gBcU/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 weewx-user+...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>> --
>> 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/WgCKuU-gBcU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> weewx-user+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-01 Thread Praveen Chandrasekaran
Hi Gary,

The week.json having winddir close to 270 always is fine. This is south
west monsoon season and the winds are always from west and west south west
here from June to September.

Will look into other stuff you mentioned and get back soon.

Regards,
Praveen

On Sun, 2 Sep 2018, 05:12 gjr80,  wrote:

> Ok, I think there are a couple of issues here. Firstly, I cannot get your
> weekly plots to display, the page gives an error in plot.js; it seems that
> I updated plot.js after I put out the most recent weewx-Highcharts release
> but never updated the plot.js that is listed separately on the release. Try
> replacing your existing plot.js with this one
> .
> Hopefully that will get your weekly plots displaying.
>
> As for the 90 degree wind direction, that is actually the yearly plot (it
> uses year.json not week.json)not the weekly plot. The yearly plot displays
> daily values appropriate to the observation being plotted. For outTemp this
> is daily min, max and avg, for windSpeed this is day gust, day max 5 min
> average speed and day average speed. For windDir the day vector average
> direction is plotted. For some reason this is being set to 90 degrees or
> null (open up the direction plot to display the full suite of data not just
> the last month that it defaults to). I note your week.json has windDir that
> is very close to 270 degrees nearly all the time, maybe there is some funny
> vector averaging going on, I think not as it would not give exactly 90
> degrees all the time. I need to look into this further.
>
> The bottom line is what data highcharts is plotting appears consistent
> with the data it is being fed. I expect once the plot.js issue is fixed the
> weekly plots will render fine as will the weekly windDir plot. I need to
> look further at how the year winDir data is
> generated.
>
> Gary
>
> On Sunday, 2 September 2018 01:12:15 UTC+10, Praveen Chandrasekaran wrote:
>>
>> And the output graphs are available now at:
>>
>> http://bedi.co.in:15000/pc-aws/weather/graphs.html?graph=w
>>
>> As you can see direction graph is all 90 degrees. Apart from that
>> everything else works and is awesome.
>>
>> On Sat, 1 Sep 2018 at 19:56, Praveen Chandrasekaran 
>> wrote:
>>
>>> Hi Gary,
>>>
>>> My json can be taken from
>>>
>>> http://bedi.co.in:15000/pc-aws/weather/json/week.json
>>>
>>> As you can see wind direction is all fine in this but graphics shows all
>>> as 90 degrees
>>>
>>> Regards,
>>> Praveen
>>>
>>> --
>>> 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/WgCKuU-gBcU/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> weewx-user+...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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/WgCKuU-gBcU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-01 Thread gjr80
Ok, I think there are a couple of issues here. Firstly, I cannot get your 
weekly plots to display, the page gives an error in plot.js; it seems that 
I updated plot.js after I put out the most recent weewx-Highcharts release 
but never updated the plot.js that is listed separately on the release. Try 
replacing your existing plot.js with this one 
.
 
Hopefully that will get your weekly plots displaying.

As for the 90 degree wind direction, that is actually the yearly plot (it 
uses year.json not week.json)not the weekly plot. The yearly plot displays 
daily values appropriate to the observation being plotted. For outTemp this 
is daily min, max and avg, for windSpeed this is day gust, day max 5 min 
average speed and day average speed. For windDir the day vector average 
direction is plotted. For some reason this is being set to 90 degrees or 
null (open up the direction plot to display the full suite of data not just 
the last month that it defaults to). I note your week.json has windDir that 
is very close to 270 degrees nearly all the time, maybe there is some funny 
vector averaging going on, I think not as it would not give exactly 90 
degrees all the time. I need to look into this further.

The bottom line is what data highcharts is plotting appears consistent with 
the data it is being fed. I expect once the plot.js issue is fixed the 
weekly plots will render fine as will the weekly windDir plot. I need to 
look further at how the year winDir data is 
generated.

Gary

On Sunday, 2 September 2018 01:12:15 UTC+10, Praveen Chandrasekaran wrote:
>
> And the output graphs are available now at:
>
> http://bedi.co.in:15000/pc-aws/weather/graphs.html?graph=w
>
> As you can see direction graph is all 90 degrees. Apart from that 
> everything else works and is awesome. 
>
> On Sat, 1 Sep 2018 at 19:56, Praveen Chandrasekaran  > wrote:
>
>> Hi Gary,
>>
>> My json can be taken from
>>
>> http://bedi.co.in:15000/pc-aws/weather/json/week.json
>>
>> As you can see wind direction is all fine in this but graphics shows all 
>> as 90 degrees
>>
>> Regards,
>> Praveen 
>>
>> -- 
>> 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/WgCKuU-gBcU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> weewx-user+...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Winddirplot with weewx-Highcharts

2018-09-01 Thread Praveen Chandrasekaran
And the output graphs are available now at:

http://bedi.co.in:15000/pc-aws/weather/graphs.html?graph=w

As you can see direction graph is all 90 degrees. Apart from that
everything else works and is awesome.

On Sat, 1 Sep 2018 at 19:56, Praveen Chandrasekaran 
wrote:

> Hi Gary,
>
> My json can be taken from
>
> http://bedi.co.in:15000/pc-aws/weather/json/week.json
>
> As you can see wind direction is all fine in this but graphics shows all
> as 90 degrees
>
> Regards,
> Praveen
>
> --
> 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/WgCKuU-gBcU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Winddirplot with weewx-Highcharts

2018-09-01 Thread Praveen Chandrasekaran
Hi Gary,

My json can be taken from

http://bedi.co.in:15000/pc-aws/weather/json/week.json

As you can see wind direction is all fine in this but graphics shows all as 90 
degrees

Regards,
Praveen 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Winddirplot with weewx-Highcharts

2018-08-31 Thread gjr80
Hi,

Short answer is I don't know. As I understand it all points on the wind 
directions plots are 90 degree but the underlying json files that contain the 
wind direction data have normal (as expected) wind direction data that is not 
always 90 degrees. Is this correct? If you want to continue to find the issue 
it would be good to see one of the offending json files.

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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Winddirplot with weewx-Highcharts

2018-08-31 Thread Praveen Chandrasekaran
Hi,

I installed the HighCharts extension for weewx. Everything is fine except
that on plot wind direction shows 90 degrees for all days. In json file I
see the wind direction is fine. What could be the issue?

Regards,
Praveen

-- 
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.
For more options, visit https://groups.google.com/d/optout.