Page 1 of 1
SDM120 meter afther update 2023.01
Posted: Tuesday 21 February 2023 15:27
by gvandick
I use script for sdm120 meter. Afther update script doesn't update data to devices domoticz.
https://www.domoticz.com/wiki/Eastron_SDM120C
Second problem I use script for energie montoring php script.
Apache Web Server (PHP 8.0)
Don't work anymore afther update 2023.1
Raspberry p3, buster.
Image 2022 backup works all. But lost 1 month data.
Re: SDM120 meter afther update 2023.01
Posted: Tuesday 21 February 2023 15:59
by waltervl
Check the Security settings in m enu Setup - Settings, Tab Security
https://www.domoticz.com/wiki/Security
Especially setting trusted networks and the setting "Allow Basic Authentication over plain HTTP"
Re: SDM120 meter afther update 2023.01
Posted: Wednesday 22 February 2023 9:16
by gvandick
Security settings didn't solved the problem
Boths scripts are running by crontab. Could this be an issue?
I
Re: SDM120 meter afther update 2023.01
Posted: Wednesday 22 February 2023 11:35
by waltervl
Cron is not the problem
Try to run the update part of the script manually to see what fails.
Code: Select all
curl -s {$SERVER"/json.htm?type=command¶m=udevice&idx="$IDX"&nvalue=0&svalue="$POWER";"$TOTAL""}
If it gives back unauthorized then you have to update your security settings.
Re: SDM120 meter afther update 2023.01
Posted: Wednesday 22 February 2023 17:31
by gvandick
I change three items afther trial and error.
First I removed password devices then php script worked.
Then I added local server to server without password in safety panel and change localhost:port in script in fully server adress.
Meters devices solar panels update with data.
Thanks for the lead. Hopely others with this problem can solve this also.
Regards Gerard