How to connect the Aurora Power One inverter to EmonCMS

Hello,

I'd like to share with you the way I did connect my Aurora inverter to EmonCMS...

Connecting the Aurora Power One inverter used to convert the DC energy of my photo voltaic panel was quite easy, once the Aurora inverter has been connected to my Linux server using a simple RS485 cable, and a cheap RS485 to USB converter bought on ebay.

Here is how I have proceeded:

  • A CRON job launch a bash script every 5min
  • This script get the data from the Aurora inverter using the Aurora driver available in the Linux depots, on downloadable here: http://www.curtronics.com/Solar/AuroraData.html
  • Finally, this script use AWK to format the data and build a JSON command that is sent to EMonCMS over IP.

That’s it ! And it works great.

The Bash script “getAuroraData.sh” is given here (you may have to adjust some parameters to fit your needs):

#/bin/bash
URL=$(aurora -a 2 -e /dev/ttyUSB0 -Y15 -d0 -c | awk -f powerOneAurora.awk)
echo $URL
curl $URL
​

 

The AWK script “powerOneAurora.awk” is given here:

BEGIN { printf "http://192.168.0.xx/emoncms/input/post.json?json={alive:22.2222"} 
# To be updated to fit your needs
{
printf ", Input 1 Voltage:%f", $1
printf ", Input 1 Current:%f", $2
printf ", Input 1 Power:%f", $3

printf “, Input 2 Voltage:%f”, $4
printf “, Input 2 Current:%f”, $5
printf “, Input 2 Power:%f”, $6

printf “, Grid Voltage Reading:%f”, $7
printf “, Grid Current Reading:%f”, $8
printf “, Grid Power Reading:%f”, $9
printf “, Frequency Reading:%f”, $10

printf “, DC/AC Conversion Efficiency:%f”, $11
printf “, Inverter Temperature:%f”, $12
printf “, Booster Temperature:%f”, $13

printf “, Daily Energy:%f”, $14
printf “, Weekly Energy:%f”, $15
printf “, Monthly Energy:%f”, $16
printf “, Yearly Energy:%f”, $17
printf “, Total Energy:%f”, $18
printf “, Partial Energy:%f”, $19;

}
END { printf “}&apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&node=PowerOne” } 
# To be updated to your needs.

And then, the CRON tab used to run the script every 5min:

# BR This command is run every 5min
*/5 * * * * root getAuroraData.sh

Hope this helps...

You can find the same page on my website here:

http://wordpress.nbremond.net/category/projets/amelioration-habitat/

PS: I have attached a screen dump of what I get in my EmonCMS web site.

 

Edit - wrapped long lines - BT

TrystanLea's picture

Re: How to connect the Aurora Power One inverter to EmonCMS

Thanks for sharing this nbremond, Il have to try this, we have an aurora power one here :)

nbremond's picture

Re: How to connect the Aurora Power One inverter to EmonCMS

Hello,

Thanks for the fast reply. Let me know if it works for you, or if you need more detail/explaination, because the post I have written does not include a lot of step by step procedure...

Have a good day,

Bernard Rémond.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.