Dear WeatherCat AppleScript fans,
NOTICE: The current version of ASTwitterLibrary used in WC Twitter Uploader is not working correctly and cannot authenticate new installations of the script. Unfortunately the problem can only be solved by the author of ASTwitterLibrary and thus far, he has not been successful. So until further notice, WC Twitter Uploader is only useable for for existing users. For more information on the problem, see this thread on the WeatherCat forum:
http://athena.trixology.com/index.php?topic=1157.0I have completed my latest update to my collection of AppleScripts for WeatherCat. You can download the latest and greatest here:
http://www.canebas.org/WeatherCat/AppleScripts/WeatherCat%20Scripts%202013-12-01.zipThis release mainly provides expanded support for uploading text to Twitter and is a much more extensive modification than anything done in quite a while. So upgrading is more messy. Your old preference files for the following scripts
WC Temperature Falling,
WC Temperature Rising,
WC Twitter Uploader, and
WC Zambretti Forecaster will need to be modified because there are new configuration variables associated with the upgrade.
In addition, there are three new AppleScripts:
WC Webtext Twitter which is template, and two examples of that template:
WC Day Summary Twitter and
WC Forecast Twitter. These are basically little stubs that use new routines in the
WC Script tools.scpt to pass strings from any AppleScript to
WC Twitter Uploader. In addition to periodically reporting current conditions,
WC Twitter Uploader will collect all strings passed to it, and upload them to Twitter once a minute.
WC Webtext Twitter has a very interesting feature of allowing to you create a WeatherCat web template containing any text that you can generate with WeatherCat tags and have them uploaded to Twitter. The
WC Forecast Twitter uploads the Davis (or others) forecast to Twitter.
WC Day Summary Twitter generates a summary of the days weather and uploads that to Twitter. The WeatherCat web templates do to that are also included in the new distribution along with two utility droplets:
UNIX Path to Clipboard and
HFS Path to Clipboard.
UNIX Path to Clipboard allows you to drag and drop a file onto it and it will paste the complete UNIX path of that file. The analogous script:
HFS Path to Clipboard does the same for the HFS (OS-9) file path format. There is documentation for all these changes. If you want to make your own custom scripts based on
WC Webtext Twitter definitely go through the documentation on that before proceeding.
In case you haven't surmised this by now, this is a complex and potentially tricky upgrade. If you have no interest in Twitter beyond what's already supported, don't bother upgrading. If you decide to take this one - take care! It it likely to be troublesome!
Cheers, Edouard
P.S. Here the full release notes:
December 1, 2013:
- Changed preference variable updateTime in WC Twitter Uploader from specifying the number of seconds between current weather conditions updates to the number of minutes between such updates.
- Added a handler to WC Twitter Uploader allowing it to process strings from any other AppleScript as Twitter uploads. The strings are queued up and then processed once a minute by WC Twitter Uploader.
- Added two additional handlers to the WC Script tools library to simply uploading arbitrary strings to Twitter. The forwardTwitterString handler can be used to send strings for upload. The forwardFileTextToTwitter handler opens up a text file and extracts the string for uploading. This is intended for uploading WeatherCat templates after processing.
- Added support to WC Zambretti Forecaster to optionally upload forecasts to Twitter. This is controlled by the preference variable: useTwitter.
- Added support to WC Temperature Falling and WC Temperature Rising to optionally upload forecasts to Twitter. This is controlled by the preference variable: useTwitter. In addition added an additional preference variable: stationName, which can be used to assign a name to the report of a temperature exceeding a threshold.
- Created a prototype AppleScript: WC Webtext Twitter intended for modification into various user-created tools to upload WeatherCat templates to Twitter. This AppleScript is intended to be refashioned as the two examples: WC Day Summary Twitter and WC Forecast Twitter have been.
- Created two examples of out to upload WeatherCat web template text to Twitter. WC Forecast Twitter uses the Forecast text twit.txt WeatherCat web template to upload the forecast generated by the Davis Vantage Pro-2 station. WC Day Summary Twitter uses the Daily summary text twit.txt WeatherCat web template to upload a summary of the preceding days conditions to Twitter.
- Created two utility AppleScripts to assist in creating customized versions of the WC Webtext Twitter AppleScript and related chores. UNIX Path to Clipboard allows you to drag and drop a file onto it and it will paste the complete UNIX path of that file. The analogous script: HFS Path to Clipboard does the same for the old HFS (OS-9) file format used by other AppleScripts like WC ET Reporter.