After a compleet new installation of Domoticx on raspi 3b+ and installation of my scripts SDM220C that works before perfectly there is no communication.
Code: Select all
# AESTRON SDM220C Solar Energy Production ..........
VALUES=NOK # if Not Oké
echo $VALUES #Debugging line
while [ "$VALUES" = "NOK" ]
do # reading from meter sdm220 modbus device nr 1 option -a 1
VALUES=`/home/pi/SDM120C/sdm120c /dev/ttyUSB0 -b 9600 -P N -S 1 -a 1 -p -t -q -2` #p=power / t=total / q=short output
echo $VALUES #Debugging line
done
POWER=`echo $VALUES | cut -d ' ' -f1`
TOTAL=`echo $VALUES | cut -d ' ' -f2`
echo $POWER $TOTAL
# update domoticz device for solar energy
curl -s {$SERVER"/json.htm?type=command¶m=udevice&idx="$IDS"&nvalue=0&svalue="$POWER";"$TOTAL""} #send current to domoticz
sdm120c 1.3.5.4: ModBus RTU client to read EASTRON SDM120C smart mini power meter registers Copyright (C) 2015 Gianfranco Di Prinzio <[email protected]> Complied with libmodbus 3.0.6 Usage: /home/pi/SDM120C/sdm120c [-a address] ………………………
and much more.
Is there anyone that can help me out.
Joop