for the Classic: Webview and server for the datas?

Started by binkino, September 15, 2017, 09:28:40 AM

Previous topic - Next topic

binkino

Have received the filed from welmore, thanks again,
fresh installed my BananaPI with Raspbian Jessie, + web server

Just Linux like, have some fights with the rights of the files and folders ... But it is running.
PV-OUTPUT: http://pvoutput.org/list.jsp?id=38617
Classic Lite 200 + Classic 200 + Easun ISolar-SMX-II-5.6KW + 12x240Wp + 12x255Wp + 2x10kWh LFP
http://a68k.de/Solar/Monitor_LC2.php

welmore

I did not know there was a Pi section.  Yes this can move to the Pi section.

Binkino is looking at it now. After his input and maybe some changes, I have no problem sharing the project.


bscloutier

Is there a spec for Classic communications? I am not familiar but wondering if I can adapt monitoring for it. I run SMA inverters (sorry) and report via web. Check out http://www.cloutieronline.com.

While my site is PC based I have been converting it run using a JNIOR which is already reading the inverter's RS-485 netowrk. I wonder if that is an option for the Classic?

ClassicCrazy

#18
Quote from: bscloutier on September 26, 2017, 10:02:13 AM
Is there a spec for Classic communications? I am not familiar but wondering if I can adapt monitoring for it. I run SMA inverters (sorry) and report via web. Check out http://www.cloutieronline.com.

While my site is PC based I have been converting it run using a JNIOR which is already reading the inverter's RS-485 netowrk. I wonder if that is an option for the Classic?

Yes - it is here
http://www.midnitesolar.com/pdfs/classic_register_map_Rev-C5-December-8-2013.pdf

Nice job on your webpage .

Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

bscloutier

This is a simple application for a JNIOR. An application program can collect data points via MODBUS and create a dynamic webpage to display the data. We can piece this together here but don't have access to a Classic data port. Is it possible to open one up over a public IP address so we here in Pittsburgh can work with it for a couple of days? The result would be open source and available to all of you.

My solar plant is monitored and the data can be seen here http://www.cloutieronline.com. This is PC-based and uses SMA inverters (sorry). I had been considering converting over to the JNIOR as that would be better to leave with the next owner. Otherwise they would lose the monitoring since it is on my server now.

Anyway, we're interested in trying to do it for the Classic. That is if any of you would be interested in that.

binkino

Quote from: welmore on September 25, 2017, 11:40:28 PM
I did not know there was a Pi section.  Yes this can move to the Pi section.

Binkino is looking at it now. After his input and maybe some changes, I have no problem sharing the project.

Is working great ;)

I am also working on the design now, did some changes in the code, so I also see the temperatures in °C
This can also be copied for all who have use for it.


If someone wants to see it:
http://a68k.de:81/Solar/Solar_Monitor_de.php
his  original site on my PI:
http://a68k.de:81/Solar/Solar_Monitoring.php
I am just working on the design, so the reload of the site is 2 seconds, don't care about it please.

I just don't know the exact direction of the design for me, I am just playing around and find a combination ;)
This was a very good refresh for me today in writing html and php by hand again
(also with a lot try and error ... )
Like in old times, when we only hat a text editor on the Amiga... :D


The server is a BananaPI M1, 1Ghz 1GB Ram, Sata, USB 2.0 x2, OTG USB, and the best: solder points for a 3.7V battery, also charges the battery.
Sata was importand for me, as it was running as a NAS. But it can do this job later again.
OS:  Raspbian_Jessie + VNC ++ Apache & Co.
Tried some OS distris, this appears the only, that works for me.

PV-OUTPUT: http://pvoutput.org/list.jsp?id=38617
Classic Lite 200 + Classic 200 + Easun ISolar-SMX-II-5.6KW + 12x240Wp + 12x255Wp + 2x10kWh LFP
http://a68k.de/Solar/Monitor_LC2.php

binkino

Quote from: bscloutier on September 26, 2017, 02:21:31 PM
This is a simple application for a JNIOR. An application program can collect data points via MODBUS and create a dynamic webpage to display the data. We can piece this together here but don't have access to a Classic data port. Is it possible to open one up over a public IP address so we here in Pittsburgh can work with it for a couple of days? The result would be open source and available to all of you.

My solar plant is monitored and the data can be seen here http://www.cloutieronline.com. This is PC-based and uses SMA inverters (sorry). I had been considering converting over to the JNIOR as that would be better to leave with the next owner. Otherwise they would lose the monitoring since it is on my server now.

Anyway, we're interested in trying to do it for the Classic. That is if any of you would be interested in that.

I have open ports to my 2 Classics, but if you connect, I can't ... mh...
;)
PV-OUTPUT: http://pvoutput.org/list.jsp?id=38617
Classic Lite 200 + Classic 200 + Easun ISolar-SMX-II-5.6KW + 12x240Wp + 12x255Wp + 2x10kWh LFP
http://a68k.de/Solar/Monitor_LC2.php

ClassicCrazy

Looks good Bikino !
Nice when all the collaboration gets such good results.
Any way to change the type of graph easily ?

Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

ClassicCrazy

Quote from: bscloutier on September 26, 2017, 02:21:31 PM
This is a simple application for a JNIOR. An application program can collect data points via MODBUS and create a dynamic webpage to display the data. We can piece this together here but don't have access to a Classic data port. Is it possible to open one up over a public IP address so we here in Pittsburgh can work with it for a couple of days? The result would be open source and available to all of you.

