I have been playing with Twitter’s API for a while now and have a few bots that provide regular updates. My favorite functionality come from two “sister” accounts, @charlestonguide and @myrtle_beach. This morning, I added offshore buoy reports to both accounts.
They have already been giving weather observations and tide predictions for a while. They both have several followers.
It was a fun little project to get the latest buoy observations from NOAA’s National Data Buoy Center. They offer an RSS feed, but I chose to scrape data from their txt data files since the RSS feed only offers the latest observation (as far as I noticed; there may be a way to manipulate it, but I felt like playing around with cURL).
There were some fun challenges like writing a function that turned wind direction from degrees to compass direction.
Anyway, I hope someone out there in the Twitter world appreciates the time I’ve spent playing with these two accounts.
Comments
No comments yet.
I appreciate your feedback. Comments are moderated. Email is required but won't be printed. Include your website if you have one.



