Idiots guide to Raspberry Pi Installation

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

TheBod
Posts: 52
Joined: Friday 01 January 2016 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Idiots guide to Raspberry Pi Installation

Post by TheBod »

Hi all

I apologise if this has been asked a thousand times before.

I am trying to install Domoticz onto my Raspberry Pi2. Using my Windows desktop I have downloaded the Pi image file from the Sourceforge website (http://sourceforge.net/projects/domotic ... p_redirect) and copied the image to a 8GB micro SD card. With the SD card inserted in the Pi2 I have booted up and get to the Pi and Raspberry login request. Following login I do CD Domoticz and then ./Domoticz.

At this point I receive the following error message;

"Error: Failed to start the web server: bind: Address already in use
Error: check if no other application is using port: 8080"

I have tried the Pi2 both connected to my LAN and without and always receive the same message. As far as I am aware there is nothing else running on the Pi and therefore nothing using 8080. An online suggestion was to run "./domoticz -www 8090 -sslwww 8091" but this still does not work.

Am I using the correct image file? I am planning on installing my RFXcom433 to the Pi to control my many 433 devices at home.

Could someone point me in the correct direction for an easy installation please.


Thanks in advance

TheBod
User avatar
jvdz
Posts: 2311
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by jvdz »

Are you sure that domoticz isn't already running?

Just check with: sudo ps x|grep domoticz

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
TheBod
Posts: 52
Joined: Friday 01 January 2016 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by TheBod »

Hi Jos

Thanks for your reply. I have tried

sudo ps x|grep domoticz

and get the response shown in the attached (2032 ? Ssl 0:00 /home/pi/domoticz/domoticz -daemon -www 8080 -sslwww 443)


Any ideas?

Thanks

The Bod
Attachments
Screenshot of Pi2 response
Screenshot of Pi2 response
IMG_8286.JPG (138.15 KiB) Viewed 4408 times
User avatar
jvdz
Posts: 2311
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by jvdz »

So that means it is running already :)
Have you tried opening the Domoticz website from your PC's browser: http://rapsberry.ip.address:8080 ?

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
TheBod
Posts: 52
Joined: Friday 01 January 2016 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by TheBod »

Ah, I have just realised something that may be important. I am running Domoticz already on my windows PC (http://127.0.0.1:8080/#/Dashboard). Is this causing the issue?
User avatar
jvdz
Posts: 2311
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by jvdz »

TheBod wrote:Ah, I have just realised something that may be important. I am running Domoticz already on my windows PC (http://127.0.0.1:8080/#/Dashboard). Is this causing the issue?
That should be no issue. just try opening the Raspberry's domoticz website from your PC with the correct IP address you gave to the Raspberry.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
TheBod
Posts: 52
Joined: Friday 01 January 2016 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by TheBod »

Update: I have closed down Chrome on the pc, which was running Domoticz, and tried ./Domoticz on the Pi2 but still get the same message

"Error: Failed to start the web server: bind: Address already in use
Error: check if no other application is using port: 8080"
TheBod
Posts: 52
Joined: Friday 01 January 2016 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by TheBod »

jvdz wrote:
TheBod wrote:Ah, I have just realised something that may be important. I am running Domoticz already on my windows PC (http://127.0.0.1:8080/#/Dashboard). Is this causing the issue?
That should be no issue. just try opening the Raspberry's domoticz website from your PC with the correct IP address you gave to the Raspberry.

Jos
Silly question, how do i find the raspberry's IP address?
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by Westcott »

Another idiot here...
I'm just about to get my first pi and use it rather than Windows.
My question is: where do you get your pi image files from?
I can't see any on http://sourceforge.net/projects/domotic ... p_redirect, just Windows installers.
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
User avatar
jvdz
Posts: 2311
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by jvdz »

Seems you are a little confused here. :)
Domoticz starts automatically on your raspberry so trying to run it again will obviously fail!

Did you try connection to your raspberry from your windows pc with http://192.168.x.x:8080 (and fill in the ip address you gave the raspberry!)

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
TheBod
Posts: 52
Joined: Friday 01 January 2016 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by TheBod »

User avatar
jvdz
Posts: 2311
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by jvdz »

TheBod wrote: Silly question, how do i find the raspberry's IP address?
Ah ... you haven't set that yet. :)

Just follow the Wiki: http://www.domoticz.com/wiki/Domoticz_R ... i_SD_Image

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
TheBod
Posts: 52
Joined: Friday 01 January 2016 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by TheBod »

Jos

This is what I get when i do ifconfig

Does this mean that the ip address is 192.168.1.255?
Attachments
IMG_8287.JPG
IMG_8287.JPG (120.56 KiB) Viewed 4367 times
User avatar
jvdz
Posts: 2311
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by jvdz »

Nah, 192,168.1.129 ;)
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
TheBod
Posts: 52
Joined: Friday 01 January 2016 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by TheBod »

Success. On the windows pc it now loads up Domoticz.

How do I run this on the Pi2 so that I can connect the RFXcom433 and get started?
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by Westcott »

TheBod wrote:Westcott

Try going to http://sourceforge.net/projects/domoticz/files/
Thanks, but that also only has Windows setup files.
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
TheBod
Posts: 52
Joined: Friday 01 January 2016 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by TheBod »

This is what I get
Attachments
Capture.PNG
Capture.PNG (148.44 KiB) Viewed 4364 times
User avatar
jvdz
Posts: 2311
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by jvdz »

Not sure I understand that question. You are running Domoticz on the RPI when you connect from your windows pc to http://192.168.1.129:8080 !
Just connect your RFXcom433 to one of the USB ports of the RPI and you should be in business (might have to restart Domoticz)

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
jvdz
Posts: 2311
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by jvdz »

Westcott wrote: Thanks, but that also only has Windows setup files.
Just follow the Wiki i linked in one of the previous posts, which also has the info for the RPI image.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
TheBod
Posts: 52
Joined: Friday 01 January 2016 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Idiots guide to Raspberry Pi Installation

Post by TheBod »

Thank you very much Jos. Ever so sorry for being really stupid with this. Pi and Linux is new to me. Graet to have experts like you available. :)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests