Android app for the Classic

Started by Graham, January 06, 2014, 07:54:42 PM

Previous topic - Next topic

Resthome

Quote from: Graham on May 30, 2016, 11:40:44 AM
Quote from: Resthome on May 30, 2016, 07:30:45 AM

With 2.4.2 I am not getting data uploaded to PVOutput.org  Had been working previously. Have System View unchecked. Have tried the Reset button also but no luck. 5/18/16 is last data.


Do you have more than one classic on your network?

No only one.
John

10 x Kyocera KC140, Classic 150 w/WBJr, Link10 Battery Monitor, 850 AH @ 12v Solar One 2v cells, Xantrex PROwatt SW2000
Off Grid on Houseboat Lake Don Pedro, CA

grgdgreek

I have 2*cl150 in follow me if it helps
George
Home:6*135w mitsu.10*175w shuko. 2* cl150.3*D400 turbines.
Rolls18*4v series 5000 545ah*3 .2*Victron 3000 multiplus inv/chg. 24v. Shop:28*185w shuko. Sunny island. Sunnyboy.Rolls 40*s530.48volt.Sunny web box.

Westbranch

John, in the "ABOUT" , last screen, it says

'' The daily energy recorded can be sent ...  by supplying an API Key and SID# in the settings for each controller"... 

Is that sent and what did you use?
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

Graham

Quote from: Resthome on May 30, 2016, 02:19:04 PM
Quote from: Graham on May 30, 2016, 11:40:44 AM
Quote from: Resthome on May 30, 2016, 07:30:45 AM

With 2.4.2 I am not getting data uploaded to PVOutput.org  Had been working previously. Have System View unchecked. Have tried the Reset button also but no luck. 5/18/16 is last data.


Do you have more than one classic on your network?

No only one.

Could you try it with System View Checked, + make sure the SID is still there,

I modified the PVOutput uploader to support multiple independent classics to support Andy's setup when the System View is unchecked
this new uploader should not be used when you have one classic, I'll have to add that condition in the code

Normally you would enable System View when you have more than one classic in follow me mode supplying one battery bank
you would disable it if you have multiple classics supplying different battery banks (Andy's setup)

If you have one classic, then the System View should be a no-op and probably hidden, which I shall fix.

Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

Resthome

Quote from: Westbranch on May 30, 2016, 02:31:02 PM
John, in the "ABOUT" , last screen, it says

'' The daily energy recorded can be sent ...  by supplying an API Key and SID# in the settings for each controller"... 

Is that sent and what did you use?

Yep have my own API Key and SID# from my PVout.org account. It worked with older versions, but I usually don't use it because I normally have no internet access. This weekend i'm pickin up one of the homeowners Wi-Fi for internet.
John

10 x Kyocera KC140, Classic 150 w/WBJr, Link10 Battery Monitor, 850 AH @ 12v Solar One 2v cells, Xantrex PROwatt SW2000
Off Grid on Houseboat Lake Don Pedro, CA

Resthome

Quote from: Graham on May 30, 2016, 02:38:30 PM
Quote from: Resthome on May 30, 2016, 02:19:04 PM
Quote from: Graham on May 30, 2016, 11:40:44 AM
Quote from: Resthome on May 30, 2016, 07:30:45 AM

With 2.4.2 I am not getting data uploaded to PVOutput.org  Had been working previously. Have System View unchecked. Have tried the Reset button also but no luck. 5/18/16 is last data.


Do you have more than one classic on your network?

No only one.

Could you try it with System View Checked, + make sure the SID is still there,

I modified the PVOutput uploader to support multiple independent classics to support Andy's setup when the System View is unchecked
this new uploader should not be used when you have one classic, I'll have to add that condition in the code

Normally you would enable System View when you have more than one classic in follow me mode supplying one battery bank
you would disable it if you have multiple classics supplying different battery banks (Andy's setup)

If you have one classic, then the System View should be a no-op and probably hidden, which I shall fix.

Yep that worked, Thanks Graham. BTW Love your app
John

10 x Kyocera KC140, Classic 150 w/WBJr, Link10 Battery Monitor, 850 AH @ 12v Solar One 2v cells, Xantrex PROwatt SW2000
Off Grid on Houseboat Lake Don Pedro, CA

Graham

Quote from: Resthome on May 30, 2016, 02:41:02 PM
Yep have my own API Key and SID# from my PVout.org account. It worked with older versions, but I usually don't use it because I normally have no internet access. This weekend i'm pickin up one of the homeowners Wi-Fi for internet.

The app has a 'Store and Forward' feature for PVOutput, when it connects to your classic it will save the day logs in a file on your device if it can't access PVOUtput.org, later, when you get home to wifi with internet access, if you let the app run for a few minutes, it will upload the day log data to PVOutput.org
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

Graham

Quote from: binkino on May 29, 2016, 05:53:26 PM
Graham,

sorry don't work like expected

If one Tab has both found, the other finds both but can nothing do with themm.
If one has only one Classic, the other can sometimes connect to the other, but displays no alias. Then like it is now, the other show the IP in the headline and "blinks" "- (RUHEND" (what was it in english, ehm "resting") and in the gauges in the same rhythm the needles come up for a flash of a second

This could be due to the fact that the classic can only support one TCP connection at a time, if you have two devices with 'Auto Detect Classic' turned on, it might cause the problem you're experiencing since they are both trying to establish a connection the each classic.

Could you try just using one android device

just to make sure it's in the correct mode, start the app then uncheck the 'Enable System View' and check the 'Auto Detect Classics', save/apply the settings
clear out any existing entries in the nav bar by sliding them to the right
then shut down the app to make sure that setting is saved.
Then start the app again and wait a couple of minutes for the classics to be auto detected.

Let me know if this basic test works and we'll go from there.

Background Info:

The classics broadcasts a UDP packet on your local network every minute or so, this packet contains the classics IP Address and the Modbus port number
When the app has Auto Detect turned on, it will listen for this broadcast, when it gets one that is not already configured, it will display the IP address on the Nav bar and will attempt to connect to the classic, once connected, it will request the unit name by reading the modbus address 4209 ( the unit name can be set with the local app, 'Classic' by default) and replace the IP address with the unit name in the Nav bar.
When Auto Detect Classic is unchecked, you have to manually enter the classics IP address and port by pressing the +Add when the Nav Bar is in view. When the app connects to the given IPAddress, it will replace the IPAddress in the NAv Bar with the unit name as it did with Auto Detect mode.

You can also enter a Domain name instead of an IP Address, the app will then perform a DNS lookup to convert the DN to an IP Address. This is normally used when you have port forwarded your classic and have purchase a DDNS service and Domain Name registration that will resolve to your routers WAN IP address.

Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

binkino

Hi Graham,

today the tab wanted to ... me. :P
I took the tab that displays the 48v System.

Had installed the old version version again, now updated again to the 2.4.2 version
https://youtu.be/kDkSh1J_dok
now it crashed again and again

Also rebooted the device, crashed.


It worked now, after I set:
"System view enabled" on and deactivate it after it has found the two classics.
Than remove the 2nd classic that will be displayed on the other device, so it can be displayed on the 2nd device

https://youtu.be/prB4kCKpvOg
On the 2nd device is installed the old version


(sorry cam has problem with focusing because the protective foil on the display)


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

Graham

Quote from: binkino on May 31, 2016, 05:09:35 AM
Hi Graham,

today the tab wanted to ... me. :P
I took the tab that displays the 48v System.

Had installed the old version version again, now updated again to the 2.4.2 version
https://youtu.be/kDkSh1J_dok
now it crashed again and again

Also rebooted the device, crashed.


It worked now, after I set:
"System view enabled" on and deactivate it after it has found the two classics.
Than remove the 2nd classic that will be displayed on the other device, so it can be displayed on the 2nd device

https://youtu.be/prB4kCKpvOg
On the 2nd device is installed the old version


(sorry cam has problem with focusing because the protective foil on the display)


hmm, I have some work to do!

can you confirm that you didn't have PVOutput setup/enabled during the test? couldn't see the setting in the video

Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

binkino

Quote from: Graham on May 31, 2016, 11:56:15 AM
hmm, I have some work to do!

can you confirm that you didn't have PVOutput setup/enabled during the test? couldn't see the setting in the video

:)

PVOutput was not set and not active ;)

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

