OH on the raspberry pi zero

yes It’s work, I’m testing, but I ussing only myopnehab and GPIO, not other things

I tried openhabian again on my pi zero.

First with a combo usb hub+ethernet but can’t get to see eth0.

Second with a Edimax USB wifi but can’t get it to work ether. I tried adding wpa_supplicant.conf to /config/
I didn’t quite follow how to find and add wifi drivers that seem to be suggested by:
https://github.com/debian-pi/raspbian-ua-netinst/pull/175

Even with just a pi zero & a USB wired ethernet dongle I can’t get past:
waiting for eth0

then Oh noes, something went wrong.

I can see in the boot log that Realtek USB Ethernet was found.

Ideas?

It’s simply not supported yet :slight_smile:

I’d like to provide a solution for you but that will take a few more days. I’m currently in exactly that process (hint).

What you can do right here, right now: Get a Raspbian system up and running and install and execute openHABian manually: openHABian hassle-free openHAB Setup

Let me know about all problems and differences you are seeing!

So I have openhabian mostly installed on an rpi0 using the manual method from above.
I had to enable ssh
I can access the openhab shares such as config over the network.

2 Qs:
why in my manual setup do I execute:
/opt/openhabian/openhabian-setup.sh
instead of:
openhabian-config

and how do I start openhab (I don’t have the website )
===> edit/update>>>
Well the service is already running from:
sudo systemctl status openhab2.service
but I don’t have the website

ports?
<<<

it might be a good idea to add the above steps to the manual linux instructions.

Wonderful.

Question 1: That’s simple. Part of the openHABian RPi image setup is the following command. Execute it:

ln -s /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config

Question 2: If the service is running you should be able to access the website as always (Port 8080). There is no special setup or installation step. I can’t think of any. Please check the openhab.log and listening ports on your system (random tutoial).

It would be great to add the RPi Zero as a supported device to the openHABian article in the docs. I’m in the process of writing the article. Could you have a look what’s missing!? openHABian hassle-free openHAB Setup

That:

sudo netstat -plnt

is handy and tells me that nothing is using 8080 so I looked at the logs and the errors are so many/so long I’m not sure I should post.

Here goes:

[08:36:24] pi@rpi0:~$ tail -f /var/log/openhab2/openhab.log -f /var/log/openhab2/events.log
==> /var/log/openhab2/openhab.log <==
2017-01-20 07:36:00.685 [ERROR] [ternal.service.BootFeaturesInstaller] - Error installing boot features
java.lang.IllegalStateException: Resource has no uri
        at org.apache.karaf.features.internal.service.Deployer.getBundleInputStream(Deployer.java:1403)[8:org.apache.karaf.features.core:4.0.8]
        at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:737)[8:org.apache.karaf.features.core:4.0.8]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)[8:org.apache.karaf.features.core:4.0.8]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)[8:org.apache.karaf.features.core:4.0.8]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]

==> /var/log/openhab2/events.log <==

