Xbox Live Traffic Lights
The best time to play Xbox Live is when all your friends are online, but whats the best way of checking, you could turn on the Xbox, log on to the website or use the iPhone app, but this requires effort and you can still miss when your friends come online.
So I came up with the Xbox traffic lights, now at a glance you can see when the best time to play Xbox. An Arduino with Ethernet shield checks every five minuets to see if anyone is online.
The biggest problem I had was getting the user data off Xbox Live, as it is a frustratingly closed system, but eventually I found a usable api from xboxleaders.com, the only problem is that it only has public information, so it wont work with your friends that have hidden online status. ( Hidden status will always show a “1” in the api call, giving you a false green light).
The Arduino then loads the API for each player, then using the text finder library it finds the online status( a “1” or “0”), if the player is online it incenses the online status variable by one. At the end of the loop the Arduino will turn on one of the lights using that veriable: Zero players online = RED light, One player online = ORANGE light, Green = two or more players online = GREEN light. obviously this can be changed to suit.
Once it was all working on my EtherTen I build a more permanent solution using WIZnet W5100, it has the same chip as the official Ethernet shield but 1/2 the cost. So I don’t fell so bad putting it in permanent projects.
Download code: here
The three analog pannel meters that you can see, I will do another blog post about, but they are my download speed, download % and total data used for that month.
13 Notes/ Hide
- bthinkr reblogged this from handyahardware and added:
- a-creepy-weirdo reblogged this from fyfps
- mobyfreerunner likes this
- 74jailbreaker likes this
- almighty-cristogan likes this
- el-dark-knight reblogged this from fyfps
- fyfps reblogged this from handyahardware
- newmonarchy reblogged this from handyahardware
- newmonarchy likes this
- mrel91n reblogged this from handyahardware
- handyahardware posted this