Script (comapps) to graph Voltage, Current, Frequency and Power factor

Talks about metering
Post Reply
EdoFede
Posts: 13
Joined: Thu Mar 07, 2019 1:54 pm
Contact:

Script (comapps) to graph Voltage, Current, Frequency and Power factor

Post by EdoFede » Thu Mar 07, 2019 3:03 pm

Hi,

I've written a simple script to graph also Voltage, Current, Frequency and Power factor parameters of the line.
https://github.com/EdoFede/123Solar-met ... Values.php

It has two parameters:
- Meter number (1, 2, 3...)
- Parameter to read (-voltage, -current, -frequency, -cosphi)

Parameter number:
1 = voltage
2 = current
3 = frequency
4 = cosphi

It simply reads meternX.txt from shared memory and extract the required instant value.
Then on meter/sensor setup, you can add the reading using:
- Meter ID = <Meter number>_<Parameter number>
- Command = reqLineValues <Meter number> -<Parameter name>

Here an example:
Image

And the result:
Image

The script must be placed in the comapps directory, given the execution permission and linked to /usr/local/bin.


hope it can be useful.

Bye,
Edoardo
Last edited by EdoFede on Fri Mar 29, 2019 1:27 am, edited 2 times in total.

jeanmarc
Posts: 1822
Joined: Thu Aug 29, 2013 7:16 am

Re: Script (comapps) to graph Voltage, Current, Frequency and Power factor

Post by jeanmarc » Thu Mar 07, 2019 3:27 pm

Thanks for all the work and the feedback :P

EdoFede
Posts: 13
Joined: Thu Mar 07, 2019 1:54 pm
Contact:

Re: Script (comapps) to graph Voltage, Current, Frequency and Power factor

Post by EdoFede » Thu Mar 07, 2019 5:38 pm

Thank you for these useful tools! :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests