Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.
/ GinMon Public archive

Script for parsing data from m.ginlong.com and use it elsewhere

License

Notifications You must be signed in to change notification settings

WesSec/GinMon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GinMon

Script for parsing data from m.ginlong.com and use it elsewhere (currently only PVoutput is supported) Note: The script is far from finished but it does 'work'.

Installation

git clone https://github.com/wessel145/GinMon.git
cd GinMon && pip3 install -r requirements.txt

*/15 * * * * /usr/bin/python3 <PATH TO GinMon.py> >/dev/null 2>&1

Options:

-c is used to manually set the location of the config file (default: projectdir/config.ini)

Features

  • Checks if new data is available on the ginglong server, script aborts when data is same as previous upload. (lastlog.txt is created for storing this data, modifying it may break the script)
  • Supports multiple inverters (only if 4th gen, max 3 inverters)

ToDo

  • Add domoticz support
  • Add database support
  • Log more data
  • Save timestamp and only log new data
  • Setup script to retrieve deviceID for inverter

MariaDB table create statement

CREATE TABLE `Solaroutput` (
  `log_id` int(11) NOT NULL AUTO_INCREMENT,
  `DCVPV1` float DEFAULT NULL,
  `DCVPV2` float DEFAULT NULL,
  `DCVPV3` float DEFAULT NULL,
  `DCVPV4` float DEFAULT NULL,
  `DCCUR1` float DEFAULT NULL,
  `DCCUR2` float DEFAULT NULL,
  `DCCUR3` float DEFAULT NULL,
  `DCCUR4` float DEFAULT NULL,
  `ACVOL1` float DEFAULT NULL,
  `ACVOL2` float DEFAULT NULL,
  `ACVOL3` float DEFAULT NULL,
  `ACCUR1` float DEFAULT NULL,
  `ACCUR2` float DEFAULT NULL,
  `ACCUR3` float DEFAULT NULL,
  `ACWATT` float DEFAULT NULL,
  `ACFREQ` float DEFAULT NULL,
  `DAYGEN` float DEFAULT NULL,
  `MONGEN` float DEFAULT NULL,
  `ANNGEN` float DEFAULT NULL,
  `TOTGEN` float DEFAULT NULL,
  `INVTMP` float DEFAULT NULL,
  `Updatetime` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`log_id`)
) COMMENT='outputs from m.ginglong';

About

Script for parsing data from m.ginlong.com and use it elsewhere

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages