Trixology
WeatherCat => WeatherCat General Discussion => Topic started by: faymondo on October 14, 2015, 05:45:14 PM
-
Got a new iMac and WC 1.2.4 is running OK. Could somebody give me a guide on how to set my station to set up tweet on the hour again. I remember years back it seemed a very complex process.
Also I did try this on a trial of the latest WC but when using Sylvester my Twitter account is not recognised when trying to set this up. Any ideas ?
Many thanks for any replies.
Neil
-
OK I thought I would try and just replace the prefs.scrpt and WC Twitter uploader.
Thought that was gonna work but the got a growl message
WC Twitter Uploader - WC Twitter upload error
WeatherCat encountered the following error in posting Twitter data: ' '.
Any Ideas ?
-
Dear Neil and WeatherCat scripters,
Got a new iMac and WC 1.2.4 is running OK. Could somebody give me a guide on how to set my station to set up tweet on the hour again. I remember years back it seemed a very complex process.
Also I did try this on a trial of the latest WC but when using Sylvester my Twitter account is not recognised when trying to set this up. Any ideas ?
Which version of OS X are you running? Sylvester is your best bet if all you want to do is post weather conditions every hour. It is way easier to use than my WC Twitter Uploader Applescript. However, if you are running El Capitan there is a bug that Apple is expected to finish in the first maintenance update. If that isn't working for you, go ahead and post the problem you are having in this forum topic:
http://athena.trixology.com/index.php?board=13.0 (http://athena.trixology.com/index.php?board=13.0)
People have been getting Sylvester to work for the most part.
There are some things that only my AppleScript can do. If you really want to continue using it, it is possible, but you'll need to use a new tool to actually do the uploading to Twitter. If you are still interested, let me know I can send you the instructions.
Cheers, Edouard
-
Apologies I am running El Capitan on a shiny new 2015 iMac.
The latest trial version of WC 2 does not allow me to use Sylvester.
I am still interested in the original apple script.
When I test the AppleScript it does what I expect it to but it does not upload to Twitter per Crawl notification.
Thanks for the reply.
Neil
-
Dear Neil and WeatherCat scripters,
Apologies I am running El Capitan on a shiny new 2015 iMac.
The latest trial version of WC 2 does not allow me to use Sylvester.
That's correct because of a bug in El Capitan. However, once Apple fixes that bug, Sylvester will be much more convenient for just about any Twitter data that isn't involving data generated by my AppleScripts themselves. As I'm sure you know the user-interface of my AppleScripts is . . . . shall we say . . . lacking. Sylvester on the other hand is as easy to use as WeatherCat.
By the way, the only version of WeatherCat that is guaranteed to work with El Capitan is WeatherCat 2.2.1. If you haven't upgraded, you probably should to avoid problems somewhere down the line.
I am still interested in the original apple script.
When I test the AppleScript it does what I expect it to but it does not upload to Twitter per Crawl notification.
The AppleScript libraries that I was using to do these uploads were broken by an API change Twitter did a few years back. The original developer of the libraries never did manage to make them work with the new API. There is a new free application called Twitter Scripter that can be used to replace the library. I've sent you a PM with the first instructions on how to make that happen.
Cheers, Edouard
-
Still can't get Twitter to update. Using latest 2.2.2 weather cat and OSX 10.11.1
When I open Sylvester I get the prompt "Sylvester" would like access to Twitter. and I click OK
But in the accounts section nothing shows just a tick ?
-
Might have to log into Twitter.com and change a setting there.
-
Dear faymondo and WeatherCat Twitter fans,
Still can't get Twitter to update. Using latest 2.2.2 weather cat and OSX 10.11.1
Have you already set up your Twitter login in the Internet Accounts section of the system preferences? I believe Sylvester is supposed to bring up that if you haven't provided that information, but perhaps you can get yourself unstuck by manually putting the information in.
If you have already done this perhaps there is a permission issue that is excluding Sylvester from using that system resource. If so, you'll need to ask Stu about it.
Cheers, Edouard
-
This is an Apple bug in 10.11 (if Sylvester keeps asking to access you account credentials).
See http://athena.trixology.com/index.php?topic=1803.msg16468#msg16468 (http://athena.trixology.com/index.php?topic=1803.msg16468#msg16468) for details (they have not yet fixed it).
-
Hi.
I'm following this thread, pending the El Capitan maintenance update (running OS X 10.11.2).
Should Sylvester show up here, when OS fixed?:
-
@rcnz Sylvester is in the Applications --> WeatherCat --> Companion Applications folder. To use it, you need to move it to the Applications --> WeatherCat folder so that it will launch automatically with WeatherCat.
-
Thought I would have another go at this as I have just installed macOS Sierra 10.12.1
I am running Sylvester 0.60 (1.0) and Weathercat 2.40
Sylvester looks like as attached. It seems a report has posted but I don't know where to. Nothing shows on my @liverpoolweath Twitter account apart from the last Weathercloud Tweet.
Any ideas ?
-
Hi Neil - the behaviour you are seeing is exactly what one would see if OS X had been revoked in your Twitter account or there was a problem with the account on your Mac. Twitter will accept the message but it won't appear in your time-line.
Try going to the Internet Accounts pane of the System Preferences then delete and re-add your Twitter account credentials (quit Sylvester first).
(Note: Just tested on 10.12.0 and 10.12.1 here with a fresh install and it looks like they have finally fixed the bug).
-
That has worked a treat.
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$
Many thanks for the help.
-
The Manual lists all the "strings", their functions and how to build with them. Lots of examples. They come directly from the dev, so you know they will work. ThU5:-)
-
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.
-
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
-
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.
-
They are great many thanks (again)
Just the decimal point on centigrade. Is this possible rather than rounding up ?
-
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
-
Neil:
I do not know if you can force the decimal point to show; I've never tried to do that.
-
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
-
Glad you found some templates you like.
-
Is there a way to tweet for "special" weather events like:
Snow/rain start or stop
New high/low temperature
Hard rain, etc ?
-
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