==> /var/log/openhab2/openhab.log <==
2017-01-20 08:37:29.853 [ERROR] [org.eclipse.smarthome.core.audio    ] - FrameworkEvent ERROR - org.eclipse.smarthome.core.audio
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.core.audio [99]
  Unresolved requirement: Import-Package: org.osgi.service.http

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.256 [ERROR] [org.eclipse.smarthome.core.voice    ] - FrameworkEvent ERROR - org.eclipse.smarthome.core.voice
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.core.voice [108]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
    -> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name="org.eclipse.smarthome.core.audio"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.core.audio [99]
         Unresolved requirement: Import-Package: org.osgi.service.http

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.307 [ERROR] [org.eclipse.smarthome.io.javasound  ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.javasound
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.io.javasound [111]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
    -> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name="org.eclipse.smarthome.core.audio"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.core.audio [99]
         Unresolved requirement: Import-Package: org.osgi.service.http

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.355 [ERROR] [org.eclipse.smarthome.io.rest.voice ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.rest.voice
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.io.rest.voice [119]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.voice
    -> Export-Package: org.eclipse.smarthome.core.voice; bundle-symbolic-name="org.eclipse.smarthome.core.voice"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.core.voice [108]
         Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
           -> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name="org.eclipse.smarthome.core.audio"; bundle-version="0.9.0.201701192225"; version="0.0.0"
              org.eclipse.smarthome.core.audio [99]
                Unresolved requirement: Import-Package: org.osgi.service.http

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.404 [ERROR] [org.eclipse.smarthome.io.webaudio   ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.webaudio
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.io.webaudio [121]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
    -> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name="org.eclipse.smarthome.core.audio"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.core.audio [99]
         Unresolved requirement: Import-Package: org.osgi.service.http

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.886 [ERROR] [org.eclipse.smarthome.model.core    ] - FrameworkEvent ERROR - org.eclipse.smarthome.model.core
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.model.core [122]
  Unresolved requirement: Import-Package: com.google.inject
    -> Export-Package: com.google.inject; bundle-symbolic-name="com.google.inject"; aop="false"; bundle-version="3.0.0.v201312141243"; version="1.3.0"
       com.google.inject [13]
         Unresolved requirement: Import-Package: javax.inject

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.933 [ERROR] [org.eclipse.smarthome.model.rule    ] - FrameworkEvent ERROR - org.eclipse.smarthome.model.rule
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.model.rule [127]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.model.core
    -> Export-Package: org.eclipse.smarthome.model.core; bundle-symbolic-name="org.eclipse.smarthome.model.core"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.model.core [122]
         Unresolved requirement: Import-Package: com.google.inject
           -> Export-Package: com.google.inject; bundle-symbolic-name="com.google.inject"; aop="false"; bundle-version="3.0.0.v201312141243"; version="1.3.0"
              com.google.inject [13]
                Unresolved requirement: Import-Package: javax.inject

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.996 [ERROR] [eclipse.smarthome.model.rule.runtime] - FrameworkEvent ERROR - org.eclipse.smarthome.model.rule.runtime
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.model.rule.runtime [128]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.model.core
    -> Export-Package: org.eclipse.smarthome.model.core; bundle-symbolic-name="org.eclipse.smarthome.model.core"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.model.core [122]
         Unresolved requirement: Import-Package: com.google.inject
           -> Export-Package: com.google.inject; bundle-symbolic-name="com.google.inject"; aop="false"; bundle-version="3.0.0.v201312141243"; version="1.3.0"
              com.google.inject [13]
                Unresolved requirement: Import-Package: javax.inject

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:31.033 [ERROR] [org.eclipse.smarthome.model.script  ] - FrameworkEvent ERROR - org.eclipse.smarthome.model.script
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.model.script [129]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
    -> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name="org.eclipse.smarthome.core.audio"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.core.audio [99]
         Unresolved requirement: Import-Package: org.osgi.service.http

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:31.107 [ERROR] [lipse.smarthome.model.script.runtime] - FrameworkEvent ERROR - org.eclipse.smarthome.model.script.runtime
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.model.script.runtime [130]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.model.core
    -> Export-Package: org.eclipse.smarthome.model.core; bundle-symbolic-name="org.eclipse.smarthome.model.core"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.model.core [122]
         Unresolved requirement: Import-Package: com.google.inject
           -> Export-Package: com.google.inject; bundle-symbolic-name="com.google.inject"; aop="false"; bundle-version="3.0.0.v201312141243"; version="1.3.0"
              com.google.inject [13]
                Unresolved requirement: Import-Package: javax.inject

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:31.234 [ERROR] [org.eclipse.xtext                   ] - FrameworkEvent ERROR - org.eclipse.xtext
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.xtext [141]
  Unresolved requirement: Require-Bundle: com.google.inject; bundle-version="3.0.0"; visibility:="reexport"
    -> Bundle-SymbolicName: com.google.inject; bundle-version="3.0.0.v201312141243"
       com.google.inject [13]
         Unresolved requirement: Import-Package: javax.inject

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:31.305 [ERROR] [org.eclipse.xtext.common.types      ] - FrameworkEvent ERROR - org.eclipse.xtext.common.types
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.xtext.common.types [142]
  Unresolved requirement: Require-Bundle: com.google.inject; bundle-version="3.0.0"
    -> Bundle-SymbolicName: com.google.inject; bundle-version="3.0.0.v201312141243"
       com.google.inject [13]
         Unresolved requirement: Import-Package: javax.inject

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]


I started from scratch again using your document at:
http://docs.openhab.org/installation/openhabian.html

I am following the “Manual Setup” instructions on my raspberry pi zero.

I ran into “directory does not exist” - cleaned up as if starting from scratch but this time making an adjustment to this line:
sudo git -C /opt/openhabian clone https://github.com/openhab/openhabian.git

Removing the first “/openhabian” to be:
sudo git -C /opt clone https://github.com/openhab/openhabian.git

I created:

It’s chugging along now…

1 Like

A summary of what went well, problems you encountered and extra steps you had to take would be great. I’ll add them to the article… :wink:

Manual Setup worked great on Pi zero and performance is excellent.

I looked at HABmin because I haven’t seen it in a long time and it’s performance is great too.

Hard to believe I am monitoring and controlling hundred or so items and passing them to an MQ TT broker using this:

1 Like

Here are my steps in detail:

20170116: created this doc for setting up rpi0
# initially set up raspbian on rpi zero using:
# * - items mared with astrisk are only needed for initial setup
#  - a good, high quality, 2.5A power supply with micro USB for pi zero
#  - micro sd card for pi zero (I used 8GB kensington class 4)
#  - Edimax wifi adapter
#  - USB to micro USB adapter (first for hub then later for wifi adapter)
#  - a separate, good, high quality, 2.5A power supply for Kensington POWERED USB HUB*
#     ### Get good power supplies - I wasted hours with wifi not working only to
#     ### realize that between wifi, HDMI, kbd/mouse my wifi would not work because
#     ### I was having power problems
#  - mini HDMI cable and monitor*
#  - Logitech Wireless Kbd/Mouse adapter*
# downloaded and transferred to micro sd clean raspbian-only (no noobs) image from 2017-01-11 build and booted
# set keyboard, local, timezone, hostname, password
# RPi Menu>Preferences>Mouse and Keyboard Settings>Keyboard (tab)> United States English
# RPi Menu>Interfaces > Enable SSH
# RPi Menu>Preferences>Raspberry Pi Configuration>Localization (tab)>Timezone (tab)> US Central
# RPi Menu>Preferences>Raspberry Pi Configuration>System>Hostname: rpi0
# log into wifi
# uninstall unused heavy stuff:
sudo apt-get purge wolfram-engine libreoffice-*
# I use xrdp instead of vnc so uninstall realvnc server (before installing xrdp because they are incompatible)
sudo apt-get purge realvnc-vnc-server
sudo apt-get update
sudo apt-get install xrdp
sudo apt-get upgrade
sudo apt-get autoremove && sudo apt-get clean
sudo apt-get install rpi-update gparted && sudo rpi-update
20170119 made rpi0 sd backup to hard disk so I can start with it and skip hub, keyboard, etc.

# removed USB hub/power,  and wireless kbd/mouse adapter - no longer needed
# put USB to Micro USB adapter directly in wifi adapter and plug combo into pi zero micro USB port
# boot and access via putty (ssh client) 
# install openhabian: following http://docs.openhab.org/installation/openhabian.html

# install git
sudo apt-get update
sudo apt-get install git
# download and link
sudo git -C /opt clone https://github.com/openhab/openhabian.git
ln -s /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config

sudo openhabian-config # and then step through first 6 steps (Update,Basic Setup, Java 8,OpenHAB 2,Samba, Karaf) 
tail -f /var/log/openhab2/openhab.log -f /var/log/openhab2/events.log

# once complete, start openhab and verify status:
sudo systemctl start openhab2.service
sudo systemctl status openhab2.service

# it takes 5-10 minutes for the website http://192.x.x.x:8080/ to become available
# from there select expert setup so you have 1.x bindings, should NOT have selected "simple setup"

# set up my config, items, services, etc.
3 Likes

http://docs.openhab.org/installation/openhabian.html#manual-setup :wink:

1 Like

I’ve ordered one yesterday. Seems like we’ll need yet another openHABian image :wink:

2 Likes

I’ll be first to test it then, because I’ve ordered one too! :smiley:

1 Like

Thanks for the info on the new product! Have only just bought a Raspberry Pi Zero for use as a remote camera. Unfortunately I needed two USB ports, one for the wifi and one for the USB camera. Just about to buy a USB board extension when I read this.

The wireless version arrived today and thought I would try Openhab2 first. Used the Noobs Lite to install Raspian Lite. Needed to setup wifi name and password within wpa_supplicant.conf and then installed openhabian-config. From this I installed Zulu Java, Openhab2 and Mosquitto in that order.

All working with a test MQTT sitemap within 1½ hours. That’s what I call hassle free!!

2 Likes

I’m on travels over the weekend but will look into the new image (hopefully) on Monday evening. Would you be available to test? Thanks and enjoy your weekend!

@jtmoderate876 and @mikyh This new image might also work with a wifi USB key… Should. Would be interesting to be tested by you as well.

@jtmoderate876 if this really becomes a thing, it would be interesting to know performance restrictions the zero imposes. Any experience on your side (I know, last time we talked you only used yours as a passive node)…?

1 Like

Hey Thom, I’d love to! I didn’t get it yet, though. It might take a while before they ship it to Poland :wink:

1 Like

PiHut sent mine out yesterday morning. Let’s see :slight_smile:

Btw. are you going to use it a “real” openHAB server or just as a remote node like Jeff does?

Would be happy to test.

Good news: I’ve received my Pi0W yesterday
Bad news: I will not be able to test anything before Friday evening
Good news: I’ve already implemented all needed changes/actions (image may contain bugs)

Chances are high I’ll have a first working image ready Saturday morning :wink: