Install on Pi, using non-standard inverter

others protocols
Post Reply
mattnj
Posts: 3
Joined: Sat Nov 30, 2013 7:58 pm

Install on Pi, using non-standard inverter

Post by mattnj » Sat Nov 30, 2013 8:05 pm

Hi,
I am very new to this, and no linux expert so please be gentle...

I have a system running logging my PV generation (2 inverters) already on the Pi, so I have the data coming in ok, although it only shows the total power in Watts, no other data, it is running on the pi via an openenerygymonitor system within a php file which is currently logging to an RRD database every 5 secs, i can easily change this php to post the data into 123solar if someone can provide a little help!

I have solar123 setup with the Aurora code but no data coming in, I just need to post my data into the solar123 bit somehow?

Thanks in advance, looks like a great tool!

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

Re: Install on Pi, using non-standard inverter

Post by jeanmarc » Sun Dec 01, 2013 9:06 am

Hi,

Check scripts/protocols examples. You'll see 3 files for each protocols :

- aurora.php for the main pooling, it should return :

$SDTE = date format is 20131201-09:00:38
$I1V = array 1 voltage
$I1A = amperage
$I1P = power
$I2V = array 2 volt
$I2A = amperage
$I2P = power
$GV = Grid volt.
$GA = Grid amp.
$GP = Grid Power
$FRQ = Grid frequency
$EFF = Efficiency
$INVT = Inverter temperature
$BOOT = Booster temp
$KWHT = Total kWh counter
$RET = should return OK if the frame is complete

- aurora_checks for the checks done each 5 min, that 's

$ILEAK = current ileak in mA
$RISO = r isulation in Mohm
$PPEAK = peak power of all time
$PPEAKOTD = peak power of the day
$RET = 'OK';

$CMD_STATE = State text file shown in dashboad
$CMD_ALARM = Alarm command

- aurora_startup for the daily startup

$CMD_INFO = Info txt file show in info section
$CMD_SYNC = Sync time command

mattnj
Posts: 3
Joined: Sat Nov 30, 2013 7:58 pm

Re: Install on Pi, using non-standard inverter

Post by mattnj » Sun Dec 01, 2013 8:09 pm

Thanks.....stupid question, how do I change this to post my data? I am really new to this!
Do i need to be changing my existing php file or the Aurora file?


I already have a PHP file running on a cronjob every 5 seconds which is posting the data to rrd like this:-

exec("rrdtool update /var/www/rrd/RRD_DB_Node" . $values[1] . ".rrd N:" . $powervalue );

which works fine (adding data to RRD)

Can I add a line to my existing php file to run something to post the data somehow?

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

Re: Install on Pi, using non-standard inverter

Post by jeanmarc » Mon Dec 02, 2013 9:07 am

You should create your_protocol files.
If you wish to continue to use your RRD you must fetch the data from there, but the live things will be delayed of 5sec.
If you can get ride of your RRD, you can modify the $CMD_ with your com. app.

mattnj
Posts: 3
Joined: Sat Nov 30, 2013 7:58 pm

Re: Install on Pi, using non-standard inverter

Post by mattnj » Mon Dec 02, 2013 1:47 pm

thanks.

I really wish I had any idea what you mean :?

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

Re: Install on Pi, using non-standard inverter

Post by jeanmarc » Mon Dec 02, 2013 3:14 pm

I re-read your post, 123solar needs the total counter value (kWh) :roll:
The other values are not mandatory..

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests