Hi Stu!
No, all settings on Facebook and twitter are fine and if I post a message @Twitter after few seconds it will be repeated @FB. The problem is about permissions for post messages @ Twitter from third party program/script because API was been upgraded from ver 1 to 1.1 and procedure of authentication is different now.
About Facebook function "post from email" if you send an email message to a definite Facebook address it will be post in your FB page BUT NOT the body text of the message but just the TITLE so all my message alert from WeatherCat to FB address are just "HEAVY RAIN ALERT" or " ICY ALERT" (etc) WITHOUT weather data that are present on the text body.
I wondering if there is possibility to add even if just 1 weather data to the email object in order to see "HEAVY RAIN ALERT. RAIN RATE IS 100mm/h at [time and date]".
Hi Eduard,
I'm already using your script (working very well!) to send to Twitter a string with a summary of weather data every hour. I wish I could create different scripts with different strings based on webtags so I can send hourly data, daily data, weekly and monthly data, weather forecast, webcam image etc ... at times and dates scheduled (by Cronnix?).
Before I had 8 different scripts that regulated by Cronnix sent data to Twitter (which then sent them to Facebook) at intervals of 1 hour, 12 hours, 24 hours, 1 week and 1 month.....
This for example is the script that sent the monthly summary on the last day of each month
#!/usr/bin/python
import sys
import tweepy
CONSUMER_KEY = 'xxxxxxxxxxxxxx'
CONSUMER_SECRET = 'xxxxxxxxxxxxxx'
USER_TOKEN = 'xxxxxxxxxxxxxxxxxxx'
USER_SECRET = 'xxxxxxxxxxxxxxxxxxxx'
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(USER_TOKEN, USER_SECRET)
api = tweepy.API(auth)
statusUpdate = "Dati Mensili: MAX STAT$TEMPERATURE:MAX:THISMONTH$C il STAT$TEMPERATURE:MAX:THISMONTH:TIME$*MIN STAT$TEMPERATURE:MIN:THISMONTH$C il STAT$TEMPERATURE:MIN:THISMONTH:TIME$*Vento STAT$WINDSPEED:MAX:THISMONTH$ WINDSPEEDUNITS$ il STAT$WINDSPEED:MAX:THISMONTH:TIME$*Pioggia STAT$RAIN:TOTAL:THISMONTH$ RAINUNITS$"
statusdate = statusUpdate[140:]
api.update_status(statusUpdate)
Following script sent a webcam image to twitter (and Facebook later) at 7.00, 12.00 and 18.00…..
#!/usr/bin/python
import sys
import tweepy
CONSUMER_KEY = 'xxxxxxxxxxxxx'
CONSUMER_SECRET = 'xxxxxxxxxx'
USER_TOKEN = 'xxxxxxxxxxxxxxxxxxx'
USER_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(USER_TOKEN, USER_SECRET)
api = tweepy.API(auth)
statusUpdate = "http://www.meteoperugia.altervista.org/webcam800.jpg"
statusdate = statusUpdate[140:]
api.update_status(statusUpdate)
AppleScript you're talking about (the tweaked on!) will be exactly what I need!
Think about your (fantastic) GhostBuster car and when you'll be free let me know if there are news about scripts. There is no hurry.
Thanks everybody guys. Glad to meet you again
I offer a pint of Imperial IPA to each of you. I brew it according to BrewDog Scottish recipe and I know you'd like it ..... although those of brewdog are honestly better than mine!
That's the label