Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
livebox:hah [2011/12/18 19:34]
brett
livebox:hah [2015/03/13 04:24] (current)
brett Git hub move
Line 13: Line 13:
   * Data logging to [[pachube]]   * Data logging to [[pachube]]
   * Power use monitoring/​graphing from a [[http://​www.currentcost.com|Current Cost]] unit   * Power use monitoring/​graphing from a [[http://​www.currentcost.com|Current Cost]] unit
-  * Easy to control remote RF mains sockets ([[http://​www.byebyestandby.com/​|Bye Bye Standby]] & [[http://​www.homeeasy.eu/​home.php|HomeEasy]])+  * Easy to control remote RF mains sockets ([[http://​www.byebyestandby.com/​|Bye Bye Standby]] & [[http://​www.homeeasy.eu/​|HomeEasy]])
   * Seamlessly integrated with [[http://​www.jeelabs.org|JeeNodes]]   * Seamlessly integrated with [[http://​www.jeelabs.org|JeeNodes]]
 +  * Control via [[http://​www.homeautomationhub.com/​content/​building-android-interfaces-using-corona|Andriod]] devices
   * Open control protocol ([[http://​www.xapautomation.org|xAP]])   * Open control protocol ([[http://​www.xapautomation.org|xAP]])
   * Input sensing (upto 4 switch inputs) as well as output driving (upto 4 relays) ​   * Input sensing (upto 4 switch inputs) as well as output driving (upto 4 relays) ​
-  * Free, Open Sourced, [[http://code.google.com/p/livebox-hah/|HAH firmware]]+  * Free, Open Sourced, [[https://github.com/dbzoo/hah]]
   * User scripting language for customisation of operation   * User scripting language for customisation of operation
   * Cheap to run. Only uses 6 Watts of power   * Cheap to run. Only uses 6 Watts of power
Line 39: Line 40:
 | {{:​livebox:​control-hah.png?​400}} | | {{:​livebox:​control-hah.png?​400}} |
  
 +Also, control from [[http://​www.homeautomationhub.com/​content/​building-android-interfaces-using-corona|Andriod]] devices
  
 +^ Mobile App ^
 +| {{:​livebox:​xapuiv2_1.png?​400}} |
 ====== Architecture ====== ====== Architecture ======
  
Line 53: Line 57:
 {{block_diagram.png|}} {{block_diagram.png|}}
  
-  * [[hah#​xap_hub|xap-HUB]] - allows multiple xAP devices to be controled ​from a server. In this case the Livebox.+  * xap-HUB - allows multiple xAP devices to be controlled ​from a server. In this casethe Livebox.
   * [[xap_adapter|xap-adapter]] - convert the AVR menu interface into an xAP protocol and interfaces with the RS232 port.   * [[xap_adapter|xap-adapter]] - convert the AVR menu interface into an xAP protocol and interfaces with the RS232 port.
-  * [[xap_currentcost|xap-currentcost]] - USB/Serial interface to the [[http://​www.currentcost.com/​|CURRENTCOST]] electricity monitor+  * [[xap_currentcost|xap-currentcost]] - USB/Serial interface to the [[http://​www.currentcost.com/​|CURRENT COST]] electricity monitor.
   * [[sms|xap-sms]] - USB/Serial interface via a DLR-3 cable to a Nokia 7110 mobile phone.   * [[sms|xap-sms]] - USB/Serial interface via a DLR-3 cable to a Nokia 7110 mobile phone.
-  * [[pachube|xap-pachube]] - Feed xAP BSC data to the [[http://​www.pachube.com|PACHUBE]] data aggregation service +  * [[pachube|xap-pachube]] - Feed xAP BSC data to the [[http://​www.pachube.com|PACHUBE]] data aggregation service. 
-  * [[google_calendar|xap-googlecal]] - Trigger xAP event from Google calendar+  * [[google_calendar|xap-googlecal]] - Trigger xAP events ​from Google calendar.
   * [[twitter|xap-twitter]] - Remote control with Twitter.   * [[twitter|xap-twitter]] - Remote control with Twitter.
-  * [[hah_plugboard_v2|xap-plugboard]] - [[http://​www.lua.org/​|Lua]] based scripting engine +  * [[hah_plugboard_v2|xap-plugboard]] - [[http://​www.lua.org/​|Lua]] based scripting engine. 
-  * [[iserver]] - xAP/TCP gateway for running a wi-fi based touch screen for remote control.+  * [[iserver]] - xAP/TCP gateway for running a Wi-Fi based touch screen for remote control.
    
 All components use the file /​etc/​xap-livebox.ini as the universal registry for their settings. ​ This is in "​windows ini" file format using [[http://​code.google.com/​p/​minini|minini]] the INI file parser. All components use the file /​etc/​xap-livebox.ini as the universal registry for their settings. ​ This is in "​windows ini" file format using [[http://​code.google.com/​p/​minini|minini]] the INI file parser.
  
-====== WebServer ====== 
  
-The webserver is written in C using  +{{tag>​livebox xap andriod}}
-  * embedded web server from [[http://​www.koanlogic.com|KloneLogic]] +
-  * [[http://​code.google.com/​p/​minini|minini]] the INI file parser +
- +
-The web server listens on PORT 80 from here you can control most of the Home Automation controller features. +
- +
-{{:​livebox:​info.png|}} +
- +
-To access any other page but **info** you will need to authenticate. ​ Login in as **admin** you can enter anything as the password and it will be accepted. ​ Not until the admin user password has been setup will it be validated.  +
- +
-{{:​livebox:​login.png|}} +
- +
-[[hah_webserver|More screenshots]] +
-  +
- +
-===== Settings ===== +
- +
-There are several settings in the /​etc/​xap-livebox.ini file that directly affect the webserver or the Livebox itself. +
-==== Network / Services ==== +
- +
-The network section defines what additional services will be enabled and the ports used, whether DHCP or STATIC IP configuration is setup, if the two Ethernet ports should be bridged together into a Switch configuration or addressed individually,​ the domain name of the Livebox and the NTP time server to stay in sync with. +
- +
-{{setup1.PNG}} +
- +
-<​code>​ +
-[network] +
-lan_proto=dhcp +
-hostname=hahbox +
-config_bridge=1 +
-ether_0=00:​07:​3A:​11:​22:​00 +
-ether_1=00:​07:​3A:​11:​22:​01 +
-domain= +
-ntp_host=uk.pool.ntp.org +
-</​code>​ +
- +
-The power LED indicator, although it appears on the SETUP page, has its own section. ​ This reduces the amount of ON time that this LED has, useful if you keep the Livebox in a room where this brightness would be annoying. +
-<​code>​ +
-[hardware] +
-power=0 +
-</​code>​ +
- +
-These network entries allow in-built services such as SSH, TELNET and FTP to be enabled/​disabled. +
- +
-{{services.PNG}} +
- +
-<​code>​ +
-[network] +
-telnet_enable=0 +
-telnet_port=23 +
-ssh_enable=1 +
-ssh_port=22 +
-</​code>​ +
- +
-==== Access Security ==== +
- +
-Access to various pages in the HAH controller can be controlled in the [security] section. ​ For example: +
- +
-<​code>​ +
-[security] +
-user=demo +
-passwd=secret +
-demo=automation,​graph,​control +
-</​code>​ +
- +
-Will create a login user called "​demo"​ with a password of "​secret"​ that only has access to the automation, graph, and control pages. +
- +
-Up to 10 additional user accounts can be created. ​ Simply separate each with a comma. +
-<​code>​ +
-[security] +
-user=demo,​foo +
-passwd=secret,​bar +
-demo=automation,​graph,​control +
-foo=automation,​control +
-</​code>​ +
- +
-The page names are derived from the names of the pages as defined in the URL.  For example the page setup.kl1 will be "​setup"​. +
- +
-There are two other entries that appear in the security section that are update-able via the webserver\\ +
-{{admin.PNG}} +
- +
-<​code>​ +
-info_protect=0 +
-admin_passwd=21232f297a57a5a743894a0e4a801fc3 +
-</​code>​ +
- +
-Info protect controls whether the INFO page is displayed without needing to authenticate as a valid user.  The admin_password is an MD5 hash of the special user "​admin"​ who cannot be deleted from the system; it's a hardcoded username much like "​root"​ in a Linux system. +
- +
-If you forget the "​admin"​ user password simply delete the admin_passwd entry and whatever you enter in the login prompt will be accepted as valid. +
- +
-==== Wake on LAN ==== +
- +
-Wake on LAN is a great way to save power by keeping your PC on '​standby'​ until it is given a little 'wake up' message. This page allows you to specify the MAC address of a number of PCs. Pressing the 'Wake Up' button sends the command. +
-\\ +
-\\ +
-More details of regarding WOL can be found [[http://​en.wikipedia.org/​wiki/​Wake-on-LAN|here]]. +
- +
-\\ +
-{{wol.png}} +
- +
- +
-{{tag>​livebox xap}}+
 ~~DISCUSSION:​off~~ ~~DISCUSSION:​off~~