whird.jpope.org cover image

WunderBot

To continue my recent work with the Wunderground api, I have now hacked together a new StatusNet bot plugin. With this plugin, you can ask the bot for the current weather conditions with just the word 'weather' and the five digit US zip code of your choice. So long as Wundergound recognizes the zip code, it should return some basic details. This plugin is currently active over on my Matrix instance, just ping @Niobe. @jpope It is currently Overcast and feels like 64.0 F (17.8 C) in Jefferson City. The humidity is 58% and the wind is From the NNE at 2.9 MPH Gusting to 5.8 MPH. #cloudy http://www.wunderground.com/US/MO/Jefferson_City.html Niobe (niobe)'s status on Monday, 17-Sep-12 22:18:02 CDT - matrix.jpope.org I have looked to do this before but, hadn't had much success. Mostly, my lack of proper coding skills has usually been my holdup. Previously, I found a bot on identi.ca (source) that already did what I've done here, except the execution is quite different. That bot (which currently does…

Weather Bots

This has been me off and on the past couple of days: Playing with bash and the wunderground api. Jeremy Pope (jpope)'s status on Sunday, 02-Sep-12 10:13:33 CDT - micro.jpope.org My Matrix bots have been providing me with a few weather details ever since I set that StatusNet instance up. I have a little bash script that will pull the data on a set schedule via cron. Previously, I had been using google's "secret" weather api as it pulled quickly, is easily parsed, didn't require an account and had just the few details that I wanted. Judging from the error message I get when attempting to open the xml feed in my browser, they've blocked my IP and or domain: After a quick search, it turns out the api was shut down. This has also had an effect on my XMPP jsonbot as it uses the google feed for it's weather as well. :( So, now it was time to find another place to pull from. I prefer to pull from an api as opposed to scraping a page somewhere. I really hate having a script fail due to the page being scrape…

Weather Archive

Some time back, I had an archive of the full resolution National radar images. This had started because of me having a script to update my OpenBox desktop wallpaper with the current image every 10 minutes. At one point, I had over 6 months worth of images (at ten minutes apart) which made for a quite cool slideshow. Anyway, at some point, I decided to stop archiving those images and even deleted the whole archive. I recently decided to start this up again but, this time to keep them available for anyone else to (maybe) find some use out of. First things first, I wanted a super simple dynamic photo gallery that I could set up on my web server and came across Bizou. For the most part, this gallery is perfect for this archive due to the fact that the gallery 1) has minimal setup and config 2) is dynamic. I did load a couple of the plugins available for the gallery. Aside from that, it maintains itself. Perfect. Now to populate the gallery. Bash scripts galore to pull the images down, convert the images (if neces…

Curse the Weather - weather for your terminal

Stupid F#@%!n weather… Recently, on a fresh install of <Debian, Fedora, … , was prior to my Arch install> I went on a search for a lightweight weather program. After some time with the Google search box, I came across Curse the Weather. CTW is basically a set of python scripts that pull the weather from weather.com and feed the output to a ncurses frontend. Not much to it but it works great. Just fire up your preferred terminal and you’ve got a nicely formatted weather forecast and current conditions. And seeing that the project doesn’t seem to have any activity since 2004, it’s nice to see that everything still works. Well, not initially if you’ve got python3 installed as I do in my Arch install. But, I ran each of the python scripts through the 2to3 converter and voila, it now works with python3. For 2to3 usage, check this page at python.org. I also created a .desktop file so I’ll show in my menu and/or use as a launcher from the panel. My .desktop file (which uses a faenza-dark icon for t…