NetHomeServer - OpenNetHome
NetHomeServer is the main part of the OpenNetHome project
source at Github: NetHome
wiki at wiki.nethome.nu
it is written in java.
web interface at http://server:8020/home url.
back to home automation page.
Work log
2021-08-12: I re-created this page on my self-hosted web server.
2014-04-07: v2: NetHomeServer - no, it doesn't detect the TSDUO, or telldusd.
2014-04-03: v2: NetHomeServer - the real question is; will it detect the TellStick Duo if I connect it? It doesn't look like it uses telldusd, but plain serial port communication (serial via usb that is).
2014-04-03: v2: NetHomeServer also logs this to stdout / stderr:
Exception in thread "Timer-1" java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:377) at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:131) at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:98) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:665) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:711) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:317) at java.util.prefs.XmlSupport.writeDoc(XmlSupport.java:276) at java.util.prefs.XmlSupport.exportMap(XmlSupport.java:355) at java.util.prefs.FileSystemPreferences$8.run(FileSystemPreferences.java:624) at java.security.AccessController.doPrivileged(Native Method) at java.util.prefs.FileSystemPreferences.writeBackCache(FileSystemPreferences.java:617) at java.util.prefs.FileSystemPreferences.syncSpiPrivileged(FileSystemPreferences.java:801) at java.util.prefs.FileSystemPreferences.access$2300(FileSystemPreferences.java:50) at java.util.prefs.FileSystemPreferences$13.run(FileSystemPreferences.java:771) at java.security.AccessController.doPrivileged(Native Method) at java.util.prefs.FileSystemPreferences.syncSpi(FileSystemPreferences.java:769) at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1334) at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1339) at java.util.prefs.AbstractPreferences.sync(AbstractPreferences.java:1325) at java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:748) at java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java:824) at java.util.prefs.FileSystemPreferences.syncWorld(FileSystemPreferences.java:468) at java.util.prefs.FileSystemPreferences.access$1200(FileSystemPreferences.java:50) at java.util.prefs.FileSystemPreferences$4.run(FileSystemPreferences.java:436) at java.util.TimerThread.mainLoop(Timer.java:534) at java.util.TimerThread.run(Timer.java:484)
not sure if it is important or not.
2014-04-03: v2: trying out NetHomeServer 2.0 under FreeBSD:
tingo@kg-v2$ uname -a FreeBSD kg-v2.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #7 r256430: Sun Oct 13 19:43:35 CEST 2013 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
install it in work:
tingo@kg-v2$ cd ~/work tingo@kg-v2$ unzip ~/dl/NetHomeServer20.zip Archive: /home/tingo/dl/NetHomeServer20.zip d NetHomeServer d NetHomeServer/drivers d NetHomeServer/drivers/linux d NetHomeServer/drivers/linux/ftdi extracting: NetHomeServer/drivers/linux/ftdi/98-nethome.rules d NetHomeServer/drivers/windows extracting: NetHomeServer/drivers/windows/CUL.inf d NetHomeServer/drivers/windows/FTDI_VCP d NetHomeServer/drivers/windows/FTDI_VCP/amd64 extracting: NetHomeServer/drivers/windows/FTDI_VCP/amd64/ftbusui.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP/amd64/ftcserco.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP/amd64/ftd2xx.lib extracting: NetHomeServer/drivers/windows/FTDI_VCP/amd64/ftd2xx64.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP/amd64/ftdibus.sys extracting: NetHomeServer/drivers/windows/FTDI_VCP/amd64/ftlang.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP/amd64/ftser2k.sys extracting: NetHomeServer/drivers/windows/FTDI_VCP/amd64/ftserui2.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP/dpinst-amd64.exe extracting: NetHomeServer/drivers/windows/FTDI_VCP/dpinst-x86.exe extracting: NetHomeServer/drivers/windows/FTDI_VCP/ftd2xx.h extracting: NetHomeServer/drivers/windows/FTDI_VCP/ftdibus.cat extracting: NetHomeServer/drivers/windows/FTDI_VCP/ftdibus.inf extracting: NetHomeServer/drivers/windows/FTDI_VCP/ftdiport.cat extracting: NetHomeServer/drivers/windows/FTDI_VCP/ftdiport.inf d NetHomeServer/drivers/windows/FTDI_VCP/i386 extracting: NetHomeServer/drivers/windows/FTDI_VCP/i386/ftbusui.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP/i386/ftcserco.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP/i386/ftd2xx.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP/i386/ftd2xx.lib extracting: NetHomeServer/drivers/windows/FTDI_VCP/i386/ftdibus.sys extracting: NetHomeServer/drivers/windows/FTDI_VCP/i386/ftlang.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP/i386/ftser2k.sys extracting: NetHomeServer/drivers/windows/FTDI_VCP/i386/ftserui2.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP/readme.txt extracting: NetHomeServer/drivers/windows/FTDI_VCP/setup.exe d NetHomeServer/drivers/windows/FTDI_VCP/Static d NetHomeServer/drivers/windows/FTDI_VCP/Static/amd64 extracting: NetHomeServer/drivers/windows/FTDI_VCP/Static/amd64/ftd2xx.lib d NetHomeServer/drivers/windows/FTDI_VCP/Static/i386 extracting: NetHomeServer/drivers/windows/FTDI_VCP/Static/i386/ftd2xx.lib d NetHomeServer/drivers/windows/FTDI_VCP_8_1 d NetHomeServer/drivers/windows/FTDI_VCP_8_1/amd64 extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/amd64/ftbusui.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/amd64/ftcserco.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/amd64/ftd2xx.lib extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/amd64/ftd2xx64.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/amd64/ftdibus.sys extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/amd64/ftlang.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/amd64/ftser2k.sys extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/amd64/ftserui2.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/dpinst-amd64.exe extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/dpinst-x86.exe extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/ftd2xx.h extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/ftdibus.cat extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/ftdibus.inf extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/ftdiport.cat extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/ftdiport.inf d NetHomeServer/drivers/windows/FTDI_VCP_8_1/i386 extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/i386/ftbusui.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/i386/ftcserco.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/i386/ftd2xx.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/i386/ftd2xx.lib extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/i386/ftdibus.sys extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/i386/ftlang.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/i386/ftser2k.sys extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/i386/ftserui2.dll extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/setup.exe d NetHomeServer/drivers/windows/FTDI_VCP_8_1/Static d NetHomeServer/drivers/windows/FTDI_VCP_8_1/Static/amd64 extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/Static/amd64/ftd2xx.lib d NetHomeServer/drivers/windows/FTDI_VCP_8_1/Static/i386 extracting: NetHomeServer/drivers/windows/FTDI_VCP_8_1/Static/i386/ftd2xx.lib extracting: NetHomeServer/drivers/windows/MyUSB_USBtoSerial.inf extracting: NetHomeServer/HomeManager_32.bat extracting: NetHomeServer/HomeManager_32.sh extracting: NetHomeServer/HomeManager_64.bat extracting: NetHomeServer/HomeManager_64.sh extracting: NetHomeServer/HomeManager_generic.bat extracting: NetHomeServer/HomeManager_generic.sh extracting: NetHomeServer/HomeManager_macosx_carbon.sh extracting: NetHomeServer/HomeManager_macosx_carbon_generic.sh extracting: NetHomeServer/HomeManager_macosx_cocoa.sh extracting: NetHomeServer/HomeManager_macosx_cocoa_64.sh extracting: NetHomeServer/HomeManager_macosx_cocoa_64_generic.sh extracting: NetHomeServer/HomeManager_macosx_cocoa_generic.sh extracting: NetHomeServer/HomeManager_raspian.sh extracting: NetHomeServer/HomeManager_raspian_debug.sh extracting: NetHomeServer/install_daemon.sh d NetHomeServer/lib extracting: NetHomeServer/lib/coders-1.1.jar extracting: NetHomeServer/lib/core-items-2.0.jar extracting: NetHomeServer/lib/demo.xml extracting: NetHomeServer/lib/home.jar extracting: NetHomeServer/lib/jcommon-1.0.16.jar extracting: NetHomeServer/lib/jdring-2.0.jar extracting: NetHomeServer/lib/jetty-6.1.14.jar extracting: NetHomeServer/lib/jetty-util-6.1.14.jar extracting: NetHomeServer/lib/jfreechart-1.0.13.jar extracting: NetHomeServer/lib/json-20131018.jar extracting: NetHomeServer/lib/rf-items-2.0.jar extracting: NetHomeServer/lib/rxtx-2.1.7.jar extracting: NetHomeServer/lib/server-2.0.jar extracting: NetHomeServer/lib/servlet-api-2.5-6.1.14.jar extracting: NetHomeServer/lib/servlet-api-2.5.jar extracting: NetHomeServer/lib/SunriseSunsetCalculator-1.0.jar extracting: NetHomeServer/lib/utils-1.0.jar extracting: NetHomeServer/lib/web-items-2.0.jar extracting: NetHomeServer/lib/ws-commons-util-1.0.2.jar extracting: NetHomeServer/lib/xercesImpl-2.4.0.jar extracting: NetHomeServer/lib/xml-apis-1.0.b2.jar extracting: NetHomeServer/lib/xmlrpc-client-3.1.3.jar extracting: NetHomeServer/lib/xmlrpc-common-3.1.3.jar extracting: NetHomeServer/license.txt d NetHomeServer/media extracting: NetHomeServer/media/apartment1.jpg extracting: NetHomeServer/media/button_icon.png extracting: NetHomeServer/media/button_icon_down.png extracting: NetHomeServer/media/home.jpg extracting: NetHomeServer/media/home_back.jpg extracting: NetHomeServer/nhs_daemon_template extracting: NetHomeServer/nhs_template d NetHomeServer/os extracting: NetHomeServer/os/librxtxSerial.jnilib extracting: NetHomeServer/os/librxtxSerial_raspian.so extracting: NetHomeServer/os/librxtxSerial_x86_32.so extracting: NetHomeServer/os/librxtxSerial_x86_64.so extracting: NetHomeServer/os/rxtxSerial_32.dll extracting: NetHomeServer/os/rxtxSerial_64.dll d NetHomeServer/plugins d NetHomeServer/plugins/example extracting: NetHomeServer/plugins/example/Example1.java extracting: NetHomeServer/plugins/example/Example2.java extracting: NetHomeServer/plugins/example/README.txt extracting: NetHomeServer/README-install extracting: NetHomeServer/readme.txt
Now, can we run it?
tingo@kg-v2$ cd NetHomeServer
which java?
tingo@kg-v2$ java -version openjdk version "1.6.0_32" OpenJDK Runtime Environment (build 1.6.0_32-b27) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
try to start it:
tingo@kg-v2$ ./HomeManager_generic.sh Apr 3, 2014 2:52:26 AM nu.nethome.home.impl.HomeManagerStarter go INFO: **Starting HomeManager 2.0-f3bfd** Apr 3, 2014 2:52:26 AM nu.nethome.home.impl.HomeManagerStarter go INFO: Logging to: /home/tingo/HomeManager%g.log Apr 3, 2014 2:52:26 AM nu.nethome.home.impl.HomeItemFileLoader loadItems INFO: Loading Items from demo.xml Apr 3, 2014 2:52:26 AM nu.nethome.home.items.gui.TrayBarIcon activate WARNING: SystemTray is not supported on this system 2014-04-03 02:52:26.847::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2014-04-03 02:52:26.904::INFO: jetty-6.1.14 2014-04-03 02:52:27.013::INFO: Started SocketConnector@0.0.0.0:8020 Apr 3, 2014 2:52:27 AM nu.nethome.home.impl.HomeServer loadItems INFO: Activated 22 of 22 Items
ok, see if I can reach the web interface at http://server:8020/ address, no, that one only gave e a 404 error. I have to go to http://server:8020/home to get at the interface. It has a log file too:
tingo@kg-v2$ more ~/HomeManager0.log 2014.04.03 02:52:26.94 INFO:**Starting HomeManager 2.0-f3bfd** (HomeManagerStarter 0, TID10) 2014.04.03 02:52:26.121 INFO:Logging to: /home/tingo/HomeManager%g.log (HomeManagerStarter 1, TID10) 2014.04.03 02:52:26.140 INFO:Loading Items from demo.xml (HomeItemFileLoader 2, TID10) 2014.04.03 02:52:26.744 WARNING:SystemTray is not supported on this system (TrayBarIcon 3, TID10) 2014.04.03 02:52:27.14 INFO:Activated 22 of 22 Items (HomeServer 4, TID10)
Hmm, looks a bit .. unfinished.