[weewx-user] Re: WDC skin date format

2023-08-17 Thread Greg from Oz
Yes that fixed it.
https://weather.ubeaut.work/wdc/month-2022-08.html
Thanks.

On Friday, 18 August 2023 at 09:57:42 UTC+10 David Bätge wrote:

> Hi Greg,
>
> you are referring to the heading on the month page "/month.html" and the 
> month-archive pages, eg "/month-2021-07.html", right?
>
> These Headings at the top of the page use the same format, both use the 
> setting defined in skin.conf [Units][[TimeFormats]]month (see 
> https://github.com/Daveiano/weewx-wdc/blob/3.x/skins/weewx-wdc/skin.conf#L636
> ):
>
> [Units]
> [[TimeFormats]]
> # @see https://weewx.com/docs/customizing.htm#Units_TimeFormats
> day= %X
> week   = %x
> month  = %x
> year   = %x
> rainyear   = %x
> current= %x %X
> ephem_day  = %X
> ephem_year = %x
> stats  = %x %X
> daily_archive = %Y-%m-%d
>
> There was a change in the date format in one of the latest releases if I 
> remember correctly. There is a chance that your month archive pages use the 
> old format. This could be the case since these archive pages do not get 
> regenerated after the given archive period (even if templates or configs 
> are changed).
>
> To make sure this is not the case, please remove all month archive pages, 
> and wait for the next wee_report run or start the run by yourself.
>
> rm -rf /var/www/html/weewx/month*
>
>
> Greg from Oz schrieb am Donnerstag, 17. August 2023 um 05:01:58 UTC+2:
>
>> Hi,
>>
>> I have noticed the date format in the headings when I select day, 
>> yesterday,week,month,year are correct to how I want them. IE dd/mm/yyy
>>
>> Like this:
>> Monthly Weather Conditions
>> 01/08/23 00:00:00 - 31/08/23 23:59:59 
>>
>> But if I go to the Archive and NOAA sidebar and pick something then the 
>> date format changes to the US format mm/dd/yyy
>> Like this:
>> Monthly Weather Conditions 
>> 01/01/2023 12:00:00 AM - 01/31/2023 11:59:59 PM
>>
>> I have looked through the skin and tmpl files but cannot see anything 
>> that I can change.
>> I have noticed it looks like it picks up the date formatting from 
>> daily_archive 
>> = %Y-%m-%d in the skin but if that is so I would have expected the format 
>> to be /mm/dd which I would like as it is international ISO standard.
>>
>> Where is the format for the date set?
>>
>> Thanks
>>
>>

-- 
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/c0b4ef3b-2125-4103-9a67-7ec6b063d589n%40googlegroups.com.


[weewx-user] Re: WDC skin date format

2023-08-17 Thread David Bätge
Hi Greg,

you are referring to the heading on the month page "/month.html" and the 
month-archive pages, eg "/month-2021-07.html", right?

These Headings at the top of the page use the same format, both use the 
setting defined in skin.conf [Units][[TimeFormats]]month (see 
https://github.com/Daveiano/weewx-wdc/blob/3.x/skins/weewx-wdc/skin.conf#L636):

[Units]
[[TimeFormats]]
# @see https://weewx.com/docs/customizing.htm#Units_TimeFormats
day= %X
week   = %x
month  = %x
year   = %x
rainyear   = %x
current= %x %X
ephem_day  = %X
ephem_year = %x
stats  = %x %X
daily_archive = %Y-%m-%d

There was a change in the date format in one of the latest releases if I 
remember correctly. There is a chance that your month archive pages use the 
old format. This could be the case since these archive pages do not get 
regenerated after the given archive period (even if templates or configs 
are changed).

To make sure this is not the case, please remove all month archive pages, 
and wait for the next wee_report run or start the run by yourself.

rm -rf /var/www/html/weewx/month*


Greg from Oz schrieb am Donnerstag, 17. August 2023 um 05:01:58 UTC+2:

> Hi,
>
> I have noticed the date format in the headings when I select day, 
> yesterday,week,month,year are correct to how I want them. IE dd/mm/yyy
>
> Like this:
> Monthly Weather Conditions
> 01/08/23 00:00:00 - 31/08/23 23:59:59 
>
> But if I go to the Archive and NOAA sidebar and pick something then the 
> date format changes to the US format mm/dd/yyy
> Like this:
> Monthly Weather Conditions 
> 01/01/2023 12:00:00 AM - 01/31/2023 11:59:59 PM
>
> I have looked through the skin and tmpl files but cannot see anything that 
> I can change.
> I have noticed it looks like it picks up the date formatting from 
> daily_archive 
> = %Y-%m-%d in the skin but if that is so I would have expected the format 
> to be /mm/dd which I would like as it is international ISO standard.
>
> Where is the format for the date set?
>
> Thanks
>
>

-- 
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/6ea73ec1-462a-46e5-a4d3-e0ed519061f3n%40googlegroups.com.


[weewx-user] Re: View specific date, or range

2020-02-01 Thread vince
On Saturday, February 1, 2020 at 1:37:56 PM UTC-8, comatose1978 wrote:
>
> I'd like to view a specific date of data, or even a range, with graphs. 
>

I am not aware of a way to do that with vanilla weewx.

You can get that effect perhaps with the highcharts stuff in the 
Belchertown skin, but even that would be a little kludgey.

You'd need a more heavyweight graphing engine such as grafana to do that 
kind of thing, probably over a more heavyweight db such as influxdb.

Here's an example of my grafana dashboard showing 1/10/20 temperature as 
measured by weewx and saved in grafana...

-- 
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/b0cfad42-f554-41c6-b856-ad6948322336%40googlegroups.com.


Re: [weewx-user] Re: On this date

2019-05-28 Thread Robin


> Peter,


Thank you. This has finally started to sink in, I am now producing tables 
that show what I want and make sense!

Thank you to everyone that has had input here, you are all superstars.

Regards to all
Robin

-- 
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/74418484-6e3c-4aba-ab9d-6d0a6dadc31e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: On this date

2019-05-27 Thread p q
Pretty simple. I've been meaning to do that for myself by hadn't gotten
around to it yet.

You need a if statement just inside the loop like
#if $day.dateTime.format("%Y")<>$year.dateTime.format("%Y")

This compares the year returned by the loop to the current year, formatted
the same. If they are different output as normal.
You need to close the if with an #end if just before the #end for

Here's my code:
#for $day in $this_span.periods
   #if
$day.dateTime.format("%Y")<>$year.dateTime.format("%Y")
  $day.dateTime.format("%Y")
   H: $day.outTemp.max :
$day.outTemp.min
  #if $day.rain.sum.raw >0.0
  Rain: $day.rain.sum
  #end if
   #end if
#end for

I have an extra #if to not print out rain if it's zero. If you get rain
throughout the year, you might want to remove the second #if line and first
#end if.

Good luck.

On Mon, May 27, 2019 at 3:33 AM Robin  wrote:

>
>>
> Gary,
>
> Thank you for the search list extension. It is very useful.
>
> I'm sorry to be a pest, I have one more question. I have been trying to
> see if I can exclude the current year so that I get only historic records.
> I have looked at the code to try and understand how it all works, but that
> simply reminds me that I don't understand code.
>
> Is there a way to exclude the current year?
>
> Thank you again.
>
> Robin
>
> --
> 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/ae22c835-f43a-48d5-80c7-c8690f1eadd3%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Peter Quinn
(415)794-2264

-- 
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/CAA1SM20pAGjZCYbhe4dhxQcu2eRQdUFC1VfrwjGwc-itEi4FFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: On this date

2019-05-27 Thread Robin

>
>
>
Gary,

Thank you for the search list extension. It is very useful. 

I'm sorry to be a pest, I have one more question. I have been trying to see 
if I can exclude the current year so that I get only historic records. I 
have looked at the code to try and understand how it all works, but that 
simply reminds me that I don't understand code.

Is there a way to exclude the current year?

Thank you again.

Robin 

-- 
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/ae22c835-f43a-48d5-80c7-c8690f1eadd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: On this date

2019-05-18 Thread p q
Oh wait. I it's outputting "0.0 in"
I do need to do .raw, but as
$day.rain.sum.raw >0

Thank you. That was it.

On Saturday, May 11, 2019 at 6:30:47 AM UTC-7, Robin wrote:
>
> I apologise if this has been asked before or if there is a simple and 
> obvious way to do this, but I can't see it.
>
> I want to display the temperature (min,max) for today's date for each year 
> since we started keeping records.
>
> Can somebody point me in the right direction?
>
> Thanks people.
>

-- 
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/24c50f53-d3e0-4a26-8c5a-97fde772acfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: On this date

2019-05-18 Thread p q
Nope. I get a KeyError when I switch to $day.rain.raw. No errors with 
$day.rain.sum. 

I tried
$day.rain.sum >0
$day.rain.sum >0.0
$day.rain.sum >0.00
$day.rain.sum

Same deal. Is there a string/real conversion problem? Can I force it to a 
number?

On Saturday, May 18, 2019 at 10:21:22 AM UTC-7, Andrew Milner wrote:
>
> wouldnt it just be day.rain.raw > 0 ???
>
> On Saturday, 18 May 2019 20:15:15 UTC+3, p q wrote:
>>
>> This is great. I implemented it on my site this morning. I added it to 
>> the bottom of the Since Midnight table at the bottom. Does exactly what I 
>> was looking for.
>>
>> The only issue I'm having is that I want to display the rain total only 
>> if it's not zero. I live in an area where there's typically no rain from 
>> May to October so I want to skip the line for the rain when it's 0. I tried 
>> an if statement but it's not effective. Any hints?
>>
>> Here's the template code: 
>>   
>> 
>>   On This Day
>>   $day.dateTime.format("%b %d")
>> 
>> 
>> #for $day in $this_span.periods
>>$day.dateTime.format("%Y")
>> H: $day.outTemp.max : 
>> $day.outTemp.min
>>#if $day.rain.sum > 0
>>Rain: $day.rain.sum
>>#end if
>> #end for
>> 
>>   
>>
>>
>> On Wednesday, May 15, 2019 at 7:03:35 AM UTC-7, V. Kelly Bellis wrote:
>>>
>>> Thanks for doing this Gary. I'm too new to all of this stuff to have 
>>> anything to look back on, but it's very cool to see what can be done with 
>>> weewx.
>>> - Kelly
>>>
>>> On Tuesday, May 14, 2019 at 8:37:55 PM UTC-4, gjr80 wrote:

 I should have given this a little more thought before publishing. I 
 have since made a slight change to the tag name to make it a little more 
 logical and consistent with the other iterative tags that WeeWX supports 
 (and to remove a 'this'). The tag now uses .periods in lieu of .this; 
 for example, you would now use the $this_span tag as follows:

 #for $day in this_span.periods
 $day.outTemp.max at $day.outTemp.maxtime
 #end for

 Any existing template code will work fine with the current version with 
 just the need to change '.this' to '.periods'.

 I have also created a page 
  
 in the wiki of the repo containing the this search list extension code 
 that explains the installation and usage of the this search list 
 extension. Hopefully this is a little more user friendly and easier to 
 read than comments in the code.

 Gary

 On Monday, 13 May 2019 17:40:37 UTC+10, gjr80 wrote:
>
> I've put together a search list extension that should do what you 
> want. You will find the code here 
> .
>  
> The SLE is based on the existing WeeWX tag machinery that enables 
> iteration  over 
> periods. So with the SLE installed you can do something like:
>
> #for $day in this_span.this
> $day.outTemp.max at $day.outTemp.maxtime
> #end for
>
> to display the maximum daily temperature and the time it occurred on 
> this day in all years in the archive. The output would be something like:
>
> 24.5°C at 11 May 2017 12:51:00
> 26.7°C at 11 May 2018 13:31:00
> 23.4°C at 11 May 2019 13:15:00
>
> There are various parameters that can be set against $this_span to 
> limit the period covered (the default is all records but you can limit it 
> to the last x years, months etc as with the existing $span tag). 
> There are various parameters that can be applied to .this to set the 
> day to be used, for example, .this($period='week') and 
> .this($period='month') will provide stats for this week and this 
> month respectively over all years. There are many variations and 
> permutations, I have tried to capture a variety of use cases in the up 
> front comment in this.py 
> 
> .
>
> To install/use:
>
> 1. Download the file this.py to the WeeWX machine and save to the 
> $BIN_ROOT/user directory:
>
> for a setup.py install:
> 
> $ wget -P /home/weewx/bin/user https://
> raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py
>
> otherwise:
>
> $ wget -P /usr/share/weewx/user https://
> raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py
>
> 2.  Add the 

[weewx-user] Re: On this date

2019-05-18 Thread Andrew Milner
wouldnt it just be day.rain.raw > 0 ???

On Saturday, 18 May 2019 20:15:15 UTC+3, p q wrote:
>
> This is great. I implemented it on my site this morning. I added it to the 
> bottom of the Since Midnight table at the bottom. Does exactly what I was 
> looking for.
>
> The only issue I'm having is that I want to display the rain total only if 
> it's not zero. I live in an area where there's typically no rain from May 
> to October so I want to skip the line for the rain when it's 0. I tried an 
> if statement but it's not effective. Any hints?
>
> Here's the template code: 
>   
> 
>   On This Day
>   $day.dateTime.format("%b %d")
> 
> 
> #for $day in $this_span.periods
>$day.dateTime.format("%Y")
> H: $day.outTemp.max : 
> $day.outTemp.min
>#if $day.rain.sum > 0
>Rain: $day.rain.sum
>#end if
> #end for
> 
>   
>
>
> On Wednesday, May 15, 2019 at 7:03:35 AM UTC-7, V. Kelly Bellis wrote:
>>
>> Thanks for doing this Gary. I'm too new to all of this stuff to have 
>> anything to look back on, but it's very cool to see what can be done with 
>> weewx.
>> - Kelly
>>
>> On Tuesday, May 14, 2019 at 8:37:55 PM UTC-4, gjr80 wrote:
>>>
>>> I should have given this a little more thought before publishing. I have 
>>> since made a slight change to the tag name to make it a little more logical 
>>> and consistent with the other iterative tags that WeeWX supports (and to 
>>> remove a 'this'). The tag now uses .periods in lieu of .this; for 
>>> example, you would now use the $this_span tag as follows:
>>>
>>> #for $day in this_span.periods
>>> $day.outTemp.max at $day.outTemp.maxtime
>>> #end for
>>>
>>> Any existing template code will work fine with the current version with 
>>> just the need to change '.this' to '.periods'.
>>>
>>> I have also created a page 
>>>  
>>> in the wiki of the repo containing the this search list extension code 
>>> that explains the installation and usage of the this search list 
>>> extension. Hopefully this is a little more user friendly and easier to 
>>> read than comments in the code.
>>>
>>> Gary
>>>
>>> On Monday, 13 May 2019 17:40:37 UTC+10, gjr80 wrote:

 I've put together a search list extension that should do what you want. 
 You will find the code here 
 .
  
 The SLE is based on the existing WeeWX tag machinery that enables 
 iteration  over 
 periods. So with the SLE installed you can do something like:

 #for $day in this_span.this
 $day.outTemp.max at $day.outTemp.maxtime
 #end for

 to display the maximum daily temperature and the time it occurred on 
 this day in all years in the archive. The output would be something like:

 24.5°C at 11 May 2017 12:51:00
 26.7°C at 11 May 2018 13:31:00
 23.4°C at 11 May 2019 13:15:00

 There are various parameters that can be set against $this_span to 
 limit the period covered (the default is all records but you can limit it 
 to the last x years, months etc as with the existing $span tag). There 
 are various parameters that can be applied to .this to set the day to 
 be used, for example, .this($period='week') and .this($period='month') 
 will provide stats for this week and this month respectively over all 
 years. There are many variations and permutations, I have tried to capture 
 a variety of use cases in the up front comment in this.py 
 
 .

 To install/use:

 1. Download the file this.py to the WeeWX machine and save to the 
 $BIN_ROOT/user directory:

 for a setup.py install:
 
 $ wget -P /home/weewx/bin/user https://
 raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py

 otherwise:

 $ wget -P /usr/share/weewx/user https://
 raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py

 2.  Add the following line to the skin config file [CheetahGenerator] 
 stanza for the skin in which the SLE is to be used:
 
 search_list_extensions = user.this.ThisSLE

 if the search_list_extensions config option already exists add 
 user.this.ThisSLE to the end of the option using a comma as a 
 separator, eg:
 
 search_list_extensions = user,another.SLE, user.this.ThisSLE

 3.  Add the required 

[weewx-user] Re: On this date

2019-05-18 Thread p q
This is great. I implemented it on my site this morning. I added it to the 
bottom of the Since Midnight table at the bottom. Does exactly what I was 
looking for.

The only issue I'm having is that I want to display the rain total only if 
it's not zero. I live in an area where there's typically no rain from May 
to October so I want to skip the line for the rain when it's 0. I tried an 
if statement but it's not effective. Any hints?

Here's the template code: 
  

  On This Day
  $day.dateTime.format("%b %d")


#for $day in $this_span.periods
   $day.dateTime.format("%Y")
H: $day.outTemp.max : 
$day.outTemp.min
   #if $day.rain.sum > 0
   Rain: $day.rain.sum
   #end if
#end for

  


On Wednesday, May 15, 2019 at 7:03:35 AM UTC-7, V. Kelly Bellis wrote:
>
> Thanks for doing this Gary. I'm too new to all of this stuff to have 
> anything to look back on, but it's very cool to see what can be done with 
> weewx.
> - Kelly
>
> On Tuesday, May 14, 2019 at 8:37:55 PM UTC-4, gjr80 wrote:
>>
>> I should have given this a little more thought before publishing. I have 
>> since made a slight change to the tag name to make it a little more logical 
>> and consistent with the other iterative tags that WeeWX supports (and to 
>> remove a 'this'). The tag now uses .periods in lieu of .this; for 
>> example, you would now use the $this_span tag as follows:
>>
>> #for $day in this_span.periods
>> $day.outTemp.max at $day.outTemp.maxtime
>> #end for
>>
>> Any existing template code will work fine with the current version with 
>> just the need to change '.this' to '.periods'.
>>
>> I have also created a page 
>>  
>> in the wiki of the repo containing the this search list extension code 
>> that explains the installation and usage of the this search list 
>> extension. Hopefully this is a little more user friendly and easier to 
>> read than comments in the code.
>>
>> Gary
>>
>> On Monday, 13 May 2019 17:40:37 UTC+10, gjr80 wrote:
>>>
>>> I've put together a search list extension that should do what you want. 
>>> You will find the code here 
>>> .
>>>  
>>> The SLE is based on the existing WeeWX tag machinery that enables 
>>> iteration  over 
>>> periods. So with the SLE installed you can do something like:
>>>
>>> #for $day in this_span.this
>>> $day.outTemp.max at $day.outTemp.maxtime
>>> #end for
>>>
>>> to display the maximum daily temperature and the time it occurred on 
>>> this day in all years in the archive. The output would be something like:
>>>
>>> 24.5°C at 11 May 2017 12:51:00
>>> 26.7°C at 11 May 2018 13:31:00
>>> 23.4°C at 11 May 2019 13:15:00
>>>
>>> There are various parameters that can be set against $this_span to 
>>> limit the period covered (the default is all records but you can limit it 
>>> to the last x years, months etc as with the existing $span tag). There 
>>> are various parameters that can be applied to .this to set the day to 
>>> be used, for example, .this($period='week') and .this($period='month') 
>>> will provide stats for this week and this month respectively over all 
>>> years. There are many variations and permutations, I have tried to capture 
>>> a variety of use cases in the up front comment in this.py 
>>> 
>>> .
>>>
>>> To install/use:
>>>
>>> 1. Download the file this.py to the WeeWX machine and save to the 
>>> $BIN_ROOT/user directory:
>>>
>>> for a setup.py install:
>>> 
>>> $ wget -P /home/weewx/bin/user https://
>>> raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py
>>>
>>> otherwise:
>>>
>>> $ wget -P /usr/share/weewx/user https://
>>> raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py
>>>
>>> 2.  Add the following line to the skin config file [CheetahGenerator] 
>>> stanza for the skin in which the SLE is to be used:
>>> 
>>> search_list_extensions = user.this.ThisSLE
>>>
>>> if the search_list_extensions config option already exists add 
>>> user.this.ThisSLE to the end of the option using a comma as a 
>>> separator, eg:
>>> 
>>> search_list_extensions = user,another.SLE, user.this.ThisSLE
>>>
>>> 3.  Add the required $this_span.this code to the template concerned.
>>>
>>> 4.  After the next report cycle is complete confirm there are no errors 
>>> in the log and the report has been generated as expected.
>>>
>>> Gary
>>>
>>> On Saturday, 11 May 2019 

[weewx-user] Re: On this date

2019-05-15 Thread V. Kelly Bellis
Thanks for doing this Gary. I'm too new to all of this stuff to have 
anything to look back on, but it's very cool to see what can be done with 
weewx.
- Kelly

On Tuesday, May 14, 2019 at 8:37:55 PM UTC-4, gjr80 wrote:
>
> I should have given this a little more thought before publishing. I have 
> since made a slight change to the tag name to make it a little more logical 
> and consistent with the other iterative tags that WeeWX supports (and to 
> remove a 'this'). The tag now uses .periods in lieu of .this; for 
> example, you would now use the $this_span tag as follows:
>
> #for $day in this_span.periods
> $day.outTemp.max at $day.outTemp.maxtime
> #end for
>
> Any existing template code will work fine with the current version with 
> just the need to change '.this' to '.periods'.
>
> I have also created a page 
>  
> in the wiki of the repo containing the this search list extension code 
> that explains the installation and usage of the this search list extension. 
> Hopefully this is a little more user friendly and easier to read than 
> comments in the code.
>
> Gary
>
> On Monday, 13 May 2019 17:40:37 UTC+10, gjr80 wrote:
>>
>> I've put together a search list extension that should do what you want. 
>> You will find the code here 
>> .
>>  
>> The SLE is based on the existing WeeWX tag machinery that enables 
>> iteration  over 
>> periods. So with the SLE installed you can do something like:
>>
>> #for $day in this_span.this
>> $day.outTemp.max at $day.outTemp.maxtime
>> #end for
>>
>> to display the maximum daily temperature and the time it occurred on this 
>> day in all years in the archive. The output would be something like:
>>
>> 24.5°C at 11 May 2017 12:51:00
>> 26.7°C at 11 May 2018 13:31:00
>> 23.4°C at 11 May 2019 13:15:00
>>
>> There are various parameters that can be set against $this_span to limit 
>> the period covered (the default is all records but you can limit it to the 
>> last x years, months etc as with the existing $span tag). There are 
>> various parameters that can be applied to .this to set the day to be 
>> used, for example, .this($period='week') and .this($period='month') will 
>> provide stats for this week and this month respectively over all years. 
>> There are many variations and permutations, I have tried to capture a 
>> variety of use cases in the up front comment in this.py 
>> 
>> .
>>
>> To install/use:
>>
>> 1. Download the file this.py to the WeeWX machine and save to the 
>> $BIN_ROOT/user directory:
>>
>> for a setup.py install:
>> 
>> $ wget -P /home/weewx/bin/user https://
>> raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py
>>
>> otherwise:
>>
>> $ wget -P /usr/share/weewx/user https://
>> raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py
>>
>> 2.  Add the following line to the skin config file [CheetahGenerator] 
>> stanza for the skin in which the SLE is to be used:
>> 
>> search_list_extensions = user.this.ThisSLE
>>
>> if the search_list_extensions config option already exists add 
>> user.this.ThisSLE to the end of the option using a comma as a separator, 
>> eg:
>> 
>> search_list_extensions = user,another.SLE, user.this.ThisSLE
>>
>> 3.  Add the required $this_span.this code to the template concerned.
>>
>> 4.  After the next report cycle is complete confirm there are no errors 
>> in the log and the report has been generated as expected.
>>
>> Gary
>>
>> On Saturday, 11 May 2019 23:30:47 UTC+10, Robin wrote:
>>>
>>> I apologise if this has been asked before or if there is a simple and 
>>> obvious way to do this, but I can't see it.
>>>
>>> I want to display the temperature (min,max) for today's date for each 
>>> year since we started keeping records.
>>>
>>> Can somebody point me in the right direction?
>>>
>>> Thanks people.
>>>
>>

-- 
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/bcdade04-dfe7-428d-8739-d6e9d3cd3823%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: On this date

2019-05-14 Thread gjr80
I should have given this a little more thought before publishing. I have 
since made a slight change to the tag name to make it a little more logical 
and consistent with the other iterative tags that WeeWX supports (and to 
remove a 'this'). The tag now uses .periods in lieu of .this; for example, 
you would now use the $this_span tag as follows:

#for $day in this_span.periods
$day.outTemp.max at $day.outTemp.maxtime
#end for

Any existing template code will work fine with the current version with 
just the need to change '.this' to '.periods'.

I have also created a page 
 
in the wiki of the repo containing the this search list extension code that 
explains the installation and usage of the this search list extension. 
Hopefully this is a little more user friendly and easier to read than 
comments in the code.

Gary

On Monday, 13 May 2019 17:40:37 UTC+10, gjr80 wrote:
>
> I've put together a search list extension that should do what you want. 
> You will find the code here 
> .
>  
> The SLE is based on the existing WeeWX tag machinery that enables 
> iteration  over periods. 
> So with the SLE installed you can do something like:
>
> #for $day in this_span.this
> $day.outTemp.max at $day.outTemp.maxtime
> #end for
>
> to display the maximum daily temperature and the time it occurred on this 
> day in all years in the archive. The output would be something like:
>
> 24.5°C at 11 May 2017 12:51:00
> 26.7°C at 11 May 2018 13:31:00
> 23.4°C at 11 May 2019 13:15:00
>
> There are various parameters that can be set against $this_span to limit 
> the period covered (the default is all records but you can limit it to the 
> last x years, months etc as with the existing $span tag). There are 
> various parameters that can be applied to .this to set the day to be 
> used, for example, .this($period='week') and .this($period='month') will 
> provide stats for this week and this month respectively over all years. 
> There are many variations and permutations, I have tried to capture a 
> variety of use cases in the up front comment in this.py 
> 
> .
>
> To install/use:
>
> 1. Download the file this.py to the WeeWX machine and save to the 
> $BIN_ROOT/user directory:
>
> for a setup.py install:
> 
> $ wget -P /home/weewx/bin/user https://
> raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py
>
> otherwise:
>
> $ wget -P /usr/share/weewx/user https://
> raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py
>
> 2.  Add the following line to the skin config file [CheetahGenerator] 
> stanza for the skin in which the SLE is to be used:
> 
> search_list_extensions = user.this.ThisSLE
>
> if the search_list_extensions config option already exists add 
> user.this.ThisSLE to the end of the option using a comma as a separator, 
> eg:
> 
> search_list_extensions = user,another.SLE, user.this.ThisSLE
>
> 3.  Add the required $this_span.this code to the template concerned.
>
> 4.  After the next report cycle is complete confirm there are no errors in 
> the log and the report has been generated as expected.
>
> Gary
>
> On Saturday, 11 May 2019 23:30:47 UTC+10, Robin wrote:
>>
>> I apologise if this has been asked before or if there is a simple and 
>> obvious way to do this, but I can't see it.
>>
>> I want to display the temperature (min,max) for today's date for each 
>> year since we started keeping records.
>>
>> Can somebody point me in the right direction?
>>
>> Thanks people.
>>
>

-- 
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/479b6ab2-bf5f-48f2-95ac-7def3c2a3cf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: On this date

2019-05-13 Thread p q
Thank you. I was starting to look at SLE as a way to do this but I didn't
get very far yesterday. I'll give this a try too.

On Mon, May 13, 2019 at 12:56 AM Robin  wrote:

> Gary,
>
> Thank you, you are a star. That is exactly what I was looking for.
>
> I'm going to go away and play. I'm so excited!
>
> Robin
>
> --
> 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/c0f51b2e-7a8b-4a05-9552-f146afbd9bfe%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Peter Quinn
(415)794-2264

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


[weewx-user] Re: On this date

2019-05-13 Thread Robin
Gary,

Thank you, you are a star. That is exactly what I was looking for.

I'm going to go away and play. I'm so excited!

Robin

-- 
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/c0f51b2e-7a8b-4a05-9552-f146afbd9bfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: On this date

2019-05-13 Thread Robin
Gary,

Thank you, you are a star. That is exactly what I was looking for.

I'm going to go away and play. I'm so excited!

Robin

On Monday, 13 May 2019 10:40:37 UTC+3, gjr80 wrote:
>
> I've put together a search list extension that should do what you want. 
> You will find the code here 
> .
>  
> The SLE is based on the existing WeeWX tag machinery that enables 
> iteration  over periods. 
> So with the SLE installed you can do something like:
>
> #for $day in this_span.this
> $day.outTemp.max at $day.outTemp.maxtime
> #end for
>
> to display the maximum daily temperature and the time it occurred on this 
> day in all years in the archive. The output would be something like:
>
> 24.5°C at 11 May 2017 12:51:00
> 26.7°C at 11 May 2018 13:31:00
> 23.4°C at 11 May 2019 13:15:00
>
> There are various parameters that can be set against $this_span to limit 
> the period covered (the default is all records but you can limit it to the 
> last x years, months etc as with the existing $span tag). There are 
> various parameters that can be applied to .this to set the day to be 
> used, for example, .this($period='week') and .this($period='month') will 
> provide stats for this week and this month respectively over all years. 
> There are many variations and permutations, I have tried to capture a 
> variety of use cases in the up front comment in this.py 
> 
> .
>
> To install/use:
>
> 1. Download the file this.py to the WeeWX machine and save to the 
> $BIN_ROOT/user directory:
>
> for a setup.py install:
> 
> $ wget -P /home/weewx/bin/user https://
> raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py
>
> otherwise:
>
> $ wget -P /usr/share/weewx/user https://
> raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py
>
> 2.  Add the following line to the skin config file [CheetahGenerator] 
> stanza for the skin in which the SLE is to be used:
> 
> search_list_extensions = user.this.ThisSLE
>
> if the search_list_extensions config option already exists add 
> user.this.ThisSLE to the end of the option using a comma as a separator, 
> eg:
> 
> search_list_extensions = user,another.SLE, user.this.ThisSLE
>
> 3.  Add the required $this_span.this code to the template concerned.
>
> 4.  After the next report cycle is complete confirm there are no errors in 
> the log and the report has been generated as expected.
>
> Gary
>
> On Saturday, 11 May 2019 23:30:47 UTC+10, Robin wrote:
>>
>> I apologise if this has been asked before or if there is a simple and 
>> obvious way to do this, but I can't see it.
>>
>> I want to display the temperature (min,max) for today's date for each 
>> year since we started keeping records.
>>
>> Can somebody point me in the right direction?
>>
>> Thanks people.
>>
>

-- 
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/6f3e54af-0d4f-44b8-8127-b245659ca652%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: On this date

2019-05-13 Thread gjr80
I've put together a search list extension that should do what you want. You 
will find the code here 
.
 
The SLE is based on the existing WeeWX tag machinery that enables iteration 
 over periods. So with the 
SLE installed you can do something like:

#for $day in this_span.this
$day.outTemp.max at $day.outTemp.maxtime
#end for

to display the maximum daily temperature and the time it occurred on this 
day in all years in the archive. The output would be something like:

24.5°C at 11 May 2017 12:51:00
26.7°C at 11 May 2018 13:31:00
23.4°C at 11 May 2019 13:15:00

There are various parameters that can be set against $this_span to limit 
the period covered (the default is all records but you can limit it to the 
last x years, months etc as with the existing $span tag). There are various 
parameters that can be applied to .this to set the day to be used, for 
example, .this($period='week') and .this($period='month') will provide 
stats for this week and this month respectively over all years. There are 
many variations and permutations, I have tried to capture a variety of use 
cases in the up front comment in this.py 

.

To install/use:

1. Download the file this.py to the WeeWX machine and save to the 
$BIN_ROOT/user directory:

for a setup.py install:

$ wget -P /home/weewx/bin/user https:
//raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py

otherwise:

$ wget -P /usr/share/weewx/user https:
//raw.githubusercontent.com/gjr80/weewx_utilities/master/search%20list%20extensions/this/bin/user/this.py

2.  Add the following line to the skin config file [CheetahGenerator] 
stanza for the skin in which the SLE is to be used:

search_list_extensions = user.this.ThisSLE

if the search_list_extensions config option already exists add 
user.this.ThisSLE to the end of the option using a comma as a separator, eg:

search_list_extensions = user,another.SLE, user.this.ThisSLE

3.  Add the required $this_span.this code to the template concerned.

4.  After the next report cycle is complete confirm there are no errors in 
the log and the report has been generated as expected.

Gary

On Saturday, 11 May 2019 23:30:47 UTC+10, Robin wrote:
>
> I apologise if this has been asked before or if there is a simple and 
> obvious way to do this, but I can't see it.
>
> I want to display the temperature (min,max) for today's date for each year 
> since we started keeping records.
>
> Can somebody point me in the right direction?
>
> Thanks people.
>

-- 
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/1e76ccf7-8b01-42f4-b918-d3b9d7fa6be8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: On this date

2019-05-11 Thread jose riaño
amigo creería que eso es ya tratamientos de los registros en que los estas 
mostrando en un servidor web o en que ??

-- 
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/d88aafb1-18e2-4b49-84ed-4bb89a4ae5f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: On this date

2019-05-11 Thread p q
I want to do the same. I asked a couple of weeks ago and got no reply. I'm 
going to figure it out when I have time. When I do I'll post it here.

On Saturday, May 11, 2019 at 6:30:47 AM UTC-7, Robin wrote:
>
> I apologise if this has been asked before or if there is a simple and 
> obvious way to do this, but I can't see it.
>
> I want to display the temperature (min,max) for today's date for each year 
> since we started keeping records.
>
> Can somebody point me in the right direction?
>
> Thanks people.
>

-- 
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/37124302-db0c-4501-938e-c37510ef3c36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.