SDM120 meter afther update 2023.01

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
gvandick
Posts: 37
Joined: Saturday 01 July 2017 12:48
Target OS: Windows
Domoticz version:
Contact:

SDM120 meter afther update 2023.01

Post 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.
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: SDM120 meter afther update 2023.01

Post 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"
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
gvandick
Posts: 37
Joined: Saturday 01 July 2017 12:48
Target OS: Windows
Domoticz version:
Contact:

Re: SDM120 meter afther update 2023.01

Post by gvandick »

Security settings didn't solved the problem

Boths scripts are running by crontab. Could this be an issue?

I
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: SDM120 meter afther update 2023.01

Post 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&param=udevice&idx="$IDX"&nvalue=0&svalue="$POWER";"$TOTAL""}
If it gives back unauthorized then you have to update your security settings.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
gvandick
Posts: 37
Joined: Saturday 01 July 2017 12:48
Target OS: Windows
Domoticz version:
Contact:

Re: SDM120 meter afther update 2023.01

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest