Thermostat/QuickStartGuide

From IcedTea

Jump to: navigation, search

Thermostat Quick-Start Guide (Local Development)

This guide is intended to get Thermostat set up on your machine as quickly as possible.

Steps:

0. Obtain required build dependencies For Fedora:

 $ sudo dnf install mercurial maven mongodb mongodb-server java-1.8.0-openjdk libsecret-devel make gcc gtk2-devel autoconf automake libtool

1. Obtain latest development thermostat:

 $ hg clone http://icedtea.classpath.org/hg/thermostat

2. Build thermostat (run command inside thermostat directory THERMOSTAT_DIR)

 $ mvn clean integration-test

After this you can now use Thermostat:

Run web storage and agent and gui (will run the setup wizard)

 $ ${THERMOSTAT_DIR}/distribution/target/image/bin/thermostat local

Alternatively use mongodb directly:

Reset from previous http-based setup

 $ rm -rf ~/.thermostat

Move away webapp which tells the automatic setup to directly use mongodb

 $ mv ${THERMOSTAT_DIR}/distribution/target/image/webapp{,.away}

Run mongodb storage and agent and gui (will run the setup wizard)

 $ ${THERMOSTAT_DIR}/distribution/target/image/bin/thermostat local
Personal tools