Configure it for your password/wifi settings.
Set the REST configuration to Open.
Upload the thermostat.ino sketch
The Yun does not come with all the components we need to run the Thermostat.
First, install the python installer pip.
opkg update # updates the available packages list opkg install distribute # it contains the easy_install command line tool opkg install python-openssl # adds ssl support to python easy_install pip # installs pip
Second, install the python dependencies:
pip install bottle # Used for serving the web page pip install paste # Server backend needed to run parallel web components with bottle
Install the thermostat files
ssh email@example.com mkdir -p /usr/local/bin/thermostat scp -r linux/* firstname.lastname@example.org:/usr/local/bin/thermostat/
Run the thermostat from startup:
add this line to the /etc/rc.local on your Arduino Yun:
(sleep 30; /usr/local/bin/thermostat/thermostat.sh)&
This will run after the wifi has connected. It will wait 30 seconds (the sleep) and then run the thermostat app in the background (see the '&').