sudo su
echo “deb Index of /webupd8team/java/ubuntu xenial main” | tee /etc/apt/sources.list.d/webupd8team-java.list
echo “deb-src Index of /webupd8team/java/ubuntu xenial main” | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
exit
Regarding my.openhab:
I haven’t installed my.openhab yet, but AFAIK there is no need to make cfg file. You know this (official) thread?
Unfortunately the documentation on my.openhab.org still refers to an OH1 installation. But also the tutorial from Rich doesn’t mention any cfg file for my.openhab:
I would assume, when you update your java version, things will get going.
That is correct, there is no config file for my.openhab. Once installed and
started the binding will create the uuid and secret files. You use the
content of these file to fill out the form on the my.openhab.org website
under your account and assuming everything else is right (e.g. new enough
Oracle Java, servers aren’t down, etc.) it will work. That is all the
config you need to do.
I used to have the beta4 installed. Now I reinstalled everything (removed all OH2 directories after uninstalling with apt) to the latest snapshot. All my other bindings and services work fine after setting them up again, but I cannot get my.openhab working. I copy & pasted the new uuid and secret values into the my.openhab account and configured the base url to “http://localhost:8090” under “Configuration”->“Services”->“my.openhab”->“configure” because I run OpenHAB on port 8090 (8080 is in use by another application)
But it doesn’t connect. To be more precise, there are NO messages from the bundle. ONLY when the bundle is stopped with bundle:stop or when shutting down OH2 completely. Then the message
[INFO ] [o.myopenhab.internal.MyOpenHABClient] - Shutting down my.openHAB service connection
is shown. But no errors or success messages - nothing. Do you have an idea what could be wrong?
Right now the best I can offer is move to the new cloud connector add-on and http://myopenhab.org service and see if that works. Http://my.openhab.org will be shut down at the end of January.