Re: [weewx-user] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread gjr80
Hi Kevin,

No not quite. Just like $day gives aggregates since the start of the day, $hour 
provides aggregates from the start of the hour. So to use $hour you use exactly 
the same syntax as with $day eg:

$hour.rain.sum displays total rainfall since the top of the hour

and

$hour.windGust.max displays the highest windGust seen since the top of the hour 

On the other hand $span provides an aggregate over some time span, that time 
span can be 1 or more hours, 1 or more days etc. So using $span with 1 hour 
gives you aggregates over the last hour. The $span syntax is slightly different 
in that we need to specify how long the 'span' is. To to that we use the 
$hour_delta parameter (or the $day_delta or the $week_delta parameter etc). So 

$span($hour_delta=1).rain.sum displays the total rainfall over the last 1 hour

and

$span($hour_delta=1).windGust.max displays the highest windGust over the last 1 
hour

$day, $hour etc also have a similar parameter (though not used as often); 
$_ago (where  is day or hour etc) to give you an aggregate over the day 
before, the day before that, the hour before the current, the hour before that 
etc. $day, $hour and friends always start on a day or hour etc boundary whereas 
that is not necessarily the case with $span. Probably best explained in the 
Customization Guide (http://weewx.com/docs/customizing.htm) under the 
Customizing templates section 
(http://weewx.com/docs/customizing.htm#customizing_templates), should have 
pointed you there before but was on the mobile and typing much on the mobile is 
a pain (well for me anyway).

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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread Kevin Lloyd
Hi Gary,

That's very helpful. Thank you. Now that you mention it, showing from the
top of the hour would probably be better. So to be clear...

If I want to display the total rain since the top of the hour, I would use:
$span($hour.rain.sum)

If I want to display the max wind gust since the top of the hour, I would
use: $span($hour.windGust.sum)

Is that correct?

On Fri, Oct 12, 2018 at 8:18 PM gjr80  wrote:

> Kevin, in this case you want the sum so $span($hour_delta=1).rain.sum
> should do what you want. Note that this gives the sum over the last 60
> minutes, you can use $hour.rain.sum to get the total rain since the top of
> the hour (same for windGust).
>
> 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/sO7TbQlGySU/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.
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread gjr80
Kevin, in this case you want the sum so $span($hour_delta=1).rain.sum should do 
what you want. Note that this gives the sum over the last 60 minutes, you can 
use $hour.rain.sum to get the total rain since the top of the hour (same for 
windGust). 

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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread Kevin Lloyd
Hi Gary,

That worked!

The most recent tweet:

Time: 12/10/18 08:00:00 PM Temp: 11.4°C Wind Chill: 11.4°C Heat Index:
11.4°C Dewpoint: 4.4°C Humidity: 62% Barometer: 1017.4 hPa Wind: 10 km/h
from WNW Max Wind Gust this hour: 18 km/h Rain Rate: 0.0 mm/hr

Sorry, one more quick thing (I promise). What can I add/change to show
total rain rate for the hour?


On Fri, Oct 12, 2018 at 7:54 PM Kevin Lloyd 
wrote:

> Thanks Gary! I'll give that a try and let you know what happens. :)
>
> On Fri, Oct 12, 2018 at 7:47 PM gjr80  wrote:
>
>> Kevin,
>>
>> Try $span($hour_delta=1).windGust.max
>>
>> 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/sO7TbQlGySU/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.
>>
>
>
> --
> *Kevin Lloyd*
> @kevinlovestech 
> 780-937-7428
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread Kevin Lloyd
Thanks Gary! I'll give that a try and let you know what happens. :)

On Fri, Oct 12, 2018 at 7:47 PM gjr80  wrote:

> Kevin,
>
> Try $span($hour_delta=1).windGust.max
>
> 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/sO7TbQlGySU/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.
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread gjr80
Kevin, 

Try $span($hour_delta=1).windGust.max

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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread Kevin Lloyd
Hi Gary,

Here's what part of my RSS tmpl file looks like right now:


 Time:$current.dateTime
 Outside Temperature: $current.outTemp
 Wind Chill:  $current.windchill
 Heat Index:  $current.heatindex
 Dewpoint:$current.dewpoint
 Humidity:$current.outHumidity
 Barometer:   $current.barometer
 Wind:$current.windSpeed from
$current.windDir.ordinal_compass
 Rain Rate:   $current.rainRate


So, I would add something like this(?): Wind Gust:$day.windGust.max

"$day can be replaced with $month or $year. Other periods are available too
with custom search lists."

Max wind gust for the day would work, but max wind gust for the hour would
be even better, since the main benefit of Twitter is that it's real-time.

What would I need to change/add to do that?

On Fri, Oct 12, 2018 at 5:02 PM gjr80  wrote:

> Sorry, assumed you meant today but I see you did not say that. $day can be
> replaced with $month or $year. Other periods are available too with custom
> search lists.
>
> 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/sO7TbQlGySU/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.
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread gjr80
Sorry, assumed you meant today but I see you did not say that. $day can be 
replaced with $month or $year. Other periods are available too with custom 
search lists.

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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread gjr80
Kevin,

Try $day.windGust.max

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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread Kevin Lloyd
Actually, I have one more related thought. Having wind direction show up in
the RSS and Twitter feeds is important, but I'd like to also have the max
wind gust show up as well. What do I need to change or add to make that
happen?

As always, I really appreciate the help. :)


On Fri, Oct 12, 2018 at 4:04 PM Kevin Lloyd 
wrote:

> Finally found some time to figure this out today! Your suggestions worked,
> Gary! Thank you so much for helping me with that! Hopefully others will
> benefit as well! :)
>
> On Tue, Oct 9, 2018 at 6:33 AM Kevin Lloyd 
> wrote:
>
>> I am indeed referring to that xml file. Thank you so much, Gary! I'll
>> backup the tmpl file and give that a try and see what happens, and post an
>> update here. :)
>>
>> On Mon, Oct 8, 2018 at 6:20 PM gjr80  wrote:
>>
>>> Hi,
>>>
>>> When you refer to the 'RSS feed' I presume you are referring to the
>>> weewx_rss.xml file that appears in public_html/RSS ?
>>>
>>> You can control what appears in weewx_rss.xml through the
>>> skins/Standard/RSS/weewx_rss.xml.tmpl template file. `Wind: 6 km/h from
>>> 106°` will likely be produced by the following:
>>>
>>> $current.windSpeed from $current.windDir
>>>
>>> though it really depends on what you are picking up and tweeting from
>>> weewx_rss.xml. In this case the tag $current.windDir will give you a
>>> numeric direction with degree sign (the default format). If you change that
>>> to use $current.windDir.ordinal_compass instead of just $current.windDir
>>> you will get an ordinal direction like ESE. If you wan to include both you
>>> could use $current.windDir ($current.windDir.ordinal_compass) or 
>>> $current.windDir.ordinal_compass
>>> ($current.windDir) to get 106° (ESE) or ESE (106°) respectively.
>>>
>>> You might want to have a read through the Tags section
>>>  of the Customization Guide
>>>  or if you are really
>>> adventurous the Wind section
>>> .
>>>
>>> Any changes you do make to weewx_rss.xml.tmpl should be safe across
>>> WeeWX upgrades but you may wish to make a copy of your modified
>>> weewx_rss.xml.tmpl just in case.
>>>
>>> Gary
>>>
>>> PS. You may also want to have a look at the twitter extension
>>> , might save you a bit of
>>> double handling.
>>>
>>> --
>>> 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/sO7TbQlGySU/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.
>>>
>>
>>
>> --
>> *Kevin Lloyd*
>> @kevinlovestech 
>> 780-937-7428
>>
>
>
> --
> *Kevin Lloyd*
> @kevinlovestech 
> 780-937-7428
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-12 Thread Kevin Lloyd
Finally found some time to figure this out today! Your suggestions worked,
Gary! Thank you so much for helping me with that! Hopefully others will
benefit as well! :)

