Arduino Temperature Sensor – Winter is Coming

This blog post is old and the code is not up to date. Here’s a tutorial on how to connect the temperature sensor to your arduino. To send sensor data to the internet you need to use a service like COSM.

I’ve started tinkering with Arduino. My first real project was to connect a DS18B20 temperature sensor to Arduino. I have an ethernet shield on the arduino that uploads data to

The temperature sensor is protected by an old film case and is right outside my window. I wanted to have a web site where I can check the outside temperature so I found a small jQuery script that takes JSON data from my Pachube feed and outputs it on a small web site.

Here’s the pachube feed, and here’s the mobile web site. Get the code here.

Prototype of my text based adventure released

Text Adventure Time!

The past months I’ve been wanting to learn a bit more about web programming, so I set out to make some sort of game. What I thought would be easy was to make a text based adventure game. It didn’t turn out to be easy, but I’ve learnt a lot.

The game is very similar to the old text based adventure games, but the difference is that you don’t do any typing while playing. You click and drag items to interact. It makes it easier to play the game (people have less patience nowadays) and it is easier to play it on mobile devices.

My plan is to develop the game a bit more with feedback from the internets and also make a website with a WYSIWYG editor so people can create their own stories and share them with friends.

The game uses regular HTML and CSS for displaying the stories. The functionality is javascript (jQuery). Stories are stored in a mySQL database and are transmitted via JSON. The community web site will be built using CodeIgniter.

Oh, I almost forgot… you can play the game here.

mySQL dump path and MAMP

When moving this site, I used WordPress DBmanager plugin to back up my database. I had trouble finding the path to mySQL and the mysqldump.

The path to the “files” are as follows.

To mysqldump: /Applications/MAMP/Library/bin/mysqldump
To mysql: /Applications/MAMP/Library/bin/mysql

Hope it will help someone 🙂