|
RecentChanges TextFormattingRules AllWikiTopics OrphanedWikiTopics ToDoWikiTopics WikiLockList RSS Export2HTML WikiSearch SetUsername StartingPoints Home |
Heatmiser
Install and basic configuration of the Heatmiser softwareAdapted for server style installation from: http://code.google.com/p/heatmiser-wifi/wiki/InstallationBasicGet the software required to get the Heatmiser software: $ sudo apt-get updateGet the Heatmiser software: $ cd /usr/shareInstall required modules for the Heatmiser software to run: $ sudo apt-get install -y libxml-simple-perl libjson-perlAnswer yes to any questions about whether the tool should configure itself and choose mirror sites automatically Test with command line parameters: cd heatmiser-wifiConfigure, and test again: $ vi /etc/heatmiser.conf# These settings are used by the Perl software for connecting to the Heatmiser thermostatFor all configuration options see: http://code.google.com/p/heatmiser-wifi/wiki/ConfigurationOptions $ bin/heatmiser.plRun as DaemonGet the software requireed to run as a daemon:$ sudo apt-get updateCreate MySQL account $ mysql -u<ROOT_USER> -p<PASSWORD>mysql> CREATE DATABASE heatmiser;Test connection to MySQL: $ mysql -u heatmiser heatmisermysql> SHOW DATABASES;Optionally add configuration options: $ vi /etc/heatmiser.conf# These settings are used by the Perl software for connecting to the MySQL databaseFor all configuration options see: http://code.google.com/p/heatmiser-wifi/wiki/ConfigurationOptions Install daemon script and init.d script: $ sudo ln -s /usr/share/heatmiser-wifi/bin/heatmiser_daemon.pl /usr/local/bin/heatmiser_daemonStart service and test: $ sudo service heatmiser_daemon startMay 27 11:29:46: >>>> heatmiser_daemon started >>>>$ mysql -u heatmiser heatmisermysql> SHOW TABLES;Set daemon to start at boot time: $ sudo update-rc.d heatmiser_daemon defaults Adding system startup for /etc/init.d/heatmiser_daemon ...Set the logs to rotate: $ sudo vi /etc/logrotate.d/heatmiser/var/log/heatmiser {
monthly
rotate 12
compress
delaycompress
missingok
notifempty
create 644 root root
}Configure webserverAdapted for my style of hosting from http://code.google.com/p/heatmiser-wifi/wiki/InstallationWebInterfaceGet the software requireed to run as a daemon: $ sudo apt-get updateEdit any DNS configuration required and reload DNS server. Create web hosting virtual sites. $ cd <LOCATION>/sites/<SITE>$ ln -s /usr/share/heatmiser-wifi/html/index.html <HOST>/heatmiser/index.htmlWhich should leave you with this layout: $ tree <HOST>Edit Apache config file (where ever you maight have it): <virtualhost *:80>Test in a web browser. External temporatureAdapted from http://code.google.com/p/heatmiser-wifi/wiki/InstallationWeatherFollow the above instructions to select a weather source Test with: bin/heatmiser_weather.pl -w <SERVICE> -k <KEY> -g 3672 <LOCATION>Add configuration options: $ vi /etc/heatmiser.conf# These settings are used by the Perl software for connecting to the Weather sourceFor all configuration options see: http://code.google.com/p/heatmiser-wifi/wiki/ConfigurationOptions Restart the daemon: $ sudo service heatmiser_daemon restartTest that data is arriving in the MySQL database: $ mysql -u heatmiser heatmisermysql> SELECT * FROM weather;Set the timeAdapted for server style installation from: http://code.google.com/p/heatmiser-wifi/wiki/InstallationTimeSyncSet the time manually: $ TZ="Europe/London" bin/heatmiser_time.pl -vSet the time every hour (in case it drifts and for DST changes): $ sudo vim /etc/cron.d/heatmiser_time1 * * * * root TZ="Europe/London" /usr/share/heatmiser-wifi/bin/heatmiser_time.plHeatmiser is mentioned on: StartingPoints |