On Tue, Oct 9, 2018 at 6:33 AM Kevin Lloyd  wrote:

> I am indeed referring to that xml file. Thank you so much, Gary! I'll
> backup the tmpl file and give that a try and see what happens, and post an
> update here. :)
>
> On Mon, Oct 8, 2018 at 6:20 PM gjr80  wrote:
>
>> Hi,
>>
>> When you refer to the 'RSS feed' I presume you are referring to the
>> weewx_rss.xml file that appears in public_html/RSS ?
>>
>> You can control what appears in weewx_rss.xml through the
>> skins/Standard/RSS/weewx_rss.xml.tmpl template file. `Wind: 6 km/h from
>> 106°` will likely be produced by the following:
>>
>> $current.windSpeed from $current.windDir
>>
>> though it really depends on what you are picking up and tweeting from
>> weewx_rss.xml. In this case the tag $current.windDir will give you a
>> numeric direction with degree sign (the default format). If you change that
>> to use $current.windDir.ordinal_compass instead of just $current.windDir
>> you will get an ordinal direction like ESE. If you wan to include both you
>> could use $current.windDir ($current.windDir.ordinal_compass) or 
>> $current.windDir.ordinal_compass
>> ($current.windDir) to get 106° (ESE) or ESE (106°) respectively.
>>
>> You might want to have a read through the Tags section
>>  of the Customization Guide
>>  or if you are really adventurous
>> the Wind section .
>>
>> Any changes you do make to weewx_rss.xml.tmpl should be safe across
>> WeeWX upgrades but you may wish to make a copy of your modified
>> weewx_rss.xml.tmpl just in case.
>>
>> Gary
>>
>> PS. You may also want to have a look at the twitter extension
>> , might save you a bit of
>> double handling.
>>
>> --
>> 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/sO7TbQlGySU/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.
>>
>
>
> --
> *Kevin Lloyd*
> @kevinlovestech 
> 780-937-7428
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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] Re: how I change what shows up in my Weewx RSS feed?

