ridale / solarmon Goto Github PK
View Code? Open in Web Editor NEWMonitoring for JFY solar inverter written in C for linux
License: GNU General Public License v2.0
Monitoring for JFY solar inverter written in C for linux
License: GNU General Public License v2.0
No so much of an issue, but may assist others.
I have a Suntwins 4000TL with two strings of arrays. I think I have sorted out the different outputs, but not 100% with the string DC currents. These are the outputs I have changed in solarmon.c
int16_t Temp = ((buf[0] << 8) + buf[1]); // 10.0;
uint16_t VDC1 = ((buf[2] << 8) + buf[3]);
uint16_t VDC2 = ((buf[4] << 8) + buf[5]); // 10.0;
uint16_t IDC1 = ((buf[6] << 8) + buf[7]);
uint16_t IDC2 = ((buf[8] << 8) + buf[9]);
uint16_t TodayE = ((buf[10] << 8) + buf[11]); // 100.0;
uint16_t IAC = ((buf[12] << 8) + buf[13]); // 10.0;
uint16_t VAC = ((buf[14] << 8) + buf[15]); // 10.0;
uint16_t FAC = ((buf[16] << 8) + buf[17]); // 100.0;
int16_t CurrP = ((buf[18] << 8) + buf[19]);
char str[512];
memset(str,0, 512);
snprintf(str, 512, "{\"Temp\":%d,\"VDC1\":%u,\"VDC2\":%u,\"IDC1\":%u,\"IDC2\":%u,\"TodayE\":%u,\"IAC\":%u,\"VAC\":%u,\"FAC\":%u,\"CurrP\":%d}",
Temp, VDC1, VDC2, IDC1, IDC2, TodayE, IAC, VAC, FAC, CurrP );
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.