Android app for the Classic

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

Previous topic - Next topic

Graham

Quote from: binkino on April 06, 2016, 04:41:54 AM
Hi Graham,

a wish - again - :D

have now 2 Classics in use,
also port forward in the router to both Classics, so I can connect from my phone to the Classics.
I set my URL and port number for the first, and set these datas for the second Classic in the App. It works.
But in the headline I only see the URL, not the name of the Classic, so I can not distinguish them.

Can you add the Classic's name to the headline?
Appears only, when set the direct IP address and connectet in the local lan

Thanks

...
one idea, will it be possible to set an pv-output account for each Classic?
optional akkumulating for one account, like now, and other option for an account for each Classic? ;)


Andy,
I have a version of the app (app-release.2.3.3.apk) that has the classics name as the headline in my dropbox for you to try
https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0

If you install the dropbox app (https://play.google.com/store/apps/details?id=com.dropbox.android&hl=en)  on your phone, then you can install my app with a single click.

The multiple pvOutput support feature is more work than I have time for these days, the source code is available on Github if anyone would like to customize the app using Android Studio.

https://github.com/graham22/Classic

Graham
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 April 26, 2016, 07:59:21 PM
Andy,
I have a version of the app (app-release.2.3.3.apk) that has the classics name as the headline in my dropbox for you to try
https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0

Thanks!  ;)

Quote
The multiple pvOutput support feature is more work than I have time for these days, the source code is available on Github if anyone would like to customize the app using Android Studio.
https://github.com/graham22/Classic
Graham

no problem, it is not a really importand thing. :)

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

Westbranch

Quote from: Graham on April 26, 2016, 07:42:14 PM
Quote from: ClassicCrazy on April 26, 2016, 05:55:52 PM
Quote from: Westbranch on April 26, 2016, 03:00:48 PM
Hi Graham, i have a strange question. Yesterday I added a password to the WiFi router at the cabin, cause I got tired of AVAST giving me  an error message as it told me the system was dangerous, all alone at the lake, and only the neighbours cabin , randomly....so I changed the P/W and set about entering the P/W on my laptop and wife's Surface... 
then the TAB4....  it would not connect and I get a little triangle in the list of Machines. This is after going into settings and adding the P/W so I have a NET  connection.

I assume the "Classic 29032" showing in the sliding tab is in memory.



So am I right that I have to clear all data and  then let it auto connect?


I think you slide the old network  to the left and it erases the old system , and then let it auto find it again. I did something like that on my Android when I switched some stuff around.
Larry

Yes, that's correct, with the nav bar open, slide the item to the right to delete it then let it auto detect a new connection (assuming you have ahttp://midniteforum.com/Smileys/default/smiley.gifuto detect enabled).

Graham

OK back on site,
Yes the Auto detect was on, and as suggested I slid the items ( I added 2 more items trying different things that did not work) to the right (on this machine) and they were gone!  :)
restarted TAB just to reboot everything.....NADA...so off to look at the router settings....
I had WEP Encryption (68 or 124 bit options) turned on and a simple P/W ....

As soon as I turned off the P/W and WEP the TAB recognised the TAB and all is well again...

Any ideas as t what might be interfering?
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: Westbranch on April 30, 2016, 01:05:11 PM

OK back on site,
Yes the Auto detect was on, and as suggested I slid the items ( I added 2 more items trying different things that did not work) to the right (on this machine) and they were gone!  :)
restarted TAB just to reboot everything.....NADA...so off to look at the router settings....
I had WEP Encryption (68 or 124 bit options) turned on and a simple P/W ....

As soon as I turned off the P/W and WEP the TAB recognised the TAB and all is well again...

Any ideas as t what might be interfering?

Not sure why it make a difference unless your router is blocking the modbus port when WEP is on, or its blocking the UDP broadcasts from the classic causing it not to be auto detected by the app.

You could try to ping the classic from the device using a ping app using the ip address of the classic (just google 'ping tool' or 'ping app' in google play)
The classic has the IP address under its network menu...

if it responds to ping then you could try turning off auto detect and add the IP entry manually using the '+Add' menu item (default port# is 502).



Graham.
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

Just an idea ..
I use AUX1 for low.bat so the inverter is like bypassed and home is using grid.
Is there a way to display the (not)active AUX1 output in the hour log diagram as a line or different colors of the displayed lines in the diagram? :D
I also could see dependent with battery voltages and so on to active system or if it is not... :)
Could see, is my construct, and how long, working off grid?
Thanks ;)

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

Westbranch

Hi Graham, I ended up turning off the P/W and all was operating just fine...  spoke to the local office for the Sat connection and I will give it a go again as there is a FW update needed for security reasons. and there are a couple more options, encryption seemed to be a sticker for connecting  too...  Will be back out in ~ 10 days.

One thing I miss is the ability to have both Battery Volts and Amps on one screen, reason is I am playing with the charge limits to see if a lower/higher settings will give me less batt heating and better overnight capacity.... just thinking out loud...

Thanks for a great app!
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: binkino on May 05, 2016, 09:18:52 PM
Just an idea ..
I use AUX1 for low.bat so the inverter is like bypassed and home is using grid.
Is there a way to display the (not)active AUX1 output in the hour log diagram as a line or different colors of the displayed lines in the diagram? :D
I also could see dependent with battery voltages and so on to active system or if it is not... :)
Could see, is my construct, and how long, working off grid?
Thanks ;)

