Search found 6 matches

by MareRubato
Sunday 21 July 2019 17:22
Forum: Utility
Topic: sdm120c
Replies: 9
Views: 2618

Re: sdm120c

With some help I got it to work.
I made a new virtual sensor with sensor type P1 smart meter
I changed the sdm120.sh script to:
#!/bin/bash

# Read out modbus meter
#echo Reading values from Eastron SDM120c Modbus Meter, please wait....
values=`sudo sdm120c -a 1 -b 9600 -e -p -P N -q -z 3 -j 20 ...
by MareRubato
Tuesday 16 July 2019 19:59
Forum: Utility
Topic: sdm120c
Replies: 9
Views: 2618

Re: sdm120c

Thanks
Ok I did
pi@raspberrypi:~/domoticz/scripts $ sudo chmod +x sdm120.sh

Then
pi@raspberrypi:~/domoticz/scripts $ ./sdm120.sh
{
"status" : "OK",
"title" : "Update Device"
}
{
"status" : "OK",
"title" : "AddLogMessage"
}

What does this mean?
Still can not see it in Domoticz.

I did ...
by MareRubato
Tuesday 16 July 2019 11:58
Forum: Utility
Topic: sdm120c
Replies: 9
Views: 2618

Re: sdm120c

Unfortunately not. It gives the same error.
by MareRubato
Monday 15 July 2019 13:03
Forum: Utility
Topic: sdm120c
Replies: 9
Views: 2618

Re: sdm120c

My sdm120.sh script.
#!/bin/bash
#title :solar
#description :Read current from sdm120 and sends it to Domoticz.
#author :JM
#date :20160605
#version :0.1
#usage :./solar
#notes :
#bash_version :
#==============================================================================
SERVER="http://192.168.1 ...
by MareRubato
Monday 15 July 2019 8:12
Forum: Utility
Topic: sdm120c
Replies: 9
Views: 2618

Re: sdm120c

Yes I did at first, no difference. I have it every 10 sec so it refreshes in the same speed as my P1 meter. Then I can see the real electricity use.
by MareRubato
Sunday 14 July 2019 20:34
Forum: Utility
Topic: sdm120c
Replies: 9
Views: 2618

sdm120c

Hey All,

Very new to Pi but I love it.
I have a Eastron SDM120 modbus with a RS485 usb and connected it to my Pi 3 B+.
I installed https://www.domoticz.com/wiki/Eastron_SDM120C and made a dummy.

If I type
sdm120c -a 1 -b 9600 -P N -S 2 -z 1 -j 20 /dev/ttyUSB1

I get

pi@raspberrypi ...