Author Topic: Raspberry Pi Setup Instuctions (For those who need it)  (Read 789 times)

Offline RichieB

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +1/-0
Raspberry Pi Setup Instuctions (For those who need it)
« on: February 03, 2018, 04:19:00 am »
So this is what works for me
once u install Noobs rasbian or headless version


enable ssh
Quote
sudo su -
 
mkdir /opt/vera
 
cd /opt/vera/
 
wget https://storage.googleapis.com/veraconcierge.appspot.com/ConciergeServerVersions/ConciergeServer.jar
 
apt-get update

apt-get install openjdk-8-jre-headless
 
java -jar ConciergeServer.jar
 
cp conciergeserver /etc/init.d/conciergeserver
 
chmod 755 /etc/init.d/conciergeserver
   
update-rc.d conciergeserver defaults

 
service conciergeserver start



go to the web site

https://raspberrypi-ip-address:8989

Quote
Discoverd Devices
Last Discovery Update: 4:23:12 AM
Concierge Server IP: 127.0.1.1

The server will actually start but you ip will be 127.0.1.1:8989

Quote
:~/VeraConcierge$ java -jar ConciergeServer.jar service
Aug 31, 2017 7:40:24 PM V:ConciergeServer:main:Server:127.0.1.1:8989
Aug 31, 2017 7:40:24 PM V:VeraConnect.VeraConnection:GetVeraIDs:UI6-50009731


The problem then is that the raspberry pi host file pretty much not setup properly

ssh back into to your pi
Quote
cd /etc/
Sudo nano hosts

Add this line

Quote
XXX.XXX.XXX.XXX  raspberrypi
where XXX.XXX.XXX.XXX is your Pi   IP(host) address (eg 192.168.0.33 or whatever) and "raspberrypi" is you host name

save the file
reboot the pi
Quote
sudo reboot

works flawlessly





« Last Edit: February 03, 2018, 04:31:52 am by RichieB »

Online kirbyb

  • Jr. Member
  • **
  • Posts: 69
  • Karma: +0/-0
Re: Raspberry Pi Setup Instuctions (For those who need it)
« Reply #1 on: February 14, 2018, 03:33:40 pm »
I had a little trouble with the instructions....  The line where you run java -jar ConciergeServer.jar seems to never return...  A Ctrl-z and bg fixed that (the Ctrl-Z interrupts the process, and the bg puts that process running again in the BackGround).

The install of Java failed, mostly (I think) because Java is already installed....  It complained about a 'certificates' package, so I tried installing that, and it said it already was installed....

I provide this info not because the problems I had mean it doesn't work, but I think some of the steps might be unnecessary (hence the errors), and might confuse a total newbie.

Kirby

Offline RichieB

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +1/-0
Re: Raspberry Pi Setup Instuctions (For those who need it)
« Reply #2 on: February 17, 2018, 11:51:02 am »
was it a fresh install rasberry pi or did u just delete the old concierge server and reinstall it?

Offline Bruce0

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Raspberry Pi Setup Instuctions (For those who need it)
« Reply #3 on: February 20, 2018, 02:57:17 am »
On raspian I only needed to do the last 3 steps (that is put a hard coded IP address into /etc/hosts).  It worked after that.

I also had the problem where I could not install openjdk (because raspian already had oracle-java8 installed).  So i removed the partially installed openjdk.

(I also used systemd services rather than init.d but I think that is an inconsequential difference)

THank you for your post, it really helped me.  I couldn't figure out where vera concierge was coming up with 127.0.0.1


Offline STEELR

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Raspberry Pi Setup Instuctions (For those who need it)
« Reply #4 on: February 24, 2018, 10:30:23 pm »
hi,
  I have followed the instructions in the post but will have issue trying to connect to the webpage :8989 it just times out.  Can anyone help?

Offline RichieB

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +1/-0
Re: Raspberry Pi Setup Instuctions (For those who need it)
« Reply #5 on: March 03, 2018, 04:11:36 am »
service conciergeserver start

Offline JY07

  • Newbie
  • *
  • Posts: 17
  • Karma: +1/-1
Re: Raspberry Pi Setup Instuctions (For those who need it)
« Reply #6 on: March 03, 2018, 11:03:31 am »
hi,
  I have followed the instructions in the post but will have issue trying to connect to the webpage :8989 it just times out.  Can anyone help?

My initial problem was trying to access the page as HTTP opposed to HTTPS

My current problem is if I manually run the program, I'm able to access the site, but not when using the service.  I know the service has to partially be working because if I try to manually run it while the service is running, I get an error regarding the port already being in use.

Is there a way to see the service logs to see where the problem could be?

*EDIT*:

I got it to work:  I was using an existing box that was originally used w/ HA-Bridge, so I skipped the java install.  I went back and did all of the listed steps, rebooted, and it looks like everything's good to go at this point
« Last Edit: March 03, 2018, 11:30:46 am by JY07 »

Offline RichieB

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +1/-0
Re: Raspberry Pi Setup Instuctions (For those who need it)
« Reply #7 on: March 04, 2018, 06:21:24 pm »
it always requires https .. h

Offline ember1205

  • Sr. Member
  • ****
  • Posts: 416
  • Karma: +5/-21
Re: Raspberry Pi Setup Instuctions (For those who need it)
« Reply #8 on: March 09, 2018, 08:10:32 am »
I had a little trouble with the instructions....  The line where you run java -jar ConciergeServer.jar seems to never return...  A Ctrl-z and bg fixed that (the Ctrl-Z interrupts the process, and the bg puts that process running again in the BackGround).

The install of Java failed, mostly (I think) because Java is already installed....  It complained about a 'certificates' package, so I tried installing that, and it said it already was installed....

I provide this info not because the problems I had mean it doesn't work, but I think some of the steps might be unnecessary (hence the errors), and might confuse a total newbie.

Kirby

Running the command with the "&" at the end will bypass the need to manually put it into the background. Also, I thought java had a command-line option to put it into "daemon" mode (which is the CORRECT way to run it).

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10061
  • Karma: +759/-141
Re: Raspberry Pi Setup Instuctions (For those who need it)
« Reply #9 on: March 09, 2018, 03:31:46 pm »
Quote
Is there a way to see the service logs to see where the problem could be?
I have an undocumented feature to get at startup logs ... do not recommend you leave this set ... it will fill up your disk.

When you run the concierge server ... use:

 java -jar ConciergeServer.jar log /Path/To/YourLogFile.log