I can only display information that is recorded by the classic day/hour logs, you would need something like the 'black box' project that remains running 24/7 recording data into its memory for eventual display in a web page.

Graham.
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: Westbranch on May 05, 2016, 09:47:24 PM
Hi Graham, I ended up turning off the P/W and all was operating just fine...  spoke to the local office for the Sat connection and I will give it a go again as there is a FW update needed for security reasons. and there are a couple more options, encryption seemed to be a sticker for connecting  too...  Will be back out in ~ 10 days.


I can't understand why the PW would affect the modbus protocol, can you access your router web page from the android device? is it just blocking access to the classic?

I use a cheap ($20) wireless dlink router at the cottage so I can access the classic over wireless (without internet), works fine with a PW.
The app reads the PVOUtput data when it accesses the classic and uploads it to PVOutput when I get back home to internet access.

Quote from: Westbranch on May 05, 2016, 09:47:24 PM
One thing I miss is the ability to have both Battery Volts and Amps on one screen, reason is I am playing with the charge limits to see if a lower/higher settings will give me less batt heating and better overnight capacity.... just thinking out loud...

I assume you're talking about the hour log chart,
I used an open source (aka free) chart component within the app that only supports one vector at a time.
you could download the data using the local app and chart it in excel


Graham.
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

Westbranch

I can't understand why the PW would affect the modbus protocol, can you access your router web page from the android device? is it just blocking access to the classic?

It appeared ,that I could surf with the Tab, that is the puzzle.  I will try without a web connection also to see if that is part of the issue.

thanks for the thoughts...
e
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

binkino

Quote from: Graham on May 06, 2016, 12:09:41 PM
Quote from: binkino on May 05, 2016, 09:18:52 PM
Just an idea ..
I use AUX1 for low.bat so the inverter is like bypassed and home is using grid.
Is there a way to display the (not)active AUX1 output in the hour log diagram as a line or different colors of the displayed lines in the diagram? :D
I also could see dependent with battery voltages and so on to active system or if it is not... :)
Could see, is my construct, and how long, working off grid?
Thanks ;)

I can only display information that is recorded by the classic day/hour logs, you would need something like the 'black box' project that remains running 24/7 recording data into its memory for eventual display in a web page.

Graham.

Hi Graham,
ah okay, didn't know that the aux are not recorded.
I was thinking it is possible, because the AUX are displayed in the center gauge with the watts of the PV
So one idea was, it could look like the line I draw in the attachment of this post


btw in display "portrait" mode, the menu is missing like "battery voltage"
And I would be happy, if you can display the lowest value of the grid in the graphic, I marked it with a pink "? --"

;)


Thanks,
Andy
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 07, 2016, 08:00:39 AM

btw in display "portrait" mode, the menu is missing like "battery voltage"
And I would be happy, if you can display the lowest value of the grid in the graphic, I marked it with a pink "? --"


Thanks Andy, I'll add it to the bug list,
There are many different screen resolutions and densities to support with android, it's difficult to test them all...


Graham.
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

#206
Quote from: Graham on May 08, 2016, 09:24:08 AM
Thanks Andy, I'll add it to the bug list,
There are many different screen resolutions and densities to support with android, it's difficult to test them all...
Graham.
you have us for testing ;)

thanks
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

Well it's a raining outside this morning so I decided to add another tab to the app.

The 'Live Chart' tab will plot the battery voltage, cc & whizbang current as well as a band indicating the charge state. Tapping on the chart will popup a value marker and highlight crosshairs, it can also pinch zoom and pan.

Unlike the day/hour logs, the data is not saved on the device so the data is lost when the app is closed.

Here is a link to my dropbox folder if you would like to try it, let me know what you think or if you see any issues.

https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0   

click on the app-release.2.4.0.apk from within the dropbox app to install, it might ask you to uninstall the previous version.


Graham.

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

#208
Hey wohoo! :D  That's a good idea, just playing with it, yes I love it! ;)

How long will it accumulate data for the screen? App and screen must stay active?

Amazing again!!! 

Edit:
UUUPS!
Before updating on the tablets I had 2.1.5 on both
(why did I not update on them? mh...)
viewing the 24v on one, and the 48v on the other tablet

First I tested the 2.4.0 in the emulation and looked great.

Now updated my both tablets (Asus 7" HD, Android 4.2.2,  I get a 2nd the last days really cheap, hehe - so now have two similar, thats eye candy!)
and now I was wondering, why the 48v displays it all, but the 24v not (on the other tab)
playing around, deactivate the auto search for classics ... removed the stored network connection and manually enter them, like i need it in the tab... nope. mh...
Down to 2.3.3 ... same. down to 2.3.2. ... same.
:-[ why?  :-[
Then: have on one tab the 2.4.0 and connected to the 24v system, and the other is 2.1.5 and auto-search for classic, and you see them both with the IP address, and the yellow /!\  with the orange rotating ... so it can not connect to one of them, while the 2.4.0 on the other tab is open.


What can I do, so I can have each tab connected to its Classic, without interfering with the new version ?
Looks like the App "speaks" to both, also if they are not selected / stored in the network of the App, and blocks them on this way?


Now its too late again (4'am) ... back to version 2.1.5. - works
good night ;)
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

Westbranch

#209
Hmmmm, what IP addresses are you using? 
First thought was auto detect, but you shut that off....
Did you try a reboot on each machine?


Ps Graham, looks good so far, even shows fridge start puling the voltage doen to approx. 5 volts on startup, interesting!
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