Author Topic: Using php and crontab to send weather updates to Twitter!  (Read 1387 times)

0 Members and 1 Guest are viewing this topic.

Offline WeatherGoose

  • Forecaster
  • *****
  • Posts: 603
  • LIVE from the Southern Sierra Nevada!
    • Sierra Springs Village - MADIS Station D2149 - Bass Lake Ca.
Using php and crontab to send weather updates to Twitter!
« on: January 04, 2010, 03:18:57 PM »
Took me all day yesterday to put all the pieces together, but I was finally successful in my efforts to get my LWC weather data uploaded on a timed schedule to Twitter and from there on to my facebook account.

I used a combination of a .php script and crontab.  Crontab handles the scheduled uploads on a 30 minute schedule.  I tried shorter intervals, but it just seemed too "spam-like" to suit my tastes.   I figured a 30 minute interval was a good middle ground.  If visitors want more rapid weather updates from my station, they can always go to my website where I have 2 second rapid fire updates on one page and 2 minute intervals on my main home page.

You can check out how this Twitter thing is working here:

https://twitter.com/D2149

And on my facebook page:

http://www.facebook.com/profile.php?ref=profile&id=100000573317295


HARDWARE: Davis VP2 wireless w/daytime FARS - Logitech Quickcam Pro 9000 - Apple 24" iMAC - OSX 10.6.2
SOFTWARE: Lightsoft Weather Center for Mac OSX -  EVOcam 2.6.5