Trixology

WeatherCat => WeatherCat Integration => Topic started by: elagache on December 01, 2013, 10:32:42 PM

Title: WeatherCat Scripts of 2013-12-01
Post by: elagache on December 01, 2013, 10:32:42 PM
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.0 (http://athena.trixology.com/index.php?topic=1157.0)


I 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.zip (http://www.canebas.org/WeatherCat/AppleScripts/WeatherCat%20Scripts%202013-12-01.zip)

This 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 ClipboardUNIX 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  [cheers1]

P.S. Here the full release notes:

Quote
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.
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Steve on December 02, 2013, 10:53:08 PM
Edouard and AppleScript experimenters,

As Edouard noted, I'd been testing the latest iteration of the Twitter script early last week and all was working fine. Then I went away for four days and found that things were not working so fine after all...

I'm only getting one Twitter post after I launch the Twitter Uploader script, and then nothing. I haven't had time to take out my modifications to see if something I've done caused toe problem, but I'll get to that soon.

I just thought I'd update with my results before too many folks swapped for the new version. Edouard has been running them fine on Snow Leopard for weeks, and I'm on Mavericks, so that might be some of the problem.

Steve
Title: Check for libraries (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on December 03, 2013, 09:24:25 PM
Hi Steve and WeatherCat Scripters,

I'm only getting one Twitter post after I launch the Twitter Uploader script, and then nothing. I haven't had time to take out my modifications to see if something I've done caused toe problem, but I'll get to that soon.

If you have been doing a little hackin' of your own, one possibility is that the J.C. Computing library files were deleted through some sort of mysterious process that I don't understand myself, but appears to be defense against people trying to modify other people's code.  You need to have these two files: ASObject.scpt and ASTwitterLibrary.scpt in the Scripts folder of the resource bundle that comes with the WC Twitter Uploader application.  If they are missing you could just grab the files from the distribution and put them back using the instructions that you'll find in the WC Twitter Uploader documentation (complete with helpful screenshots.)

Sorry, I wish there was a way to avoid this, but I sure don't know of it!

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Steve on December 04, 2013, 02:56:42 PM
Edouard,

That happened to be the first thing I checked. I remembered that problem from when you were first developing the scripts. Last evening I went into Time Machine and replaced my entire WeatherCat Scripts folder with the one from November 25, and I'm back to working OK for the every two hour posts. I'll start swapping in bits from a new download of the December 1 package and see if it continues working OK.

Steve
Title: Hmm, puzzling. (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on December 04, 2013, 09:49:52 PM
Hi Steve and WeatherCat AppleScript fans,

Hmm, I'm not sure why things would be any different for the December 1 distribution over what I sent you back in November.  I've "improved" my packaging scheme so that I use the "live" files running on my computer.  I just copy the AppleScripts and then replace my preferences with the default set.  So WC Twitter Uploader should be the same AppleScript I sent you earlier.  Please do keep me posted.  If anybody else has problems also let me know!

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Steve on December 05, 2013, 01:31:52 AM
Edouard,

I changed back to the day before you sent the new Twitter test files to me. So I'm currently using what I've been using since installing Mavericks and making the free RAM change.

Steve
Title: WC Twitter Uploader hung on me. (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on December 05, 2013, 07:51:12 PM
Dear Steve and WeatherCat fans,

While trying to hunt down some "sekret agent stuff," I managed to get WC Twitter Uploader to hang while starting up, requiring a force-quit.  Restarting it got everything working again.  I'm not sure why and it has never happened to me before.  However, I'll keep an eye on it.  If anybody else sees something - let me know!

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Steve on December 08, 2013, 04:14:11 PM
I MAY have found the problem I was having. I reinstalled all the new stuff, launched it, and the scripts that I have parked in my Dock launched...except Twitter uploader. It seems it was launching a copy out of the ~/Library/Mail Downloads folder. I've emptied that folder and restarted WeatherCat and all scripts. Now we'll see if it does what it is supposed to does. :)

Steve
Title: That would explain it!! (Re: WeatherCat Scripts)
Post by: elagache on December 08, 2013, 09:55:17 PM
Howdy Steve and WeatherCat scripters,

I MAY have found the problem I was having. I reinstalled all the new stuff, launched it, and the scripts that I have parked in my Dock launched...except Twitter uploader. It seems it was launching a copy out of the ~/Library/Mail Downloads folder. I've emptied that folder and restarted WeatherCat and all scripts. Now we'll see if it does what it is supposed to does. :)

Uh yeah, if you aren't using the latest version of the script - it can't possibly work!!

You may still have problems, but at least you are on the right track!!  [tup]

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Steve on December 10, 2013, 03:32:47 PM
Everything is working fine now on my system. User error...  ::)
Title: Hurray! (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on December 10, 2013, 08:04:38 PM
Howdy Steve and WeatherCat scripters,

Everything is working fine now on my system. User error...  ::)

Hurray!  Glad it was nothing more complicated than that!  [tup]

And as to user error . . . . . . been there, done that and . . . . .(http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/D%27oh.gif)

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: meteoperugia on September 01, 2014, 01:31:11 PM
Hi Edouard,
assistance was forced to format my HD in order to fix logic unit of old iMac. They installed a downgrade OS from Lion to Snow Leopard so I'm not able to restore files from both Time Machine and CCC backups.
I'm restoring manualy all SW, drivers, pref etc and Weather Cat (thanks Stu) is running again without pref and data lost.

There is a problem with Twitter Upload Script. It's running but result is the known "" window. If I open main.script and push RUN the message resulting is:

error "The document file Macintosh HD:WeatherCat Scripts 2013-12-01:WC Twitter Uploader.app:Contents:Resources:Scripts:WeatherCat Script Library:WeatherCat Script Prefs:WC Twitter Uploader prefs.scpt is not found." number -43 from file "Macintosh HD:WeatherCat Scripts 2013-12-01:WC Twitter Uploader.app:Contents:Resources:Scripts:WeatherCat Script Library:WeatherCat Script Prefs:WC Twitter Uploader prefs.scpt" to file


I guess there is a missing path somewehere and/or loosing keychain data of previous OS Lion, script can't access to Twitter. I though to receive first run window to authenticate script with Twitter but even if I've downloaded your last folder and installed in my MacIntoshHD root, the script start but give me every time "" message.
If i run the Test Script the result is a correct string with less than 140 digit.

Any idea about it?

Many thanks in advance and best regards.
Federico
Title: Could be the dreaded library problem. (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on September 01, 2014, 09:54:47 PM
Hi Federico and WeatherCat scripters,

There is a problem with Twitter Upload Script. It's running but result is the known "" window. If I open main.script and push RUN the message resulting is:

error "The document file Macintosh HD:WeatherCat Scripts 2013-12-01:WC Twitter Uploader.app:Contents:Resources:Scripts:WeatherCat Script Library:WeatherCat Script Prefs:WC Twitter Uploader prefs.scpt is not found." number -43 from file "Macintosh HD:WeatherCat Scripts 2013-12-01:WC Twitter Uploader.app:Contents:Resources:Scripts:WeatherCat Script Library:WeatherCat Script Prefs:WC Twitter Uploader prefs.scpt" to file

That error is attempting to access the preference file for WC Twitter Uploader.  The file is called WC Twitter Uploader prefs.scpt and it should be with all the other preference files in the folder:

~/elagache/Applications/WeatherCat Scripts/WeatherCat Script Library/WeatherCat Script Prefs

If you see it there, then the problem isn't with the script but with your attempt to run it within the AppleScript editor.

I though to receive first run window to authenticate script with Twitter but even if I've downloaded your last folder and installed in my MacIntoshHD root, the script start but give me every time "" message.

However, there is another unfortunate potential problem.  The current version of the ASTwitterLibrary isn't able to authenticate new users.  There is a sad thread on the matter here:

http://athena.trixology.com/index.php?topic=1157.0 (http://athena.trixology.com/index.php?topic=1157.0)

I have repeatedly bugged the developer of the ASTwitterLibrary and now he doesn't answer my emails anymore.  So at the very least, we are in for a long wait to get this bug fixed.  Probably the best thing you could do is to try to salvage your keychain if possible.  That should allow you to upload to Twitter once more. 

Since you were prompted to authenticate that seems to be working better than anyone else who has had this problem.  You might try replacing the libraries to make sure nothing got corrupted.  You can get as current a copy as exists attached to this posting:

http://athena.trixology.com/index.php?topic=1157.msg9655#msg9655 (http://athena.trixology.com/index.php?topic=1157.msg9655#msg9655)

Instructions on how to replace the libraries are included in the documentation for WC Twitter Uploader.

Alas we are really out of luck until this library gets fixed.

Sorry, such are the conditions that prevail.  [rainyluck]

Edouard

Title: Re: WeatherCat Scripts of 2013-12-01
Post by: jhoke on September 01, 2014, 10:50:38 PM
Edouard - are there other AppleScript twitter libraries that could be utilized, or is the applescript tightly coupled to the current ones?

I wonder if there is a way to do this through other means ... bash script called from an applescript, etc...
Title: Re: Could be the dreaded library problem. (Re: WeatherCat Scripts of 2013-12-01)
Post by: meteoperugia on September 02, 2014, 03:07:31 PM

That error is attempting to access the preference file for WC Twitter Uploader.  The file is called WC Twitter Uploader prefs.scpt and it should be with all the other preference files in the folder:

~/elagache/Applications/WeatherCat Scripts/WeatherCat Script Library/WeatherCat Script Prefs

If you see it there, then the problem isn't with the script but with your attempt to run it within the AppleScript editor.

The file is present but with a different path and folder name:

MacintoshHD/WeatherCat Scripts 2013-12-01/WeatherCat Script Library/WeatherCat Script Prefs

I've tried to move and rename folders but no way to send posts to Twitter. If I open and run the file WC Twit String Test.scpt I receive a correct text string with all weather data.

Quote
However, there is another unfortunate potential problem.  The current version of the ASTwitterLibrary isn't able to authenticate new users.  There is a sad thread on the matter here:

http://athena.trixology.com/index.php?topic=1157.0 (http://athena.trixology.com/index.php?topic=1157.0)

I have repeatedly bugged the developer of the ASTwitterLibrary and now he doesn't answer my emails anymore.  So at the very least, we are in for a long wait to get this bug fixed.  Probably the best thing you could do is to try to salvage your keychain if possible.  That should allow you to upload to Twitter once more. 

Since you were prompted to authenticate that seems to be working better than anyone else who has had this problem.  You might try replacing the libraries to make sure nothing got corrupted.  You can get as current a copy as exists attached to this posting:

http://athena.trixology.com/index.php?topic=1157.msg9655#msg9655 (http://athena.trixology.com/index.php?topic=1157.msg9655#msg9655)

Instructions on how to replace the libraries are included in the documentation for WC Twitter Uploader.

READ and DONE before write this post. No results. Just the same error message:
WeatherCat encountered the following error in posting Twitter data: ' '.

OK. I give up. I'll check betimes in that section if there are some news about it. In the meantime no more hourly posts with weather data and forecast for all my Twitter and Facebook funs.....  :'(

Thanks for you kind and fast reply. All the best Edouard!  [cheers1]

Federico.
Title: Folder location and UNIX . . . . (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on September 02, 2014, 09:16:36 PM
Hi Federico, John, and WeatherCat scripters,

The file is present but with a different path and folder name:

MacintoshHD/WeatherCat Scripts 2013-12-01/WeatherCat Script Library/WeatherCat Script Prefs

Well, that should not work at all.  These script are supposed to be installed in the Applications folder inside your home folder.  Sorry, I goofed on my previous posting.  The correct path should be:

~/Applications/WeatherCat Scripts/WeatherCat Script Library/WeatherCat Script Prefs

The entire contents of the folder WeatherCat Scripts is supposed to be within that second Applications folder associated with your home folder.  I know it is a bit clumsy and I should have implemented it differently, but I had to make this all work in a hurry.

I don't know if that will rescue you Federico or not, but you might try it.

Edouard - are there other AppleScript twitter libraries that could be utilized, or is the applescript tightly coupled to the current ones?

Alas, I'm not aware of any other Twitter tools for AppleScript at all.  AppleScript has been mostly abandoned and there is very little support for it.

I wonder if there is a way to do this through other means ... bash script called from an applescript, etc...

As the time has passed I've been pondering this as well.  Let me search around end see if there is another way to do this from the UNIX command line end of things.

Cheers, Edouard  [cheers1]
Title: Re: Folder location and UNIX . . . . (Re: WeatherCat Scripts of 2013-12-01)
Post by: meteoperugia on September 03, 2014, 09:27:36 AM
Well, that should not work at all.  These script are supposed to be installed in the Applications folder inside your home folder.  Sorry, I goofed on my previous posting.  The correct path should be:

~/Applications/WeatherCat Scripts/WeatherCat Script Library/WeatherCat Script Prefs

The entire contents of the folder WeatherCat Scripts is supposed to be within that second Applications folder associated with your home folder.  I know it is a bit clumsy and I should have implemented it differently, but I had to make this all work in a hurry.

I don't know if that will rescue you Federico or not, but you might try it.

I tried to put the folder in all positions and since there was a folder in Applications / users / user_name / I created (my Applications is the root).
Unfortunately it does not work in any way and the needed results is always [WeatherCat encountered the following error in posting Twitter data: ' '].  :-\
Title: Could you upgrade to OS 10.8? (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on September 03, 2014, 09:56:17 PM
Hi Federico and WeatherCat AppleScript fans,

I might have found a way to get WC Twitter Uploader to work without ASTwitterLibrary.  The scheme is described in this posting:

http://athena.trixology.com/index.php?topic=1368.0 (http://athena.trixology.com/index.php?topic=1368.0)

However there is a problem in your case:

assistance was forced to format my HD in order to fix logic unit of old iMac. They installed a downgrade OS from Lion to Snow Leopard . . . .

Is there some reason why they downgraded your version of OS X?  My new scheme requires at OS 10.8 (Mountain Lion.)  Could you upgrade to at least that?

Cheers, Edouard  [cheers1]
Title: Re: Could you upgrade to OS 10.8? (Re: WeatherCat Scripts of 2013-12-01)
Post by: meteoperugia on September 04, 2014, 10:05:06 AM

Is there some reason why they downgraded your version of OS X?  My new scheme requires at OS 10.8 (Mountain Lion.)  Could you upgrade to at least that?

No Edouard, unfortunately in this iMac (late 2006) I can't install Mountain Lion and the technicians fixed logic unit advised me to install Snow leopard because Lion would cause an overheating of the logic unit. In fact, since they did the downgrade from Lion to Snow Leopard the computer is much faster and the processor temperature is always around 35-40°C  while before it was always around 60°C.

Many thanks anyway for your interest. You're a good friend!  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: meteoperugia on September 04, 2014, 07:45:16 PM
Waiting for the scripts or/and for a new iMac there is a simple way to post waether data to a Face Book page or group and to Twitter.
There is a "secret" personal email address associated to every Face Book account and it's possible post text and or pictures sending a a message to that address just with an email. Text MUST BE in Object field and not in text field. Picture could be in text field.

If there was a way to put every hour the weather data string (the same resulting from WC Twitter Uploader) as Object of an email and sent email automatically, weather data could be posted in Face Book page and frome there with a simple app to Twitter.

I've told something about it to Stu months ago but seems to be not so simple with Weather Cat.

Any idea?
Title: What's an email "object" field? (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on September 04, 2014, 09:21:04 PM
Hi Frederico and WeatherCat Scripters,

Sorry that you are stuck with Snow Leopard.  That means you won't be able to upgrade to WeatherCat 2.0 either.  Definitely lots of neat upgrades there.

Waiting for the scripts or/and for a new iMac there is a simple way to post waether data to a Face Book page or group and to Twitter.
There is a "secret" personal email address associated to every Face Book account and it's possible post text and or pictures sending a a message to that address just with an email. Text MUST BE in Object field and not in text field. Picture could be in text field.

If there was a way to put every hour the weather data string (the same resulting from WC Twitter Uploader) as Object of an email and sent email automatically, weather data could be posted in Face Book page and frome there with a simple app to Twitter.

My AppleScripts have an email capability, probably the easiest would be for me to make a custom modification to the WC Twitter Uploader so that it emails the string instead of trying to upload it to Twitter directly.

However, I have no idea what you mean by "object" field?  Do you mean subject field by chance?

Cheers, Edouard  [cheers1]
Title: Re: What's an email "object" field? (Re: WeatherCat Scripts of 2013-12-01)
Post by: meteoperugia on September 04, 2014, 09:55:42 PM
My AppleScripts have an email capability, probably the easiest would be for me to make a custom modification to the WC Twitter Uploader so that it emails the string instead of trying to upload it to Twitter directly.

However, I have no idea what you mean by "object" field?  Do you mean subject field by chance?

Yes I mean SUBJECT. Sorry for mistake  ;)
Title: Okay, let me see what I can do. (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on September 05, 2014, 09:29:25 PM
Hi Frederico and WeatherCat AppleScript fans,

Yes I mean SUBJECT. Sorry for mistake  ;)

Okay, let me see what I can do on this one.  I might be able to clone the WC Twitter Uploader script into something that sends emails instead.

Cheers, Edouard  [cheers1]
Title: Re: Okay, let me see what I can do. (Re: WeatherCat Scripts of 2013-12-01)
Post by: meteoperugia on September 06, 2014, 08:31:20 AM
Okay, let me see what I can do on this one.  I might be able to clone the WC Twitter Uploader script into something that sends emails instead.

....my thousands of weather fans like to thank you!  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Bull Winkus on September 06, 2014, 09:36:27 PM
I might be interested in that as well, Edouard. My town has a Facebook page, and a lot of people follow it daily. It would be nice to give 'em a weather update once or twice a day, though I haven't thought out anything about the format.
Title: WC Twitter Emailer is born (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on September 06, 2014, 09:57:11 PM
Hi Frederico, Herb, and WeatherCat AppleScript fans,

....my thousands of weather fans like to thank you!  [cheers1]

I might be interested in that as well, Edouard. My town has a Facebook page, and a lot of people follow it daily. It would be nice to give 'em a weather update once or twice a day, though I haven't thought out anything about the format.

Well, I sliced, diced, and spliced some AppleScript from the various tools I've written over the years and I just got WC Twitter Emailer to send out its first Twitter string as an email.  Let me run it for a while to ferret out any additional bugs that I've missed and then I could write up the docs and let it loose on the world.

Frederico, if you are especially anxious to resume Twitter uploads, I could send you the script and minimalist instructions.  Alas, this script is about as easy to use as all the others!! (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/shrug_shoulders_confused.gif)

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: meteoperugia on September 07, 2014, 09:37:11 AM
I'm not so anxious as my my fans are!  :D :D :D

Send the script Edouard and I start playing with it to get the necessary confidence.
You're great! [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Blicj11 on September 07, 2014, 09:06:50 PM
I'm not so anxious as my my fans are!  :D :D :D

There are so many people that become unhappy when they see me coming that it makes me happy to hear that someone has actual fans. Good on ya, mate.
Title: Remember, . . . you are ASKIN' for it!!!! (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on September 07, 2014, 10:31:50 PM
Hi Frederico and WeatherCat AppleScript fans,

I'm not so anxious as my my fans are!  :D :D :D

Send the script Edouard and I start playing with it to get the necessary confidence.

Remember, . . . . . you are ASKIN' for it!!! (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/eek2.gif)

Okay, I'll assemble the files and try to give enough instructions to make the whole thing work.  But it is a bit complicated!!

Cheers, Edouard  [cheers1]

P.S. I'm starting to have problems because of Apple's code signing requirement with Mavericks.  I hope you won't have any problems because you are running Snow Leopard, but Randall has some trouble even opening the AppleScripts.  It is getting plenty complicated trying to distribute these scripts now-a-days.
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: meteoperugia on September 07, 2014, 10:57:24 PM
I'm not so anxious as my my fans are!  :D :D :D

There are so many people that become unhappy when they see me coming that it makes me happy to hear that someone has actual fans. Good on ya, mate.

I was just joking Mate. They aren't real fans. They are just around 500 people following weather updates for few years and now since I stoped to post data and forecast I receiving every day anoying messages asking for resume "the service".

Edouard could save my mailbox...  ;D
Title: Need your email Frederico! (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on September 08, 2014, 11:34:16 PM
Hi Frederico and WeatherCat Twitter fans,

I was just joking Mate. They aren't real fans. They are just around 500 people following weather updates for few years and now since I stoped to post data and forecast I receiving every day anoying messages asking for resume "the service".

Edouard could save my mailbox...  ;D

Alas, I can't save your mailbox without knowing your email address so that I can email you the scripts!  I sent you a Private Message with my email address.  Could you send me an email so that I can get these scripts to you?

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: meteoperugia on September 09, 2014, 09:31:08 AM
Sorry Edouard,
I've replied yesterday to your address xxx@mac.com and now with a PM......
....and I thought my address was visible in my forum profile.

 [cheers1]
Title: AppleScripts sent! (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on September 09, 2014, 09:47:40 PM
Hi Frederico and WeatherCat AppleScript fans,

My turn to be sorry . . . .  :-[

I've replied yesterday to your address xxx@mac.com and now with a PM......
....and I thought my address was visible in my forum profile.

Not sure why I didn't get your direct email.  Perhaps it got tagged as spam.  However, I got your PM and sent you a reply with all the AppleScripts.  Let me know if I gave you enough info to get them working!

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: meteoperugia on September 11, 2014, 09:39:32 AM
Edouard the Great!!! [cheers1]

Weather updating is running again as to FaceBook as to Twitter!

(http://i62.tinypic.com/28v86bs.png)

(http://i57.tinypic.com/veoqia.png)
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Steve on September 11, 2014, 03:29:40 PM
Edouard,

If you need another beta tester, you know where to send it. ;)

Steve
Title: Hurray!!! and code signing woes (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on September 11, 2014, 10:49:30 PM
Hi Frederico, Steve, and WeatherCat AppleScript fans,

Edouard the Great!!! [cheers1]

Weather updating is running again as to FaceBook as to Twitter!

Hurray!!  [tup]  This was looking like one of those uphill battles  [banghead], but after all, these AppleScripts were mostly developed on Snow Leopard and that is what Frederico is running right now.  So perhaps the script will run better than it can on later versions of OS X.

If you need another beta tester, you know where to send it. ;)

Beware of what you wish for . . . . . you might get it!! (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/clonk_head.gif)

The WeatherCat "sekret" agents . . . . . (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/spy_smiley.jpg)

have been struggling with another upgrade to WC Status Growler that is now locking horns with the latest version of Apple's code signing requirement.  I may be beaten and will have pay the tariff to be officially registered as an Apple developer so that I can sign these AppleScripts.  That could delay any releases . . . . sorry gang, but it just t'aint easy!  (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/D%27oh.gif)

Cheers, Edouard  [cheers1]
Title: Bug in WC Status Growler (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on February 06, 2015, 11:32:22 PM
Dear WeatherCat AppleScript fans,

All through my struggles with sensor errors on my station, I had noticed that my WC Status Growler AppleScript very rarely reported these errors.  Although when it did it would blast my display with lots of notifications.  I never had a chance to figure out why until now.  Alas, I am a victim of cutting and pasting some code a bit too quickly.  I forgot to change a parameter so that the sensor errors weren't actually being passed to the correct handler (function.)  I also found another stupid mistake that explains why the errors were occasionally being displayed with great frequency.

I'm struggling to finally get another release of these AppleScripts, but if you need to have WC Status Growler reporting correctly communication timeout errors, communication validation errors, or station sensor errors, let me know, and  I'll get a patch out to you.

Cheers, Edouard
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: xairbusdriver on April 29, 2015, 12:21:44 AM
Don't you hate those "stupid mistakes"?! I'm still looking for a way to make "smart" ones, however. If I ever get a site up, I'm sure I'll be stealing... using some of your scripting efforts! [tup]
Title: Re: Hurray!!! and code signing woes (Re: WeatherCat Scripts of 2013-12-01)
Post by: Blicj11 on April 29, 2015, 06:37:48 AM
Edouard the Great!!! [cheers1]

You are still Edouard the Great to us.
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: meteoperugia on April 29, 2015, 02:48:08 PM
About posting weather data from Weather Cat to Face Book and/or Twitter account that's the state of the art:

Unfortunately, from April 15 it is no longer possible (apparently) post automatically weather data using the script of Edouard. I've looked for information and alerts about it on Face Book help pages and in the web, but could not find anything. It just doesen't work anymore nor is longer displayed the secret address to which I sent the post in the specific section (mobile) of FB. The Edouard's script is operating normally an emails are delivered but Face Book does not allow to load with "post-by-email" option the contents of the object of an email (blank) sent by the script to a "secret" specific address associated to a FB page.
The script WC Twitter Emailer updated a FB page (and from there a Twitter account) every 2 hours with weather data collected by Weather Cat but now, after abandonment of 3rd party libraries for Twitter and the elimination of this shortcut via FB, I no longer have a way to upload weather data.
Further stations operated under Windows do regularly weather data adding photos or graphics too (not sure how) but with OSX seems to be currently a difficult procedure.

It may be desirable in the future the possibility of integrating Weather Cat with the most famous social network in order to post weather data at predetermined intervals .... but as long as I don't buy a new computer will not be able to hope even in this remote possibility that will involve only Weather Cat 2 and at the moment I can't install it with Snow Leopard OS. Never mind!  [blush]

Edouard is still the greatest!  [cheer]

Federico
Title: Sorry to hear that. (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on April 29, 2015, 10:30:22 PM
Dear Federico and WeatherCat Scripters,

Unfortunately, from April 15 it is no longer possible (apparently) post automatically weather data using the script of Edouard.

Sorry to hear that.  Unfortunately that is the real peril of all this "cloud computing" stuff.  I have always felt better when I was paying for something.  In that case companies have a greater incentive to take care of you since you can take your money somewhere else if they don't.

It may be desirable in the future the possibility of integrating Weather Cat with the most famous social network in order to post weather data at predetermined intervals .... but as long as I don't buy a new computer will not be able to hope even in this remote possibility that will involve only Weather Cat 2 and at the moment I can't install it with Snow Leopard OS.

Can't you manage to find an affordable way to get a new Mac?  You really are missing out on all sorts of neat features with WeatherCat 2.x and I can tell you that the WeatherCat "sekret" agents are busy testing Stu's latest updates.  So you really falling behind.

Edouard is still the greatest!  [cheer]

Well, thanks for the praise, but I can say I try to do the best I can!

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: xairbusdriver on April 29, 2015, 11:51:59 PM
Quote
Unfortunately that is the real peril of all this "cloud computing" stuff. I have always felt better when I was paying for something.
Sorry, but it has nothing to do with "cloud". And you are paying to use their "service". You are paying by giving them all the info about you and your habits/friends/purchases/etc. that they can get. And you are not their customer and never will be. You are their product, your data is what they sell to make money that pays hundreds of times over what you get. Since they have millions of "products" to sell, your individual value is extremely small. You can leave but your data will remain, practically forever, and they figure there are millions more like you buying new devices to connect to them. You don't want to be wanted by these social site? Too bad. [lol] [banghead]

Of course, that's just my opinion, and I'm in the extremely small minority. Don't bother trying to leave a message on my wall, or send me a tweet; I get lots of birds tweeting in my backyard, between the fences! [wink]
Title: Making good choices about "free" (Was: WeatherCat Scripts of 2013-12-01)
Post by: elagache on April 30, 2015, 11:28:51 PM
Dear xairbusdriver and WeatherCat observers of Internet economic trends,

Quote
Unfortunately that is the real peril of all this "cloud computing" stuff. I have always felt better when I was paying for something.


Sorry, but it has nothing to do with "cloud". And you are paying to use their "service".

No, the matter is more complex than that.  It depends on the services you use and how you use them.  In this case I was thinking about the transition from Mobile-Me to iCloud.  When I was paying for Mobile-Me, I thought I could demand better service for the things that mattered to me - mainly my dot-Mac email account.  Apple cannot make much of profit by scanning my emails at at least publicly claims they won't do that.  Apple has a real incentive to keep that promise because they make their money when I buy their products.  Knowing what I write on my emails isn't likely to give them much of an advantage in designing the next Mac and iPhones.

You are paying by giving them all the info about you and your habits/friends/purchases/etc. that they can get.

I think this also misses the mark.  Google makes money finding out what you are looking for on the web.  Well, I use Google for everything from finding out how to spell something correctly to looking for parts for my trusty 1965 Buick wagon.  So what Google can take advantage is very much under my control to some degree.  I'm not worried about Google trying to expand into the Buick parts market - indeed if they were stupid enough to do that - I'm all for it!  At the same time, I deliberately feed Google "misinformation."  I use Google as a rich-text to plain text converter when I need that.  Google is wonderful for converting rainfall values from inches to millimeters.  In the end you can decide if search engines are going to make much money on you or not.

Sites like Facebook and Twitter aren't making money on you directy, they are counting on you to be their "content providers."  That's why I - don't - participate in either.  I do have a Twitter account, but it is only used to send weather data and that was to debug my AppleScripts.  Once more you have a choice at to where you put your content for others to enjoy.  In my case a lot of my content ends up on forums that I feel are more focused on my interests and my contributions at least can be better received.

Phenomena like Facebook and Twitter are tapping into some deep psychological needs of especially younger people.  It doesn't take a psychologist to realize that loneliness is an epidemic and children of broken families are feeling especially vulnerable.  Unfortunately, all this is a folly in it is own right.  The fear of being completely alone leads to many shallow relationships and much turmoil that could be avoided.  Still given the choice of having 100 phony friends on Facebook seems better than to realize that - you don't have any real friends at all.

Edouard
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Randall75 on May 01, 2015, 12:07:19 AM
Hi Edouard and WC Scripters
 Edouard just write me a good AppleScript so I can winning the lottery and all will be happy [biggrin]


cheers
 [cheers1]
Title: Me first! (Was: WeatherCat Scripts of 2013-12-01)
Post by: elagache on May 01, 2015, 11:19:53 PM
Dear Randall and WeatherCat users not content with getting money the old fashion way - by earning it!

Edouard just write me a good AppleScript so I can winning the lottery and all will be happy [biggrin]

Sufferin' succotash, if I could write an AppleScript like that - I would be happy! (http://www.canebas.org/WeatherCat/Forum_support_documents/Custom_emoticons/yahoo.gif)

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Bull Winkus on May 04, 2015, 03:15:42 AM
Quote
Still given the choice of having 100 phony friends on Facebook seems better than to realize that - you don't have any real friends at all.

Edouard

Quite a statement, coming from someone who admittedly does not participate. You're over generalizing. While there may well be some who engage in the behavior of collecting friends, regardless of the lack of outside [Facebook] connection, my own observations indicate that the prevalence is otherwise. Anecdotally, out of a 144 count friends list on my own account, I'm hard put to find any for which there is no other connection than Facebook. They are all either family members or acquaintances from high school, work or the neighborhood. Further, judging by their friends list, it would seem that their activity in this respect is pretty much the same as mine.

As for the other argument, I don't think it was clear enough for me to understand. I don't see any difference in data sharing with a Facebook or equivalent and sharing data with WeatherUnderground. If FB set it up, I might consider it, since one of my FB friends is the city of Horseshoe Bend, where I live. The rest of the FB friends would have little or no interest in my local weather.

What might be interesting, if not useful, would be an Applescript that kept a list of all the winning numbers combinations, just for the big prize. Then was able to produce ranges of number combinations that had never won in a list. Might be more than Applescript could handle, though. And, the list is probably huge!

 [goofy] [goofy] [goofy] [wink]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: meteoperugia on May 04, 2015, 09:06:04 AM
Returning from sociology to computing applied to meteorology in this case I spoke about Face Book and Twitter impersonal account, where a few hundred people and institutions consulted daily weather updates and receiving tweets containing temperatures, summaries and short-term forecasts for local area.
The task to automatically update the data was originally done by Cronnix by some 3rd party libraries that suddenly stopped working.

Then at my request Edouard found a way with an Apple Script to send an email to a "secret" address of the Face Book page through a procedure called "post-by-email" posting the contents of the object of the email updating the weather data at regular intervals. Face Book by a specific application published on Twitter the same data.
From April 15 Face Book no longer offers this option. The emails are generated and sent by the script of Edouard regularly but the content of the object is not published by Face Book. The emails don't come back to me then I suppose the address is still valid but apparently has lost the option to post their contents.

OK, this is not the end of the world but I am sorry to interrupt this "service" I offered for years and that was used in addition to "friends" (sociologically 99% not even know who they are) also the local city council, hotels, tourist agencies, sports associations etc ...... My moment of glory!  [cheer]

It seems incredible that there can be an easy way to update your status automatically on the most popular social network by text strings as this is done continuously from any game or application annoying.

So sorry if sometimes I propose again this problem of social networks that I personally do not like so much but that if used appropriately (at least from my point of view) can have their little utility.

With the hope that sooner or later is found a solution to resume sending data on FB and Twitter, friendly greetings to everyone.  [cheers1]

Federico.

PS:
@Edouard: I also own a mac book pro but I sacrificed the old imac for Weather Cat and all other dirty jobs that need a desktop computer. Sooner or later I'll have to replace it with a new one (working 24/7 since 2006 it has had enough) and then I will be able to upgrade to Weather Cat 2 and everything else. ;)
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: xairbusdriver on May 04, 2015, 03:46:44 PM
meteoperugia, I am probably missing some facts, but it sounds like you are trying to use FB/Twitter as nothing more than a substitute for a mass emailing. Sure, FB/Twitter has a "prettier" interface, but it seems to have forced people to abandon simple, plain text, fast, and quite flexible emailing. Not to mention that it goes to exactly the people you want to reach, not just 'imaginary friends';)

My point is basically the same as Edouard's, you can't rely on a "service" for whom you are not a customer. Email still works, even if you "garbage it up" with images (embedded and remote), backgrounds, color, html, and animations. [tup]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Bull Winkus on May 04, 2015, 03:49:16 PM
Thanks for your reply, Federico. That explains a lot. I can understand why it is so upsetting now.

Perhaps if you appealed to FB, they would see that it is to their benefit to provide a universal method of access. I'm sure it is only security concerns which caused them to make the change in the first place.

You might consider writing your own custom Applescript, that would post directly to an open window through manipulation of the mouse interface. While the task would be a bit of a project, it is doable from a layman's point of view.

Until then, I suppose you have already notified everyone that the weather information is still available on your weather page with a provided link. Perhaps the message and link should be refreshed daily for a week or two to make sure that everyone sees it.
 [tup]

 [cheers1]

My sympathies,
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: meteoperugia on May 04, 2015, 06:47:54 PM
meteoperugia, I am probably missing some facts, but it sounds like you are trying to use FB/Twitter as nothing more than a substitute for a mass emailing. Sure, FB/Twitter has a "prettier" interface, but it seems to have forced people to abandon simple, plain text, fast, and quite flexible emailing. Not to mention that it goes to exactly the people you want to reach, not just 'imaginary friends';)

My point is basically the same as Edouard's, you can't rely on a "service" for whom you are not a customer. Email still works, even if you "garbage it up" with images (embedded and remote), backgrounds, color, html, and animations. [tup]

I could send every morning a post card too....   [lol2]

I'm joking but I don't really think that send an email and post a telegraphic Tweet is exactly the same. Or Twitter would not have had the success it has had (the same applies to face Book).
Maybe an email could be more complete without problem of 140 digit and could containing multimedia as pictures, video, tables, graphics and whatever you want. But a short message I think is more incisive for a quick for "disposable reading".
That people aren't imaginary friends but simply people living in the same area of my weather station and had freely chosen to follow a FB or Twitter account to be updated with latest weather information when and if they need it. Not so different from people registering to a mailing list in order to receive receive newsletter. Ultimately it is the same thing and I could solve doing as you suggest .... and maybe I will. It bothers me that there is a system to continue to do as I did before because the system worked and was also appreciated publicly. It more (and more) bothers me that other stations under Windows continue updating social platforms (I don't know how but I'm detecting about it  :D)
And unfortunately I'm not able to edit my own apple script.

It was nice while it lasted. Maybe it will be nice again when and if it could starting over. Meanwhile I can easily do without it  [tup]

Thanks for tips and hints and all the best.  [cheers1]

Federico

P.S.: YES, I've noticed that who needs weather data can reach my website with smartphone, pad or computer and see all informations and more.  [tup]
Title: Need a new Mac and . . . . (Was: WeatherCat Scripts of 2013-12-01)
Post by: elagache on May 04, 2015, 09:58:55 PM
Dear Federico, Herb, and WeatherCat armchair computer consultants,

@Edouard: I also own a mac book pro but I sacrificed the old imac for Weather Cat and all other dirty jobs that need a desktop computer. Sooner or later I'll have to replace it with a new one (working 24/7 since 2006 it has had enough) and then I will be able to upgrade to Weather Cat 2 and everything else. ;)

Well, you might find it very much in your interest to consider that upgrade sooner than later.  You never know what might be in the pipeline.

Quote
Still given the choice of having 100 phony friends on Facebook seems better than to realize that - you don't have any real friends at all.

Edouard

Quite a statement, coming from someone who admittedly does not participate. You're over generalizing.

Well, I have a story for you.  Recently I was walking around a local middle school that was hosting some sort of weekend event for kids.  Parents were coming and going and parking was difficult.  A family had parked just in front of me and stopped the car.  As I walked past I could see the husband and wife both glued to their respective smart-phones, checking on their messages.  I could see that there was absolutely no interaction between the parents, so none of these messages were family business.  Instead, these messages are individual for each of the parents.  Now this is a local school, they couldn't have traveled more than 20 minutes from their last opportunity to check these messages.  Nonetheless, both parents couldn't resist checking their own personal messages.    It is possible that the kid in back may have been doing the same - I couldn't see.  At least two people in that car were somewhere else from the event at hand.  If this is the family of the future, how long can it endure?

You may think I'm exaggerating, I fear that the situation is more extreme than I'm imagining.

Oh well, . . . . Edouard
Title: The time to upgrade has arrived! (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on May 18, 2015, 10:34:18 PM
Dear Federico and WeatherCat social media fans,

@Edouard: I also own a mac book pro but I sacrificed the old imac for Weather Cat and all other dirty jobs that need a desktop computer. Sooner or later I'll have to replace it with a new one (working 24/7 since 2006 it has had enough) and then I will be able to upgrade to Weather Cat 2 and everything else. ;)

Well, the time to upgrade that iMac has definitely arrived!!

http://athena.trixology.com/index.php?topic=1697.msg14796#msg14796 (http://athena.trixology.com/index.php?topic=1697.msg14796#msg14796)

Start shoppin' . . . . . .  :)

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: meteoperugia on May 19, 2015, 09:15:56 AM
Apparently I'm forced to do it. I'm out of excuses!!!  ;)

Stu sometimes seems distracted but is always very attentive...!!!  [lol2]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Blicj11 on May 19, 2015, 02:24:05 PM
Apparently I'm forced to do it. I'm out of excuses!!!  ;)

If you do it now, you can once again Tweet the weather to your thousands of weather fans (see http://athena.trixology.com/index.php?topic=1039.msg11547#msg11547).
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: xairbusdriver on May 19, 2015, 03:36:21 PM
Quote
If you do it now, you can once again Tweet
Oh, the unspeakable joy!! (http://i1327.photobucket.com/albums/u666/xAirbusDriver/Groaner_zpsjqr46wqw.gif) OTOH, if it's good enough for the POTUS, who am I to judge...
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: meteoperugia on May 19, 2015, 06:52:14 PM
Apparently I'm forced to do it. I'm out of excuses!!!  ;)

If you do it now, you can once again Tweet the weather to your thousands of weather fans (see http://athena.trixology.com/index.php?topic=1039.msg11547#msg11547).

I was clearly self-ironic about thousands of weather fans...... but my English is very bad.

Edouard sent me a link to new features of WeatherCat2 pushing me (was a joke about that 10yr old Higlander Mac)  to buy (finally) a new computer but if you really think I was in the Apple Store in the afternoon just to tweet  tomorrow morning TEMP and RH to the city, you're wrong..........I'll go there tomorrow!
Sorry, I'm ironic again........sarcasm is different and I don't like it. ;)

Peace'n'love ;)
Federico

P.S. About the second post: POTUS in italian means "alcohol addiction"....  but I guess Obama doesn't know it!  [cheers1]  [biggrin]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Blicj11 on May 19, 2015, 10:21:40 PM
Federico, your English is just fine. I already knew you were making a joke and I like your sense of humour.
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: xairbusdriver on May 20, 2015, 04:04:10 AM
meteoperugia, not only is your English perfect, but you seem to have a good grasp on certain politicos! [tup] OTOH, every President has that title for a few years! :P
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: xairbusdriver on July 25, 2015, 04:40:01 PM
Edouard, what's the best way to communicate with you about your scripts? This thread details Twitter, so other questions could easily get buried and difficult to find with 'Search'. OTOH, I don't want to litter the "WC Integration" section with detailed questions. As you may have guessed, I'm being supported by some car enthusiasts in northern CA who are trying to sabotage some people with station wagons. [bounce] [cheer] [banghead]
Title: Whatever you prefer. (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on July 25, 2015, 11:09:55 PM
Dear X-Air and WeatherCat scripters,

Edouard, what's the best way to communicate with you about your scripts?

It really doesn't matter.  This forum software always indicates when new postings are added to an old thread.  So you could ask them here.  If you prefer, you could start a new thread.

Alas, as already reported to you via PM, these scripts are very old and weary.  Also, the changes to OS X make it harder to run them.  I wish I could give them a major overall, but the "to-do" list never seems to get shorter.

As you may have guessed, I'm being supported by some car enthusiasts in northern CA who are trying to sabotage some people with station wagons. [bounce] [cheer] [banghead]

Why am I not surprised . . . . (http://www.canebas.org/WeatherCat/Forum_support_documents/Custom_emoticons/D'oh.gif)

Edouard . . .
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: xairbusdriver on July 26, 2015, 12:58:00 AM
Old? What's wrong with "Old"? [rolleyes2] I'm still a quite young 72!! [cheer]

OTOH, one of the scripts I was looking at does use "Properties" instead of your updating some to use a separate 'pref' file.

I am looking at the "WC AppleScript Tags Processor" script/app and wondering about deleting several parts (functions?). Namely, Twitter and even Growl functions (although I use Growl).

I'm particularly interested in finding out more about the "SED" or "sed" commands (no, I haven't Googled that, yet OK, SED/sed stands for "stream editor" used in command line systems (http://www.grymoire.com/Unix/Sed.html)). That looks like something that could run the simple "uptime" bash command. I can already generate a txt file with the results of that command, but I need a way to insert it into one of the pages WC updates. Perhaps that's what your "pseudo" tags do?

Frankly, that's one huge script! And it's been years since I tried to do anything with AS. [banghead] I'll study it a bit more and see if I can understand it before creating a short book of questions... [computer]

Anyway, no urgency, anytime tonight will be fine. :P [roll]
Title: Answers . . (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on July 26, 2015, 10:18:20 PM
Dear X-Air and WeatherCat Scripters,

OTOH, one of the scripts I was looking at does use "Properties" instead of your updating some to use a separate 'pref' file.

Virtually all of the scripts use Properties.  Those are values that are global and can be accessed by any of the Methods (Subroutines for former Fortran/BASIC types.)  It was the best way to share some values - especially configuration settings.

I am looking at the "WC AppleScript Tags Processor" script/app and wondering about deleting several parts (functions?). Namely, Twitter and even Growl functions (although I use Growl).

The Twitter functions do no harm if you just ignore them.  That script only uses Growl to indicate that it is launching and quitting.  That shouldn't bother you any.

I'm particularly interested in finding out more about the "SED" or "sed" commands (no, I haven't Googled that, yet OK, SED/sed stands for "stream editor" used in command line systems (http://www.grymoire.com/Unix/Sed.html)). That looks like something that could run the simple "uptime" bash command. I can already generate a txt file with the results of that command, but I need a way to insert it into one of the pages WC updates. Perhaps that's what your "pseudo" tags do?

Exactly, WC AppleScript Tags Processor has the job of collecting data from the other AppleScripts and making them available as tags just like WeatherCat tags.  It may seem complicated, but I think you'll find it easier to use the constellation of AppleScripts - so long as you follow the instructions!!


Frankly, that's one huge script! And it's been years since I tried to do anything with AS. [banghead] I'll study it a bit more and see if I can understand it before creating a short book of questions... [computer]

Unfortunately, these AppleScripts suffer from having been "added onto" and "added onto" to an extreme excess.  They started out as a personal need to be alerted when the communications failed between WeatherCat's predecessor and VP-2 console.  They got expanded in a rather hackish manner during a dark period for those of us long timers who remember "BW" (Before WeatherCat.)

I really like them and would feel naked if I had to run WeatherCat just by itself.  Nonetheless they are just worn out.  As soon as I find the time, they have to be rewritten.  If possible I want to convert them into WeatherCat plugins and provide a proper Mac user interface.

Oh well, back to wiring the headlights . . .

Cheers, Edouard
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: xairbusdriver on July 27, 2015, 12:21:23 AM
Quote
Unfortunately, these [fill in language] suffer from having been "added onto" and "added onto" to an extreme excess.
An indication of a self-taught "programmer"! [blush] [banghead] [biggrin] You should see some of the CSS files on my first large site! [lol] [computer] Kinda reminds me of having a committee communicating at night by smoke signals build a blind elephant... er, sumthin' like that...

Rewriting these is probably a good idea, anyway. I wonder how much longer Apple will continue support for AS or even Automator. Neither are cross-(any)platform, especially the driver of the Golden-Goose hardware sometimes called iDevices. Apple has dropped software that they decide no longer sells new hardware.
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Alan Rowley on October 14, 2015, 07:08:47 PM
Hi,

I am trying to make a status page, but I have absolutely no experience of Applescript. I have downloaded the WC Scripts and read the documentation, but I am totally baffled.

Can anyone give me step-by-step, idiot proof instructions on how to get this working? This is what I have got so far - click here (http://www.brackenhouse.net/weathercat/uploads/statusupdate.shtml).

Thanks - ALAN.
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: xairbusdriver on October 14, 2015, 08:29:51 PM
I'm sure Edouard will be along in a minute or two; he's the author of most of the AppleScripts. I'd also suggest taking a look at the WC Tags list in the manual (~page 193 and up). There may also be a "index.html" file in the WC download, it's simply the tags list in an html table display.

Looks like you have the general format for the "tags" on that page. Only problem is that they appear to be "tags" you created yourself (although I've not checked every one of them...). For example, "Uptime" info is available with a "UT$" tag, and it will automatically add "Uptime: " and the uptime converted to the format you have set in the WC prefs (no need for AS for that one). While your "WCupTime$" makes perfect sense to me (which should make you a little worried!) , WC is not quite that 'smart'. ;)

OTOH, perhaps the 'tags' I see on your page are what AS uses. I've never added any to my site, so I'm a complete NOOB in that area.
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Alan Rowley on October 14, 2015, 08:35:42 PM
Thanks for your comments XAir. The HTML content you see is lifted from the documentation with the AppleScripts. I know how to get the normal WCTags to display, but I don't understand how the ASTags work.

ALAN.
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: xairbusdriver on October 14, 2015, 09:03:56 PM
Quote
I don't understand how the ASTags work.
Ah! That requires a special, secret handshake that I'm not allowed to describe on this non-secure site. :o First, Edouard will send you a code that you will use to decipher the second code he'll send. After that, you'll have to set up a VPN with him and he can explain everything in detail. It will help if you have some knowledge of <old station wagons (http://athena.trixology.com/index.php?topic=392.msg9862#msg9862)>...
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Randall75 on October 14, 2015, 09:26:48 PM
Hi Alan
 You must have the Station_console.html in the same file the WC process the rest of your web pagesI have mine called WC Custom Web Templates folder
After they are processed they go to my WC Custom Web folder which is uploaded to my web site
Read the instructions very closely


Hope this helps


PS from what I'm seeing you have the html file in the wrong folder which in uploading to your site they need to be in the folder that WC processes first the they will be moved to the folder the the cat uploads


cheers


 [cheers1]
Title: Requires multiple AppleScripts (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on October 14, 2015, 11:10:03 PM
Dear Alan and WeatherCat scripters,

I am trying to make a status page, but I have absolutely no experience of Applescript. I have downloaded the WC Scripts and read the documentation, but I am totally baffled.

Can anyone give me step-by-step, idiot proof instructions on how to get this working? This is what I have got so far - click here (http://www.brackenhouse.net/weathercat/uploads/statusupdate.shtml).

Unfortunately, the best instructions you'll find are those documentation files that you'll find with the AppleScripts.  Alas, the scripts are "hobbyist grade" and have absolutely zero graphical user interface.  Most of them were written for my own needs and many were quickly written in a "dark time" before WeatherCat.

To make a status page, you need to get two AppleScripts working: WC Status Growler and WC Web Data Uploader.  The WC Status Growler AppleScript does the work of checking on WeatherCat and OS X and collecting values like how much memory WeatherCat is using.  These values are then made available to the WC Web Data Uploader AppleScript.  WC Web Data Uploader basically replicates the substitution process that WeatherCat does in templates for my AppleScript.  Because WC Web Data Uploader substitutes values for web tags and needs to do this before WeatherCat does any processing, there is a very specific arrangement of directories required.  All this needs to be done "by hand" or the system will not work.

In addition, since there is no user-interface, the preference files are actually tiny AppleScript programs.  So you need to get a basic familiarity of the Script Editor in order to configure any AppleScript.  The whole system of AppleScripts also has been "hard-coded" into a particular directory structure.  If you don't put all the AppleScripts in subdirectory of your user Applications folder, the AppleScripts won't work.  These locations have to be fixed because that's how the AppleScripts find the preference files and libraries of shared routines.  To make these AppleScripts work, you really need to keep everything as I have it on my computer.

As I've said this won't be easy to do and you'll have to struggle through with my lengthy detailed instructions to make all of this work.  If you really want to take this project on, I suggest that you start with one of the very easy AppleScripts to work on like WC Temperature Rising or WC Zambretti Forecaster.

You will probably need to install Growl because virtually all the AppleScripts depend on it and it is the closest these AppleScripts have to display system:

http://growl.info/ (http://growl.info/)

Lurking beyond all the other problems might be an issue with the Apple gatekeeper.  If it appears that you cannot run the AppleScripts at all, let me know.  You may have to "take ownership" of the code so that Apple doesn't think you are trying to run "hostile" AppleScripts on your Mac.

Sorry, as X-Air points out, I've been really overwhelmed by other things.  I have hoped to completely rewrite these AppleScripts as WeatherCat plugins, but I haven't had time to learn X-Code so that project remains for the not very near future.

Let me know if I can be of further assistance.

Cheers, Edouard
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Alan Rowley on October 16, 2015, 02:07:37 PM
I've abandoned the idea of using AppleScripts for a status page, mainly because I don't want to purchase and install Growl just to produce a page that will barely be seen. Looking at the scripts, I dare say that I could get the status page working, but it hardly seems worth the effort.

ALAN.
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: xairbusdriver on October 16, 2015, 08:55:21 PM
Looks like you've already "followed" my advice, even before I 'gave' it! Scary!!! [lol2]

Was there anything in particular (other than uptime) that you really want to display? Stu has very little to do and is always looking for features to add to WC! ??? :P Since WC is already generating the info on the "Status" screen, it should be extremely easy (for him) to make all that info available... [computer]
Title: Status info UNIX hacks (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on October 17, 2015, 09:13:53 PM
Dear X-Air and WeatherCat infomaniacs, . . .

Was there anything in particular (other than uptime) that you really want to display? Stu has very little to do and is always looking for features to add to WC! ??? :P Since WC is already generating the info on the "Status" screen, it should be extremely easy (for him) to make all that info available... [computer]

I'm sure it is possible to get all the information that is collected by WC Status Growler in a Cocoa application, but I'm not sure how easy it would be.  Some of the information already does come from WeatherCat via the AppleScript interface (things like WeatherCat up time.)  All the rest is obtained by various hacks of UNIX command line utilities that can be run from within AppleScript.  Since those utilities are part of open-source UNIX distributions, the source code is out there.  However, I would expect it to be quite a chore to ferret out the relevant bits.

If there some status information that people really want to have, perhaps indeed it would be worth making a feature request.  However, honestly I think we should allow the developers of the more popular web templates get the most of Stu's attention.  As Alan points out, very few web visitors will be much impressed with this sort of information.  The only situation where it might be useful is when trying to monitor your weather station while far from home.  In such cases you really need to have remote desktop access anyway.

Cheers, Edouard 
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: gioman on October 28, 2015, 02:30:43 PM
Hello Edouard,

I posted this over where you had your last comments on the Status Growler but repeat here in case you don't see the other.


Thanks to a system update OSX10.11.1 last night I lost your very helpful script, WC status Growler.    :(  I have never used these silly smileys but without the Status Growler this silly symbol is very appropriate. 

Any ideas on how to get this script to work again. Using the option key as someone mentioned a couple of years ago does not work.

Thanks heaps.

keith
Title: OS X security setting? (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on October 28, 2015, 10:35:09 PM
Dear Keith and WeatherCat scripters,

Thanks to a system update OSX10.11.1 last night I lost your very helpful script, WC status Growler.    :(  I have never used these silly smileys but without the Status Growler this silly symbol is very appropriate. 

Any ideas on how to get this script to work again. Using the option key as someone mentioned a couple of years ago does not work.

What happens when you try to launch the script?  I suspect that the problem is that El Capitan has once more changed the security settings and you'll need to get around that.

Something to try is to try opening the application with the Script Editor and saving it as just a script.  The open up the script that you just saved and save that as an application in a different location from where the original application was.  Finally, replace the old application with the new one you have just created.

I think there is a problem of OS X detecting that the file wasn't created on your Mac.  As such it suspects that this could be some sort of malware.  If you create an AppleScript application yourself, it should assume that it is what you wanted - it is your creation.

See if that get's you running once more.

Cheers, Edouard
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Steve on November 18, 2015, 08:57:35 PM
Edouard,

OK, I've screwed something up and can't recall how to fix it...

We had a power outage due to high winds, and my iMac restarted. Like every time it crashes hard like that, apps that were running come back up running. Some can be quit, and others need force-quit. That's typically the case with the running applescripts. So I quit everything, did a permissions and disk repair (that sure is different under ElCap) and restarted.

Everything works except the WC Applescript Tags processor, upon which several other scripts rely. I get:

(http://www.morrisgarage.com/skitch/WC_AppleScript_Tags_Processor-20151118-154757.jpg)

I can't quit it. I have to force quit. And it does the same thing again.

So I downloaded the AppleScripts package from the first post in this thread to get a new, unbusted copy of the Tags Processor. Except

(http://www.morrisgarage.com/skitch/CoreServicesUIAgent-20151118-155411.jpg)

Now, I know we've had this come up before on things. I think it is the app is not signed or something. Didn't we have me create the AppleScript application locally to get around this? If so, I can't recall where or how. Trying to open it in Script Editor yields the same error message as above, as does option-opening and command-opening. I can see the contents of the app, but not sure if what I need to create it locally is in there.

If you have a suggestion, I'd sure appreciate some ideas.
Thanks,
Steve
Title: Try making your own application (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on November 19, 2015, 01:08:39 AM
Howdy Steve and WeatherCat scripters,

OK, I've screwed something up and can't recall how to fix it...

 ;) . . . Good, when you remember how to fix please it let me know how you did it - because I wish I had good fix for this! . . .   [banghead]

Everything works except the WC Applescript Tags processor, upon which several other scripts rely.

Honestly, I think this is Apple's gatekeeper trying to save you from yourself.  Try downloading the file WC AppleScript Tags Processor.scptd and see if you can open that with the Script Editor.  I would expect that to work.  If it does, then save it as an Application on your computer.  Since you made it, it should allow you to run what you created.  I hope that will solve your problem.

If that doesn't work see if you can open up the file that purely the AppleScript: WC AppleScript Tags Processor.scpt.  If that one opens, you have a problem, there are some strings that need to be added because I made an attempt to make these AppleScripts localizable in other languages.  If you have no option but the pure script file, I'll explain to you how to add the language string files.

One of these days I really need to get on the Apple developer program, but this isn't the time still.

Cheers, Edouard
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Bull Winkus on November 19, 2015, 03:54:35 AM
Just a quick question, Steve. Did you try to restore it from Time Machine?
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Randall75 on November 19, 2015, 03:43:42 PM
How about : WC AppleScript Tags Processor prefs.scpt


cheers


 [cheers1]
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Steve on November 19, 2015, 06:18:47 PM
Just a quick question, Steve. Did you try to restore it from Time Machine?

(http://www.morrisgarage.com/misc/stuff/face_palm.gif)

How about : WC AppleScript Tags Processor prefs.scpt
Prefs are fine, the problem is with the application.



Honestly, I think this is Apple's gatekeeper trying to save you from yourself.  Try downloading the file WC AppleScript Tags Processor.scptd and see if you can open that with the Script Editor.  I would expect that to work.  If it does, then save it as an Application on your computer.  Since you made it, it should allow you to run what you created.  I hope that will solve your problem.

Yep, that fixed it. That's what I was thinking was already available in the AS package, as we ran into this a long time ago. Maybe that was one you sent me directly. I still needed to option-open it since it said it wasn't a signed application, but after than it's still running and not bouncing, and seems to be sending the correct data now.

Thanks again, Edouard, for these awesome bits of AppleScript that make WeatherCat so much more capable and flexible! I don't know that I would have been as enthusiastic about WC this long if it hadn't been for the things I can do with your scripts. Thank you!

Steve
Title: Really need a new release and rain! (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on November 20, 2015, 12:08:06 AM
Howdy Herb, Randall, Steve, and WeatherCat scripters,


Honestly, I think this is Apple's gatekeeper trying to save you from yourself.  . . . .

Yep, that fixed it. That's what I was thinking was already available in the AS package, as we ran into this a long time ago. Maybe that was one you sent me directly. I still needed to option-open it since it said it wasn't a signed application, but after than it's still running and not bouncing, and seems to be sending the correct data now.

Phew! (http://www.canebas.org/WeatherCat/Forum_support_documents/Custom_emoticons/phew.png)

I know these poor scripts are in desperate need of some attention, but this just isn't the time!

Thanks again, Edouard, for these awesome bits of AppleScript that make WeatherCat so much more capable and flexible! I don't know that I would have been as enthusiastic about WC this long if it hadn't been for the things I can do with your scripts. Thank you!

Well, your welcome but alas I just cannot seem to keep ahead of all the other things I need to do so long as I have to take care of things outside.  What I really need is for all this El Ni?o hype to turn into a long period of rain.  [rain2]  If I'm stuck in the house, it will be a lot easier to work on these scripts once more!

Cheers, Edouard
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Randall75 on November 20, 2015, 01:02:08 PM
Hi Edouard
 If I come and steal the wagon will that give you more  [biggrin]


cheers


 [cheers1]
Title: Request denied!! (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on November 20, 2015, 10:25:09 PM
Dear Randall and WeatherCat fans of old television, . . .

If I come and steal the wagon will that give you more  [biggrin]

 [biggrin] . . . In the voice of colonel Klink of the old Hogan's Heroes TV program:  "Request Denied!!" . . .  [lol2]

Cheers, Edouard  [cheers1]
Title: Another interference . . . (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on January 31, 2016, 10:46:07 PM
Dear WeatherCat fans of my AppleScripts, . . . .

Ever wonder why I can't ever seem to find any time to work on these AppleScripts anymore?

Does this answer your question!

(https://canebas.smugmug.com/House-tlc-and-upgrades/Miscellaneous-yard-work-photos/i-dPGWsXR/0/XL/Gopher%20activity%20under%20elm%20-XL.jpg)

We are headed for the first significant dry spell in a while and guess what shows up looking for dinner!

When it comes to yard work, if I didn't have bad luck I wouldn't have any luck at all . . . . .  [banghead]

Grumble, grumble, grumble . . . . Edouard (http://www.canebas.org/WeatherCat/Forum_support_documents/Custom_emoticons/rant.gif)
Title: Odd problem with WC Storm Monitor (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on May 08, 2016, 11:14:05 PM
Dear WeatherCat Scripters,

Quite mysteriously, my WC Storm Monitor  AppleScript stopped all reporting.  All Growl notifications, emails, and even log file entries stopped for actual weather events.  That AppleScript uses a single handler for all weather related information displays.  The information for launching and quitting the AppleScript was working fine.  So it seemed likely it was that handler that was to blame.  I noticed that I had forgotten to clear one variable as a "global."  This isn't strictly necessary because AppleScript is a loosely typed language and the variable in question was indeed global - it wasn't declared locally in the handler.

Adding the global declaration caused the handler to start working once more and today we got a 0.01" of rain that the AppleScript now properly reported.  So if anyone is still using this AppleScript and has it mysteriously stop working, let me know - I have the fix.

Cheers, Edouard
Title: Re: WeatherCat Scripts of 2013-12-01
Post by: Randall75 on May 08, 2016, 11:39:44 PM
Hi Edouard
 Mine did about a week ago to get it running again I had to delete and reinstall all of it but still a can't divide by zero error


cheers
 [cheers1]


So what is the fix

Title: Which script is giving error? (Re: WeatherCat Scripts of 2013-12-01)
Post by: elagache on May 09, 2016, 11:08:07 PM
Dear Randall and WeatherCat scripters,

Mine did about a week ago to get it running again I had to delete and reinstall all of it but still a can't divide by zero error

Which script is giving you a divide by zero error - WC Storm Monitor?   Does it happen when you first launch it or later on?  If you give me a little more info perhaps I can figure out what is going wrong.

Cheers, Edouard