Setup your own openhab-cloud (myopenhab) server/instance

awesome stuff!

I didn’t try it out yet, does this have by chance any impact on response times? I found that using the official alexa skill with myopenhab results in 5-10 seconds delay, until the job is executed.

It’s much faster on it’s own server (assuming you’re the only one using it)

How difficult is to handle the updates of the cloud?

Assuming no broken changes by the developers, pretty easy.

  • git pull
  • restart

Wouldn’t it be nice if the repo README contains a banner with the Travis CI or Cloudbees status?

1 Like

OK, Noob question here, using terminal, cd to openhab-cloud sub-d, run “git pull”, git tells me “already up to date”, although I don’t have either of the new config-x.json files, with the registration disable code. Am I missing something??

Thanks for your help!!!

PS Double NOOB, both git and ubuntu, although I understand how both work, and have "played’ with various Linux systems in the past.

You’re doing it right, that commit hasn’t been merged into master yet when it does the git pull will get it.

After I posting I looked around, and with my small understanding of GIT, I thought that was what was up, but wanted the “expert” answer. LOL

Hi,

thanks for this great tutorial, but I’ve one question:

How can I start app.js as a service?

Thanks
Thomas

Try https://github.com/Unitech/pm2

Thanks!

That works.

I’d like to let everyone know about my experience setting up the myopenhab, on both Amazon Web Services (AWS), and GoDaddy cloud server.

I want it to be known that I am not associated in any way with either Company other than being a customer of both. I hold no stock or stake in either company.

I followed the instructions both in this post and in the read me found on github for myopenhab.

I started with AWS, the setup was easy, the help provided both by AWS and other people via a simple Google search was impressive, and I was able to get ubuntu setup, along with a graphical interface, Putty terminal access, and FileZilla FTP access in under two hours. Following both sets of instructions provided, I was able to get myopenhab running, and get an SSL cert for my domain. The only time I needed to interact with AWS support was to get an “RDNS” entry added to the AWS DNS Servers so that the AWS server was seen as my domain. You need an “elastic IP Address” and also need to have your “A” record created and propagated before attempting this. The instructions to do this are included on this page under “elastic IP address”. https://aws.amazon.com/ec2/faqs/#elastic-ip.

Although I did commission and destroy a few servers before getting everything right, the commissioning of a new server takes 2 minutes at most before you can logon, so the most painful part was destroying all my work.

Now Godaddy, comissioning of severs, about the same as AWS, other than that, my experience was horrible, documentation was slim at best, and the details neeeded to logon via either cert, or password were, unavailable.

I gave up after numerous server commissions, and destroys, while never being able to logon to a terminal.

As I’ve said before, I am a Linux noob, and Windows Expert.

Hopefully this is helpful to those looking to install myopenhab on a cloud server of some type.

Any questions feel free to ask, I am a sometimes daily sometimes weekly forum browser.

The prices of both services are comparable, $8-10 for a 1 cpu, 30 GB HD, cloud server, AWS is giving you a year free, (read the rules, they are generous in my opinion), GoDaddy is giving a month free.

ryandetzel, thanks for the help and all the work you do!!!

Good info Joe, thanks. I use AWS all the time and it’s great, little pricey but like you said since it’ so popular there is a lot of help out there. If you’re up to it I suggest you try one of the other providers, Digital Ocean, Linode, or Scaleway as I think you’ll have a better experience and they tend to be a little cheaper.

Would anyone be interested in this as a docker?

2 Likes

Yes, I am waiting it.

1 Like

Here’s some more info on Cloud Setup, specifically notifications:

So, for those looking to set up OpenHAB-Cloud notifications, here is a quick summary of what needs to be done.

Jid = Your_Sender_Key@googleapis.com
Password = server key
I don’t know if the legacy server key will work, I used the server key from Firebase console, also make sure you use the keys on the “Cloud Messaging” tab!

Before compiling habdroid"
Change OpenHABMainActivity.java line 145 and 1201 to match your system.

Hi wondefull job ryandetzel

Got my own server running in 30 minutes
My big problem.
I am try to make node app.js start at boot like a service

messing arroud with openhabcloud.service but can’t get it the right way
any help would be appriciated

Stephen

1 Like