2018-10-09 Thread Kevin Lloyd
I am indeed referring to that xml file. Thank you so much, Gary! I'll
backup the tmpl file and give that a try and see what happens, and post an
update here. :)

On Mon, Oct 8, 2018 at 6:20 PM gjr80  wrote:

> Hi,
>
> When you refer to the 'RSS feed' I presume you are referring to the
> weewx_rss.xml file that appears in public_html/RSS ?
>
> You can control what appears in weewx_rss.xml through the
> skins/Standard/RSS/weewx_rss.xml.tmpl template file. `Wind: 6 km/h from
> 106°` will likely be produced by the following:
>
> $current.windSpeed from $current.windDir
>
> though it really depends on what you are picking up and tweeting from
> weewx_rss.xml. In this case the tag $current.windDir will give you a
> numeric direction with degree sign (the default format). If you change that
> to use $current.windDir.ordinal_compass instead of just $current.windDir
> you will get an ordinal direction like ESE. If you wan to include both you
> could use $current.windDir ($current.windDir.ordinal_compass) or 
> $current.windDir.ordinal_compass
> ($current.windDir) to get 106° (ESE) or ESE (106°) respectively.
>
> You might want to have a read through the Tags section
>  of the Customization Guide
>  or if you are really adventurous
> the Wind section .
>
> Any changes you do make to weewx_rss.xml.tmpl should be safe across WeeWX
> upgrades but you may wish to make a copy of your modified
> weewx_rss.xml.tmpl just in case.
>
> Gary
>
> PS. You may also want to have a look at the twitter extension
> , might save you a bit of
> double handling.
>
> --
> 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/sO7TbQlGySU/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.
>


-- 
*Kevin Lloyd*
@kevinlovestech 
780-937-7428

-- 
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.