Page 1 of 1

[solved] Using Domoticz with many LAN raspberry and DS18B20

Posted: Monday 31 October 2016 17:23
by PeM1664
Hi everybody, I'm a newbie with Domotics and I'm using it for recording temperature issue coming from DS18B20 1-wire sensors.
I've put one or more sensors in each raspberry I have in my house (more than 5) and I'm wondering if I can regroup all the measurement in one Domoticz window?
All the raspberry are in the same network and I've tried to locate them with a Domotics windows in my Ubuntu server but I didn't find the way to do this.. On All Raspb I've installed Domotics but I have to open 1 windows by raspb for have one measurement and 1 log of it..
Is it possible to use only one interface of Domoticz for capture the measurement of different raspb by ssh?
tks for yours answers :)

Re: Using Domoticz with many LAN raspberry and DS18B20

Posted: Monday 31 October 2016 18:37
by antwan
Check the manual and look for domoticz remote server.

Re: Using Domoticz with many LAN raspberry and DS18B20

Posted: Wednesday 02 November 2016 11:36
by PeM1664
I found it! Thanks :)
https://www.domoticz.com/wiki/Setting_up_Device_sharing
it's working perfectly!

Re: [solved] Using Domoticz with many LAN raspberry and DS18B20

Posted: Wednesday 16 November 2016 19:49
by PeM1664
Hi all I re-send... why can"t I see the GPIO ports declared in 1 domoticz web server (and I can see and control them) threw/via a global server using raspberry remote server control config( witch is working very well for temp)?

Re: [solved] Using Domoticz with many LAN raspberry and DS18B20

Posted: Thursday 17 November 2016 9:16
by PeM1664
I found it! just have to action the switch in domoticz remote server to update in domoticz primary

Re: [solved] Using Domoticz with many LAN raspberry and DS18B20

Posted: Friday 21 April 2017 21:01
by madrian
Hi,

Installing Domoticz on all client is a bit overkill.

I solved like this:

temp.sh

Code: Select all

TEMP=$(cat /sys/bus/w1/devices/28-00000463dd89/w1_slave | grep  -E -o ".{0,0}t=.{0,5}" | cut -c 3-)
VAR=$(echo "scale=2; $TEMP/1000" | bc)
curl --connect-timeout 60 "http://192.168.1.54:8080/json.htm?type=command&param=udevice&idx=51&nvalue=0&svalue=$VAR"
And you can run every 5min with cron.

Re: [solved] Using Domoticz with many LAN raspberry and DS18B20

Posted: Monday 27 November 2017 12:02
by kniazio
I'm trying to implement this script but it does not show me the temperature.
Sensor updates but nothing else
Sensor ID and IDX from Domoticz I have inserted correctly
Maybe some error in the script is

Re: [solved] Using Domoticz with many LAN raspberry and DS18B20

Posted: Tuesday 28 November 2017 22:52
by madrian
Uh, I am not using this anymore, but I am trying to help.

What is the output of:

Code: Select all

TEMP=$(cat /sys/bus/w1/devices/28-00000463dd89/w1_slave | grep  -E -o ".{0,0}t=.{0,5}" | cut -c 3-)
echo $TEMP
VAR=$(echo "scale=2; $TEMP/1000" | bc)
echo $VAR
curl --connect-timeout 60 "http://192.168.1.54:8080/json.htm?type=command&param=udevice&idx=51&nvalue=0&svalue=$VAR"

Re: [solved] Using Domoticz with many LAN raspberry and DS18B20

Posted: Wednesday 29 November 2017 5:09
by kniazio
Unfortunately it does not work
temp.jpg
temp.jpg (64.11 KiB) Viewed 3414 times
It only works if I manually make each line separately
temp2.jpg
temp2.jpg (83.72 KiB) Viewed 3412 times
When you add 1.3 at the end of the line ";" works but the console reports errors
temp3.jpg
temp3.jpg (68.46 KiB) Viewed 3409 times

Code: Select all

TEMP=$(cat /sys/bus/w1/devices/28-031552e458ff/w1_slave | grep -E -o ".{0,0}t=.{0,5}" | cut -c 3-);
echo $TEMP
VAR=$(echo "scale=2; $TEMP/1000" | bc);
echo $VAR
curl --connect-timeout 60 "http://192.168.1.100:8078/json.htm?type=command&param=udevice&idx=59&nvalue=0&svalue=$VAR"

Re: [solved] Using Domoticz with many LAN raspberry and DS18B20

Posted: Wednesday 29 November 2017 6:54
by kniazio
Everything works.
It helped:

Code: Select all

Resolved with Notepad++ :
1) Menu->Edit->EOL Conversion -> Unix/OSX Format
2) Then Save
Fixed
Can you write how to add script to cron every 5 minutes?

Re: [solved] Using Domoticz with many LAN raspberry and DS18B20

Posted: Wednesday 29 November 2017 8:20
by pvm
'crontab -e' there's a description in the file which shows up then.

Re: [solved] Using Domoticz with many LAN raspberry and DS18B20

Posted: Wednesday 29 November 2017 8:45
by kniazio
Everything works great.
Thanks a lot!