Difference between revisions of "Spacecontrol"

From Whitespace (Hackerspace Gent)
Jump to: navigation, search
(Current Configuration)
(Kourou)
 
(38 intermediate revisions by 7 users not shown)
Line 10: Line 10:
  
 
==Current Configuration==
 
==Current Configuration==
The spacecontrol project consists of two hardware parts. A [[/CapeCanaveral|small]] one and a [[/Baikonur|big]] one. For more documentation on how they where both build look on the subpages. There is also a purely software part to do a remote soft poweroff some servers.  
+
The spacecontrol project consists of two hardware parts. A [[/Small Spacecontrol|small (Kourou) ]] one and a [[/Baikonur|big (Baikonur)]] one. For more documentation on how they were both built look on the subpages. There is also a purely software part to do a remote soft poweroff some servers.  
  
'''Currently only the [[/CapeCanaveral|small]] version is active.'''
+
===Pure software===
 
+
* This first version can control up to '''4''' 220V devices.
+
 
* It can do a soft poweroff of four servers in the space.
 
* It can do a soft poweroff of four servers in the space.
 
* Software running on the audio server.
 
* Software running on the audio server.
 +
* It runs a webinterface that controls the other spacecontrols via serial.
 +
 +
===Kourou===
 +
Currently only [[/Kourou|Kourou]] is active.'''
 +
* This first version can control up to '''4''' 220VAC devices.
 
* Currently 4 lamps in the main room are hooked up.
 
* Currently 4 lamps in the main room are hooked up.
  
====Usage====
+
===Baikonur===
 +
[[/Baikonur|Baikonur]] is still in development, but is nearing completion and installation.
  
===== webinterface =====
+
==Usage==
Just visit http://spacecontrol while in the space and click the buttons.
+
  
===== Android App =====
+
=== webinterface (low level) ===
The current version of spacecontrol supports the [http://www.domotichome.net/ DomoticHome] Android app. This application can be found in the Android market. The first time you use the app go to settings and fill in the following:
+
This a very crude but functional webinterface to control our spacecontrol components. It should be self explanatory. Just visit http://spacecontrol while in the space select one of the tab sheets and click the buttons. If you use Chromium it's better to use http://spacecontrol.0x20.be.
 +
 
 +
=== webinterface (graphical) ===
 +
There is now also a graphical webinterface available. This is based on the open-source project [http://karpero.mine.nu/ha/ HomeAutomation]. For the moment this interface can be tested by visiting http://gatekeeper while in the space. For normal operation there is no longer a username and password required. To administrate the webinterface use username "root" the guessable password. An installation guide can be found [[/HomeAutomation Installation|here]].
 +
 
 +
<span style="color:red">This setup is being tested, not yet stable but please try and report problems.</span><br />
 +
'''Known issues:'''<br />
 +
* Webinterface will not load when the Audio server is not running. Trying to load anyway will cause a loop that fills the error log (/var/log/lighttpd/error.log) of lighttpd until the drive is full. Without any space mysqld won't come up and possibly other things will fail as well. Just empty the log file to fix things again.
 +
* The USB port on our BeagleBoard had a hardware bug in it so sometimes everything on this bus gets disconnected. This includes networking.
 +
** A possible solution is to use the OTG USB port on the BeagleBoard as network-interface to the rest of the network. Some initial experimentation shows that the main blocking point is the old kernel on Soekris that does not support the BeagleBoard as networking device. (THX [[impy]])
 +
** As a workaround there is a cronjob that calls a small script that reboots when the network device is no longer detected by lsusb.
 +
 
 +
=== Android App ===
 +
The current version of spacecontrol supports the [http://www.domotichome.net/ DomoticHome] Android app. This application can be found in the Android market ([https://market.android.com/details?id=nerdydog.domoHome direct link to app]). The first time you use the app go to settings and fill in the following:
 
<pre>
 
<pre>
 
IP: 172.22.32.21
 
IP: 172.22.32.21
Line 32: Line 48:
 
Click save and then when you hit Sync the current Spacecontrol configuration should be loaded. A menu structure will then appear in the main application window allowing you to control the connected appliances.
 
Click save and then when you hit Sync the current Spacecontrol configuration should be loaded. A menu structure will then appear in the main application window allowing you to control the connected appliances.
  
===== Insanity mode =====
+
=== Insanity mode ===
  
 
Use FireBug or the Chromium thing to add ids 'on' and 'off' to the 'all on' and 'all off' buttons. Then run:
 
Use FireBug or the Chromium thing to add ids 'on' and 'off' to the 'all on' and 'all off' buttons. Then run:
Line 39: Line 55:
 
function hax( time ){ if (typeof foo != 'undefined') {return 'bar';}; document.getElementById('on').click(); document.getElementById('off').click(); setTimeout( "hax( " + time + " )", time ); } hax( 1000 );  
 
function hax( time ){ if (typeof foo != 'undefined') {return 'bar';}; document.getElementById('on').click(); document.getElementById('off').click(); setTimeout( "hax( " + time + " )", time ); } hax( 1000 );  
 
</code>
 
</code>
 +
 +
 +
{{Subpages}}

Latest revision as of 17:50, 17 January 2012


Spacecontrol
WhitespaceLogo.gif
What:
We automate because we can!
Participants:
Koen, Piet
Locations:
Whitespace
Events:
How to electrocute an elephant 2, How to electrocute an elephant 4
Cornify
Mission-control.jpg

Current Configuration[edit]

The spacecontrol project consists of two hardware parts. A small (Kourou) one and a big (Baikonur) one. For more documentation on how they were both built look on the subpages. There is also a purely software part to do a remote soft poweroff some servers.

Pure software[edit]

  • It can do a soft poweroff of four servers in the space.
  • Software running on the audio server.
  • It runs a webinterface that controls the other spacecontrols via serial.

Kourou[edit]

Currently only Kourou is active.

  • This first version can control up to 4 220VAC devices.
  • Currently 4 lamps in the main room are hooked up.

Baikonur[edit]

Baikonur is still in development, but is nearing completion and installation.

Usage[edit]

webinterface (low level)[edit]

This a very crude but functional webinterface to control our spacecontrol components. It should be self explanatory. Just visit http://spacecontrol while in the space select one of the tab sheets and click the buttons. If you use Chromium it's better to use http://spacecontrol.0x20.be.

webinterface (graphical)[edit]

There is now also a graphical webinterface available. This is based on the open-source project HomeAutomation. For the moment this interface can be tested by visiting http://gatekeeper while in the space. For normal operation there is no longer a username and password required. To administrate the webinterface use username "root" the guessable password. An installation guide can be found here.

This setup is being tested, not yet stable but please try and report problems.
Known issues:

  • Webinterface will not load when the Audio server is not running. Trying to load anyway will cause a loop that fills the error log (/var/log/lighttpd/error.log) of lighttpd until the drive is full. Without any space mysqld won't come up and possibly other things will fail as well. Just empty the log file to fix things again.
  • The USB port on our BeagleBoard had a hardware bug in it so sometimes everything on this bus gets disconnected. This includes networking.
    • A possible solution is to use the OTG USB port on the BeagleBoard as network-interface to the rest of the network. Some initial experimentation shows that the main blocking point is the old kernel on Soekris that does not support the BeagleBoard as networking device. (THX impy)
    • As a workaround there is a cronjob that calls a small script that reboots when the network device is no longer detected by lsusb.

Android App[edit]

The current version of spacecontrol supports the DomoticHome Android app. This application can be found in the Android market (direct link to app). The first time you use the app go to settings and fill in the following:

IP: 172.22.32.21
PORT: 80

Click save and then when you hit Sync the current Spacecontrol configuration should be loaded. A menu structure will then appear in the main application window allowing you to control the connected appliances.

Insanity mode[edit]

Use FireBug or the Chromium thing to add ids 'on' and 'off' to the 'all on' and 'all off' buttons. Then run:

function hax( time ){ if (typeof foo != 'undefined') {return 'bar';}; document.getElementById('on').click(); document.getElementById('off').click(); setTimeout( "hax( " + time + " )", time ); } hax( 1000 );


Subpages