Graham

Quote from: binkino on May 31, 2016, 06:40:30 PM
Quote from: Graham on May 31, 2016, 11:56:15 AM
hmm, I have some work to do!

can you confirm that you didn't have PVOutput setup/enabled during the test? couldn't see the setting in the video

:)

PVOutput was not set and not active ;)

I fixed one issue, but I'm sure there's more...
let me know if you can connect with System View unchecked

https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

binkino

Thanks, Graham

Have uninstall 2.4.2beta and install the new version
Did not crash after start,
it found both classic after start, I removed them, then go to settings and set "System View" unchecked, no problem
also testing "detect classic" un/checked = no crash :)
I let it find both classic, switch between them, no problem
I let the 48v classic on this device open,
and open the old version on the other device with 24v system displaying,
it works, no interferences
PVOutput is unchecked.


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

Graham

Quote from: binkino on June 01, 2016, 05:37:27 AM
Thanks, Graham

Have uninstall 2.4.2beta and install the new version
Did not crash after start,
it found both classic after start, I removed them, then go to settings and set "System View" unchecked, no problem
also testing "detect classic" un/checked = no crash :)
I let it find both classic, switch between them, no problem
I let the 48v classic on this device open,
and open the old version on the other device with 24v system displaying,
it works, no interferences
PVOutput is unchecked.

Thanks Andy,

The PVOutput now has two modes,
when SystemView is checked, PVOutput is like is was before, the system energy is uploaded to one PVOutput SID/account.
when SystemView is unchecked, you can now enter a separate SID for each classic, (enter the SID while connected to a classic). The PVOutput uploader should upload the day logs for each classic to each SID/PVOutput account.
When you have one classic, the pvOutput code should default to the first mode. (still need to hide the SystemView setting when one classic is detected)

I haven't had a chance to test the second mode, hopefully I'll be able to test it this weekend when I get up to the lake with me second classic.

Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

ClassicCrazy

I just loaded the newest version of app from Dropbox.
It found both of my systems and all seems to work okay - except  I don't have any loads on one of my systems and it shows Consumption 232 W which is the same as the other system which is the one that has the loads on it .

These two classics are independent of each other with their own batteries and don't share anything - both have their own Whizbang etc.

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