Collect from Solar Log devices and send the data to your cloud using Ardexa
The purpose of this project is to collect data from Solar Log devices and send the data to the cloud using Ardexa. Data from Solar Log is read using a Linux device such as a Raspberry Pi, or an X86 intel powered computer.
How does it work
A Solar Log device is a product that allows data to be collected from solar inverters. See -> http://www.solar-log.com. This product does not make it easy to store data locally. This project allows data to be collected and either stored locally and/or sent to the Ardexa cloud. These python scripts have been tested on Linux systems and a number of Solar Log devices. If there are any issues with other Solar Log devices, please let us know.
This script will take an IP address of the Solar Log device, and do the following:
- Query a Solar Log device and call down all available data using http.
- Compare the changes to the previous run (so the first run will NOT produce any data)
- Send any changes to a local file and/or to the cloud via the Ardexa agent
- All data is stored in a user specified log directory.
- A check to make sure it can only run once.
- Extract data from connected Solarmax, SMA, ABB or Refusol inverters. Other inverters can be supported. If they are not, please contact us
The Solar Log will take about 5 to 10 minutes to download a month's worth of data (yes, that long!). So the frequency (time between runs) of the script should not be lower than about 10 minutes. Some of the newer models will return data in less than 5 minutes. Also, data from the inverter is copied by the Solar Log every 5 minutes. This is not configurable in Solar Log
On a Raspberry Pi, or other Linux machines (arm, intel, mips or whetever), make sure Python is installed (which it should be). Then install the dependancies and this package as follows:
cd git clone https://github.com/ardexa/solar-log.git cd solar-log pip install .
Send production data to a file on disk
Usage: solarlog_ardexa log IP_address inverter_type output_directory [--old] [--skip-prep] eg: solarlog_ardexa log 192.168.1.55 ABB /opt/ardexa - The `IP Address` is the IP address of the Solar Log device. - The `inverter-type` is either `Solarmax`, `SMA`, `ABB` or `Refusol` inverters. If you need other inverter types, contact us. - The `output_directory` is where data will be written. - Older Solar Log devices with a software firmware of less than about 3.0 (Build 60. March 2014) require the `--old` flag. Also note that the `OLD` style Solar Log devices may stop recording when the inverter is turned off (ie; when the Sun goes down), whereas the `NEW` inverters will write a record all times.
To view debug output, increase the verbosity using the
- standard (no messages, except errors),
-v(discovery messages) or
Collecting to the Ardexa cloud
Collecting to the Ardexa cloud is free for up to 3 Raspberry Pis (or equivalent). Ardexa provides free agents for ARM, Intel x86 and MIPS based processors. To collect the data to the Ardexa cloud do the following:
- Create a
RUNscenario to schedule the Ardexa Solar Log script to run at regular intervals (say every 600 seconds/10 minutes).
- Then use a
CAPTUREscenario to collect the csv (comma separated) data from the filename (say)
/opt/ardexa/solar-log/logs/. This file contains a header entry (as the first line) that describes the CSV elements of the file.
Contact Ardexa at firstname.lastname@example.org, and we'll do our best efforts to help.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size solarlog_ardexa-2.0.11-py2.py3-none-any.whl (8.1 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
Hashes for solarlog_ardexa-2.0.11-py2.py3-none-any.whl