This is a C++ tictactoe game that I’ve been working on, it should compile on Windows, Linux, or OS X. You can grab the code from the svn by running
or by going to http://code.4ndr3w.me/trac/projects/browser/tictactoe
After you have it downloaded just run ./build.sh and it will compile! For Windows I tested it using Dev-C++, but it should also work in Visual Studio.
Enjoy!
Update: The SVN is down because of the server moving to a virtual machine in ESXi. This message will be removed once I get around to getting the general projects repository up again.

Most people watch the news or go to their school’s site to check for school closings, but that requires getting out of bed, turning on the TV, etc. After looking at my school’s site I noticed when they post a closing/delay, it’s in a div with the id “breakingnews”. One Google search later, and I found the simple_html_dom parser for HTML parsing in PHP, then just whipped up this bit of code to detect a closing/delay.
So, that code will make the text a number. Then we need a way to visually look at that data, I used a Arduino attached to a servo to point to Full Day, One hour, two hour, or closed. ( I’ll post a picture of my setup soon ). To get that data to the Arduino, I used a Python script with the PySerial module. The code looks like this:
Then that just sends the data from check.php to this program running on the Arduino:
This code was tested on Ubuntu, but by modifying the serial device string and downloading PHP, Python, and PySerial, it should work on Windows. If you’re running it on a debian-based OS ( like Ubuntu ) just install python, php5-cli and python-serial. Then run the python script and it will check every minute.
Note: You’ll need to edit the PHP script to work for your school district.
Before running: You should use the code in this zip file, otherwise the indents of the Python file won’t be right, and you’ll get an error. Click to Download If you have trouble, just read some of the comments in daemon.py.
Verified to on OS X and Linux, also will run with some edits on Windows.