THanks Tom. I'll dig into that and see what I can come up with.

On Saturday, February 8, 2020 at 11:11:48 AM UTC-5, Thomas Keffer wrote:
>
> You can add the text in the template. The key is to test for the raw 
> value, using the .raw suffix. Something like (NOT TESTED):
>
> #set trend_raw = $trend.barometer.raw
>
> Wind $current.windSpeed Barometer $current.barometer #slurp
> #if $trend_raw < -0.05
> falling rapidly#slurp
> #elif $trend_raw < -0.01
> falling slowly#slurp
> #elif $trend_raw < 0.005
> steady#slurp
> #elif $trend_raw < 0.01
> rising slowly#slurp
> #else
> rising rapidly#slurp
> Temperature $current.outTemp Rain today $day.rain.sum Humidity 
> $current.outHumidity
>
> Adjust values as you see fit. The #slurp directive prevents a newline from 
> being injected.
>
> See the Language overview 
> <https://cheetahtemplate.org/users_guide/language.html> in the Cheetah 
> User's Guide for the full template syntax.
>
> -tk
>
>
> On Sat, Feb 8, 2020 at 7:45 AM Greg Ledet <[email protected] 
> <javascript:>> wrote:
>
>> Hi guys, first post in the group and a rather new user to weewx as a 
>> whole.
>>
>> Many moons ago, I used Cumulus connected to my old wx station and it had 
>> a great feature that would update Twitter once per hour with the weather 
>> info from the station. When I moved on to a new station back in 2014, I 
>> lost that functionality. A couple weeks ago, I decided to get off my butt 
>> and recreate it, which brought me to weewx. I figured if I could get that 
>> data onto a linux box, then there would be nothing stopping me from 
>> creating a post on Twitter with it. 
>>
>> The account in question is @PowellOHWeather. You can see that posts 
>> stopped on Oct 3, 2014 and just picked back up yesterday, but it's missing 
>> one piece of data, and that's the barometer trend. I haven't figured out 
>> how to get the barometer trend into the post, so I've come to you for 
>> assistance. Does anyone have any ideas?
>>
>> The old posts looked like this: 
>>
>> Wind 11.4 mph S. Barometer 29.27 in, Falling slowly. Temperature 69.4 °F. 
>> Rain today 0.15 in. Humidity 70%
>>
>> I have the new posts looking like this so far: 
>>
>> Wind 0.2 mph SW. Barometer 29.88 in. Temperature 27.5 ºF. Rain today 0.00 
>> in. Humidity 94.0%.
>>
>> I want to get that barometer falling rapidly, falling slowly, rising 
>> rapidly, rising slowly, or steady into the posts, but can't figure out how 
>> to do it. I'm using the weewx-twitter extension that I found in this group, 
>> and here's the config I'm using.
>>
>> [StdRESTful]
>>     [[Twitter]]
>>         oauth_token_secret = xxxx
>>         oauth_token = xxxx
>>         app_key_secret = xxxx
>>         app_key = xxxx
>>         post_interval = 3600
>>         format = "Wind {windSpeed:%.1f} mph {windDir:ORD}. Barometer 
>> {barometer:%.2f} in. Temperature {outTemp:%.1f} ºF. Rain today {rain:%.2f} 
>> in. Humidity {outHumidity:%.1f}%."
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/8286e5eb-296d-47c0-8906-ba175498f387%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/8286e5eb-296d-47c0-8906-ba175498f387%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b2281b2e-3e65-4aa5-9043-f490b53a3d1f%40googlegroups.com.

Reply via email to