Coder Social home page Coder Social logo

bosswerk mi600 about 123solar HOT 22 CLOSED

jeanmarc77 avatar jeanmarc77 commented on September 17, 2024
bosswerk mi600

from 123solar.

Comments (22)

dr-ni avatar dr-ni commented on September 17, 2024

https://github.com/dr-ni/mi600.git

from 123solar.

jeanmarc77 avatar jeanmarc77 commented on September 17, 2024

Hi,
You can check how to do so .
If you have problem can provide raw data returned by your app ? First query should return all "yourprotocol.php" values, second _startup.php values, and third _check.php values.

username and password shall be passed via "Communication options"

from 123solar.

dr-ni avatar dr-ni commented on September 17, 2024

The script mi600 can only supply the above mentioned three values:
webdata_now_p
webdata_today_e
webdata_total_e
It's returning all results as string.
Other neccessary values should possibly delivered as a fixed dummy.

Can you add an example protocol that is only feeded with neccessary fixed dummy values?
I've tried to modify solarlog.php but was not working only the test in the Inverter section wored.

from 123solar.

dr-ni avatar dr-ni commented on September 17, 2024

Have now started my own dummy example:
example.php.txt
example_checks.php.txt
example_startup.php.txt

is this correct?
The power seems to jump and nothing is logged?

from 123solar.

jeanmarc77 avatar jeanmarc77 commented on September 17, 2024

I need all data value return by your app with explanation

from 123solar.

dr-ni avatar dr-ni commented on September 17, 2024

my app can get these solar grid-sided values (one phase):

  • webdata_now_p: actual solar power (feeding to grid)
    command:
    /usr/local/bin/mi600 solariv admin myPasswd webdata_now_p
    answer string:
    421 W
  • webdata_today_e: cumulative daily solar energy (daily feeded until now to grid)
    command:
    /usr/local/bin/mi600 solariv admin myPasswd webdata_today_e
    answer string:
    2.83 kWh
  • webdata_total_e: cumulative total solar energy (feeded until now to grid)
    command:
    /usr/local/bin/mi600 solariv admin myPasswd webdata_total_e
    answer string:
    187 kWh

from 123solar.

jeanmarc77 avatar jeanmarc77 commented on September 17, 2024

Your total kWh counter isn't precise enough => KWHT is the total counter (a Wh precision is needed)
So it is useless to write a protocol for that one, 123s ain't suitable unless you can have more precision

from 123solar.

dr-ni avatar dr-ni commented on September 17, 2024

We do'nt need these counters. We can count the webdata_now_p

from 123solar.

jeanmarc77 avatar jeanmarc77 commented on September 17, 2024

even though you'll miss some data but that's not that important.
You need to have 3 digits behind the comma (2.83x) can you do so ?

from 123solar.

dr-ni avatar dr-ni commented on September 17, 2024

I could supply wh precision why is this precision needed?

from 123solar.

jeanmarc77 avatar jeanmarc77 commented on September 17, 2024

Graph avg power is calculated from that

from 123solar.

dr-ni avatar dr-ni commented on September 17, 2024

what is missing in my dummy example?

from 123solar.

jeanmarc77 avatar jeanmarc77 commented on September 17, 2024

all cmd request ;)
Please read carefully the wiki all is explained

from 123solar.

dr-ni avatar dr-ni commented on September 17, 2024

can I also use dummy values for that?
where do I have to add the cmd dummys?

from 123solar.

jeanmarc77 avatar jeanmarc77 commented on September 17, 2024

example.php.txt

something like that

from 123solar.

dr-ni avatar dr-ni commented on September 17, 2024

Ok seems to be working. I'll test it a few days and will then integrate the new counter and all the mi600 bash stuff and curl call into a mi600.php so that your 123Solar logger can fetch all data from the Bosswerk Inverter without any additional app

from 123solar.

jeanmarc77 avatar jeanmarc77 commented on September 17, 2024

Great, keep me inform

from 123solar.

dr-ni avatar dr-ni commented on September 17, 2024

Have now started to hack in my mi600 protocol:
https://github.com/dr-ni/123solar_mi600/blob/main/scripts/protocols/mi600-webif.php
How should I write to DEBUG and how can I throw a not connected alarm which is visible in the UI?

from 123solar.

jeanmarc77 avatar jeanmarc77 commented on September 17, 2024

looks good.
Normal debug is 2> (stderr), that won't throw things in the UI (stdout for normal output)

from 123solar.

jeanmarc77 avatar jeanmarc77 commented on September 17, 2024

You can also put

if ($DEBUG) {
file_put_contents("/var/www/html/dt.txt", $SDTE.": Pnow=".$Pnow." P=".$P." dt=".$DT." E=".$Etotal." Err=".$ERR."\r\n", FILE_APPEND);
}

from 123solar.

dr-ni avatar dr-ni commented on September 17, 2024

see also:
#11

from 123solar.

jeanmarc77 avatar jeanmarc77 commented on September 17, 2024

Thanks for the pull

from 123solar.

Related Issues (20)

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.