Giter Club home page Giter Club logo

solarmon's People

Contributors

ridale avatar sam-ward avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

solarmon's Issues

Outputs changes for Suntwins 4000TL

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 );

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.