My solar plant is monitored and the data can be seen here http://www.cloutieronline.com. This is PC-based and uses SMA inverters (sorry). I had been considering converting over to the JNIOR as that would be better to leave with the next owner. Otherwise they would lose the monitoring since it is on my server now.

Anyway, we're interested in trying to do it for the Classic. That is if any of you would be interested in that.

Yes - as Bikino said - only one application can connect at a time to the Classic so you would have to find someone who isn't monitoring their data every day with one of the other monitoring apps.

Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

Westbranch

KID FW1811 560W >C&D 24V 900Ah AGM
CL150 29032 FW V.2126-NW2097-GP2133 175A E-Panel WBjr, 3Px4s 140W > 24V 900Ah AGM,
2 Cisco WRT54GL i/c DD-WRT Rtr, NetGr DS104Hub
Cotek ST1500 Inv  want a 24V  ROSIE Inverter
OmniCharge3024  Eu1/2/3000iGens
West Chilcotin 1680+W to come

bscloutier

Quote from: ClassicCrazy on September 26, 2017, 10:11:41 PM
Yes - as Bikino said - only one application can connect at a time to the Classic so you would have to find someone who isn't monitoring their data every day with one of the other monitoring apps.

Larry

Yeah the SMA Webbox is like that too. It only allows one login. I don't think it was a security feature. I think there is just a single thread running in the thing and it can't multi-task. Maybe the Classic is the same. It takes some serious OS experience to properly write a preemptive multi-tasking system.

The JNIOR can act both as a MODBUS Client and a MODBUS Server. So I suppose we could eventually use it to expand the Classic so you can access it simultaneously from multiple clients through the JNIOR like a hub and continue to monitor with existing software.

Ideally we'll want to work with someone where we won't disturb the status quo. I agree.

Is there a Classic running someplace in southwest Pennsylvania?

ClassicCrazy

Quote from: binkino on September 26, 2017, 08:16:48 PM
Quote from: bscloutier on September 26, 2017, 02:21:31 PM
This is a simple application for a JNIOR. An application program can collect data points via MODBUS and create a dynamic webpage to display the data. We can piece this together here but don't have access to a Classic data port. Is it possible to open one up over a public IP address so we here in Pittsburgh can work with it for a couple of days? The result would be open source and available to all of you.

My solar plant is monitored and the data can be seen here http://www.cloutieronline.com. This is PC-based and uses SMA inverters (sorry). I had been considering converting over to the JNIOR as that would be better to leave with the next owner. Otherwise they would lose the monitoring since it is on my server now.

Anyway, we're interested in trying to do it for the Classic. That is if any of you would be interested in that.

I have open ports to my 2 Classics, but if you connect, I can't ... mh...
;)

Bikino - does this program just gather the data via IP modbus ?  No physical connection to the Classic ? I am guessing that is how it works. 
Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

bscloutier

We're looking at the spec. There's the Daily Total which we can easily actively display. Is there an Instantaneous Power? Even on a clear blue sky day my panels detect con trails from passing air traffic. There was a nice dip from the recent solar eclipse. Unfortunately that wasn't a clear day and a rain storm earlier in the morning made a similar dip. But it's nice to see how the day goes.

We display the curve as background for our record production day. I also keep a Top 100 list of daily production. On good solar days people checking the site often try to predict where on the list the day will end. We display a seasonal range for every couple of hours on the chart. That shows the average on the low end and the maximum at the top for a two week period around the current day at that hour. So if the day's curve passes through there we are happy. Below the range is no good. I don't know how much of that we can do with the JNIOR but we need basically the instantaneous power level from somewhere.

So what data are you all interested in seeing? Can you point to it in the MODBUS spec?

binkino

Quote from: ClassicCrazy on September 26, 2017, 10:08:59 PM
Looks good Bikino !
Nice when all the collaboration gets such good results.
Any way to change the type of graph easily ?

Larry

Thank you :)
Have continued - now the temps are displayed in a graphic way
It is Trek-like - sorry ;-) but I love it hehe
that's the way I will go, but I will use both versions on 2 independent pages later.


PV-OUTPUT: http://pvoutput.org/list.jsp?id=38617
Classic Lite 200 + Classic 200 + Easun ISolar-SMX-II-5.6KW + 12x240Wp + 12x255Wp + 2x10kWh LFP
http://a68k.de/Solar/Monitor_LC2.php

binkino

Quote from: ClassicCrazy on September 27, 2017, 11:23:31 AM
Bikino - does this program just gather the data via IP modbus ?  No physical connection to the Classic ? I am guessing that is how it works. 
Larry


Yes, over IP modbus - via the home network.
The php software / webpage, polls every x seconds the datas from the Classic and stores them in a text file.
The further handling happens on the server (reading, logging, displaying)
So it is also possible to connect to the Classic with the Android App, just between the connects of the php
PV-OUTPUT: http://pvoutput.org/list.jsp?id=38617
Classic Lite 200 + Classic 200 + Easun ISolar-SMX-II-5.6KW + 12x240Wp + 12x255Wp + 2x10kWh LFP
http://a68k.de/Solar/Monitor_LC2.php