reserve85 / HoymilesZeroExport

Zero Export Script for Hoymiles Inverters using AhoyDTU / OpenDTU and Tasmota Smart Meter inferface / Shelly 3EM / SHRDZM / Emlog / ioBroker
GNU General Public License v3.0
144 stars 33 forks source link

SELECT_INTERMEDIATE_METER to be a script ? #197

Closed Thierry43 closed 6 months ago

Thierry43 commented 6 months ago

Hello, Would it be possible to add the option to use a script as an intermediate meter ? I currently use a script as a power-meter to read power value from a MSunPV power router (https://ard-tek.com/). I would also like to use the PV power value read from the same device.

Thanks in advance !

Thierry

Thierry43 commented 6 months ago

Great ! I will test it tomorrow. Just one more question: Must the intermediate meter value be positive or negative ?

If you want to add my scripts to get data from a MsunPV Solar Power Diverter from https://ard-tek.com/ you can find them below:

-----------
#! /bin/bash
# Script to read powermeter values from a MSunPV (ard-tek.com)
IFS=";"
#Grid power
AC_GRID=$(curl -s http://MSunPV_IP/status.xml | tail -n 3 | (read var1 var2 var3; echo ${var1:7:20}))
echo ${AC_GRID%%,*}
------------------------------
#! /bin/bash
# Script to read PV Solar power values from a MSunPV (ard-tek.com)
IFS=";"
#PV Solar power
AC_PV=$(curl -s http://MSunPV_IP/status.xml | tail -n 3 | (read var1 var2 var3; echo ${var2}))
echo ${AC_PV%%,*}
--------------------------------
reserve85 commented 6 months ago

Great ! I will test it tomorrow. Just one more question: Must the intermediate meter value be positive or negative ?

Doesn’t care if pos or neg, it’s converted to an absolute value.

Thierry43 commented 6 months ago

Great ! I will test it tomorrow. Just one more question: Must the intermediate meter value be positive or negative ?

Doesn’t care if pos or neg, it’s converted to an absolute value.

Perfect ! Thanks a million for your great work ;-)

reserve85 commented 6 months ago

Does everything work for you? Then I would add the scripts to the repository…

Thierry43 commented 6 months ago

Everything is working fine !