Author Topic: New iMac question RE Twitter updates  (Read 18736 times)

Blicj11

  • Storm
  • *****
  • Posts: 4088
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.7 | WeatherCat 3.3.3 | Supportive Wife
Re: New iMac question RE Twitter updates
« Reply #15 on: November 22, 2016, 04:49:21 PM »
Where can I find the strings that put data into the tweet (Wish to remove wind data as in a sheltered location) E.G Temperature: STAT$TEMPERATURE:CURRENT$STAT$TEMPERATURE:DELTACHAR$

From the manual:
Each tweet is defined by a template - there may be an unlimited number of templates.
Each template is made up from one of the following WeatherCat tags:
t12$ - time in 12 hours format
t24$ - time in 24 hour format.
de$ - date in the format d/my
da$ - date in the format m/d/y
STAT$ - any stat tag that can be processed by WeatherCat including TIME specifiers.

Each template also has a list of tweet times associated with it, these times are defined to a resolution of one minute (i.e. a maximum of 1440 possible times per day). By default, 4 templates are provided - an hourly and 3 daily templates. You can add to, edit and delete the default templates. You can also save and load the templates as sets (Tools menu).

Usage:
Make sure you have a Twitter account configured on your Mac. Launch Sylvester and select the account you wish to post to. Hit the 'Start' button then at the predefined times, the relevant tweet will be made.
To edit a template, double click it. To add or delete templates, hit the relevant button.

Here is a sample template from my account:
Timber Lakes Weather at t12$: Temp: STAT$TEMPERATURE:CURRENT$?FSTAT$TEMPERATURE:DELTACHAR$ Relative humidity: STAT$EXTHUMIDITY:CURRENT$%STAT$EXTHUMIDITY:DELTACHAR$ Pressure: STAT$PRESSURE:CURRENT$ inHgSTAT$PRESSURE:DELTACHAR$ Wind: STAT$WINDSPEED:CURRENT$ mphSTAT$WINDSPEED:DELTACHAR$ from the STAT$WINDDIRECTION:CURRENT$. Daily rain: STAT$RAIN:TOTAL:TODAY$.

This string displays the following tweet:
Timber Lakes Weather at 9:48 AM: Temp:28?F-> Relative humidity: 89% -> Pressure: 30.1 inHg-> Wind: 2 mph-> from the WNW. Daily rain: 0.44.

The DELTACHAR$ tag is replaced by an arrow showing the trend (rising, falling, steady).

Hope this helps.
Blick


faymondo

  • Gentle Breeze
  • **
  • Posts: 39
Re: New iMac question RE Twitter updates
« Reply #16 on: November 22, 2016, 08:10:33 PM »
Cant sesm to get my head around these pages. I have updated the hourly one and removed wind data and personalised it to my station. Tweets are sending no problem.

Can I do an hourly tweet with todays max and min temp, high wind gust and high rain rate for that day ?

Also as using centigrade any way to get the decimal point E.G Currently 5.9c and not tweeting as 6 ?

Thanks

Neil

Blicj11

  • Storm
  • *****
  • Posts: 4088
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.7 | WeatherCat 3.3.3 | Supportive Wife
Re: New iMac question RE Twitter updates
« Reply #17 on: November 22, 2016, 09:30:18 PM »
Here are some additional templates from my account. You can play with them. You have to cut some stuff out if you are going to tweet everything together because you will hit the character limit.

Temperature
High: STAT$TEMPERATURE:MAX:TODAY$? F at STAT$TEMPERATURE:MAX:TODAY:TIME$. Low: STAT$TEMPERATURE:MIN:TODAY$? F at STAT$TEMPERATURE:MIN:TODAY:TIME$. Average: STAT$TEMPERATURE:AVERAGE:TODAY$? F.

Rain
Daily Precipitation Report for da$ at t12$: Daily Rain: STAT$RAIN:TOTAL:TODAY$ inches. Max rain rate: STAT$RAIN:MAX:TODAY$ inches per hour at STAT$RAIN:MAX:TODAY:TIME$.

Wind
Daily Wind Report High: STAT$WINDSPEED:MAX:TODAY$ mph at STAT$WINDSPEED:MAX:TODAY:TIME$. Avg: STAT$WINDSPEED:AVERAGE:TODAY$ mph. Avg direction: STAT$WINDDIRECTION:AVERAGE:TODAY$. Wind run: STAT$WINDRUN:TOTAL:TODAY$ miles.
Blick


faymondo

  • Gentle Breeze
  • **
  • Posts: 39
Re: New iMac question RE Twitter updates
« Reply #18 on: November 22, 2016, 09:41:51 PM »
They are great many thanks (again)

Just the decimal point on centigrade. Is this possible rather than rounding up  ?

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1608
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 26, WeatherCat 4 Beta
Re: New iMac question RE Twitter updates
« Reply #19 on: November 22, 2016, 10:33:59 PM »
Neil,

I have a tweet sent every two hours consisting of the following string:

Current Conditions in Avon at t12$: Temperature: STAT$TEMPERATURE:CURRENT$STAT$TEMPERATURE:DELTACHAR$ Pressure: STAT$PRESSURE:CURRENT$STAT$PRESSURE:DELTACHAR$ Wind: STAT$WINDSPEED:CURRENT$STAT$WINDSPEED:DELTACHAR$ from the STAT$WINDDIRECTION:CURRENT$. Daily rain: STAT$RAIN:TOTAL:TODAY$. www.avon-weather.com


Which yields:

Current Conditions in Avon at 4:00 PM: Temperature: 36→ Pressure: 30.3→ Wind: 0→ from the NW. Daily rain: 0.00. avon-weather.com



I also have a tweet go out one minute before midnight with my daily summary:

Daily summary for Avon at t12$: High: STAT$TEMPERATURE:MAX:TODAY$ at STAT$TEMPERATURE:MAX:TODAY:TIME$. Low: STAT$TEMPERATURE:MIN:TODAY$ at STAT$TEMPERATURE:MIN:TODAY:TIME$. Average: STAT$TEMPERATURE:AVERAGE:TODAY$. Highest wind speed: STAT$WINDSPEED:MAX:TODAY$ at STAT$WINDSPEED:MAX:TODAY:TIME$. Rain: STAT$RAIN:TOTAL:TODAY$"

Which yields:

Daily summary for Avon at 11:59 PM: High: 37 at 2:12 PM. Low: 30 at 3:58 AM. Average: 33. Highest wind speed: 24 at 12:10 AM. Rain: 0.00"


I hope that offers some further options for you,
Steve
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS
PWSweather - WeatherCloud - Facebook

Blicj11

  • Storm
  • *****
  • Posts: 4088
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.7 | WeatherCat 3.3.3 | Supportive Wife
Re: New iMac question RE Twitter updates
« Reply #20 on: November 22, 2016, 11:08:30 PM »
Neil:

I do not know if you can force the decimal point to show; I've never tried to do that.
Blick


faymondo

  • Gentle Breeze
  • **
  • Posts: 39
Re: New iMac question RE Twitter updates
« Reply #21 on: November 23, 2016, 09:40:44 PM »
Thanks for all the help. This have given me many more options than the tweets sent via Weathercloud.

Hopefully sort the decimal point issue out in future.

Thanks again.

Neil

Blicj11

  • Storm
  • *****
  • Posts: 4088
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.7 | WeatherCat 3.3.3 | Supportive Wife
Re: New iMac question RE Twitter updates
« Reply #22 on: November 23, 2016, 09:44:19 PM »
Glad you found some templates you like.
Blick


nowait

  • Strong Breeze
  • ***
  • Posts: 133
  • Station Details: Davis Vantage Pro 2 Wireless (Heated) on a Snow Leopard Mac Mini
RE Twitter updates
« Reply #23 on: November 26, 2016, 04:16:56 AM »
Is there a way to tweet for "special" weather events like:
Snow/rain start or stop
New high/low temperature
Hard rain, etc ?

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6706
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Not using Sylvester (Re: RE Twitter updates)
« Reply #24 on: November 26, 2016, 10:37:20 PM »
Dear nowait and WeatherCat Twitter fans,

Is there a way to tweet for "special" weather events like:
Snow/rain start or stop
New high/low temperature
Hard rain, etc ?

As far as I know you can't.  My AppleScripts still do this sort of thing, but Sylvester doesn't have this capability yet.

Cheers, Edouard