A Forum run by Enthusiasts of MidNite Solar

The Open Source software/hardware corner => General info => Topic started by: Graham on January 06, 2014, 07:54:42 PM

Title: Android app for the Classic
Post by: Graham on January 06, 2014, 07:54:42 PM
I'm working on an android app that displays the charge status of a classic over modbus. It's very basic at this point, it will display a gauge view in landscape and a simple list in portrait. It requires a minimum of android API level 15 (version 4.0.3+).

If anyone would like to try it, let me know if it displays correctly on your device, It renders correctly on a nexus 10, I've also tried a galaxy 4 using the emulator.

I haven't completed the settings page, so the gauge scales are currently fixed. 

By default it will scan your local network for port 502, you can set a static IP address or change the port number in the settings.

Since it is not on google play, you will have to allow installation of apps from 'unknown sources', otherwise known as sideloading explained at http://phandroid.com/2013/07/20/android-101-sideloading-apps/ (http://phandroid.com/2013/07/20/android-101-sideloading-apps/).

The APK file is in a public folder on DropBox https://dl.dropboxusercontent.com/u/217460186/Classic/Classic.apk (https://dl.dropboxusercontent.com/u/217460186/Classic/Classic.apk) . (click on this link within your device to install)

The source is on SourceForge at https://sourceforge.net/projects/classicmonitor/ (https://sourceforge.net/projects/classicmonitor/).

(http://main.png)
Main Status Page


Graham.
Title: Re: Android app for the Classic
Post by: Halfcrazy on January 07, 2014, 07:15:48 AM
Graham
Very Very nice. It did not seem to auto detect my classic but when I plugged it in manually it worked. It found something on port 502 at IP 192.168.2.16 and all my Classics are from 190 to 200. When the sun comes up I will play with it more but this is Way Way cool. Any plans to add support for the WBjr?

Ryan
Title: Re: Android app for the Classic
Post by: Graham on January 07, 2014, 08:55:32 AM
Thanks Ryan, I'm planning on getting a WBjr, I could display the battery current gauge as an automotive gauge with +/- amps.
I'll probably add a log screen to help me debug issues like the scan problem, the code used the gateway address and subnet mask to come up with a scan range, it then uses a thread pool to attempt to connect to each address with the given port, I could add a scan range in the settings as an option to limit the range of addresses.

Graham.
Title: Re: Android app for the Classic
Post by: Halfcrazy on January 08, 2014, 06:04:04 AM
So I was playing with it here and it keeps disconnecting and reconnecting like every 2 seconds. I am running a Galaxy S3 with Android 4.3.0010
Title: Re: Android app for the Classic
Post by: Graham on January 08, 2014, 09:19:55 AM
Looks like your getting a modbus exception from the J2Mod library. I`m currently limited to testing against a modbus slave simulator with a galaxy S3 emulator (which don't report any connection errors), I`ll have to try this against my classic this weekend when I get back to my cabin. The last time I was there, my Nexus 10 was able  to remain connected to the (real) classic.
I'm considering replacing the J2Mod with my own implementation, this would allow me to implement the custom file transfer in order to get the logs off the classic so I can chart the data, it would also allow more control over the tcp settings/timeouts etc.
Are you using a tool like wireshark to see the error? If you are can you send me a screen capture?
Title: Re: Android app for the Classic
Post by: Halfcrazy on January 08, 2014, 10:50:55 AM
Let me see if I can run Wire shark and get the info. It may be tomorrow before I can but I will try my best
Title: Re: Android app for the Classic
Post by: RossW on January 08, 2014, 04:44:16 PM
Quote from: Graham on January 08, 2014, 09:19:55 AM
I'm considering replacing the J2Mod with my own implementation, this would allow me to implement the custom file transfer in order to get the logs off the classic so I can chart the data, it would also allow more control over the tcp settings/timeouts etc.
Are you using a tool like wireshark to see the error? If you are can you send me a screen capture?

newmodbus - the utility I wrote about a year back - went the same way. The available modbus libraries were clunky, slow and unnecessarily convoluted to use. So I coded all the classic stuff straight in. It's actually pretty straightforward, don't let the documentation scare you. modbus-over-tcp is basically just building the same modbus frame you would if it were over serial, then adding a small header to it to transport over tcp.

If your code is written in C, I'm happy to share the relevant bits of my code to get you on the way?

R.
Title: Re: Android app for the Classic
Post by: zoneblue on January 08, 2014, 05:42:26 PM
Hey Ross, ive almost finished with the daemon version of newmodbus. Its running fine sampling once per second, on the second +/-1ms. 

The newmodbusd 1 second rate will allow us to use ajax to get real time primary stats. And, do way more accurate Wh, Ah and similar integrations.  It also matches the classic internal 1sec averaging scheme.

What i'm doing is storing the regsiter data in a temp file, then renaming it when done. This seems to be giving me the high availability to other applications that i needed.

Just got a few decisions to make about summarising the rather prolific raw data.

Title: Re: Android app for the Classic
Post by: RossW on January 08, 2014, 05:48:38 PM
Quote from: zoneblue on January 08, 2014, 05:42:26 PM
Hey Ross, ive almost finished with the daemon version of newmodbus. Its running fine sampling once per second, on the second +/-1ms. 

Great news. Is this based on a pulled-apart-and-re-assembled version of the newmodbus code I sent you?
Did you ever see a repeat of the network bug we thought related to the processor type (or did that go away when you recompiled native for your processor)?
Title: Re: Android app for the Classic
Post by: zoneblue on January 08, 2014, 06:39:13 PM
Quote
Great news. Is this based on a pulled-apart-and-re-assembled version of the newmodbus code I sent you?

Yes. Dragged kicking and screeming into c.

Quote
Did you ever see a repeat of the network bug we thought related to the processor type (or did that go away when you recompiled native for your processor)?

Even when complied on cubie the classic timeout issue remained. Working down from 5 minute samples, 5 was fine, 4 was fine, 3 was fine. 2 minutes starts to drop occasional samples, and locks up after about a week. 1 minute drops lots of samples and classic locks up after about 14 hours.

So, on a open-read-close basis, its stable at 3 minute sample intervals or higher.

I did manage to locate the via eden 400Mhz x86 box, but havent got around to trying it. But im not really sure theres much point. The ARM boards are here to stay, at least for now. Lets say, hypthetically that timeouts dont occur on a slow x86 box what does that gain us? The only upside that i can see is the possibility of, maybe, providing some key clue that will help midnite actually solve the problem.

But given midnite's other priorities, this daemon route is at least a way forward, allowing further development on blackbox UI.

The point being is that if you maintain an open modbus connection, its stable and theres no timeouts, or refused connects. Even if most peoples application is just 60s cron job to read the text file produced by the daemon.

Ross, will you be ok if i include the both your and my source in the blackbox svn? Attributions obviously.


Title: Re: Android app for the Classic
Post by: RossW on January 08, 2014, 06:58:04 PM
Quote from: zoneblue on January 08, 2014, 06:39:13 PM
Yes. Dragged kicking and screeming into c.

lol.

Quote
The point being is that if you maintain an open modbus connection, its stable and theres no timeouts, or refused connects. Even if most peoples application is just 60s cron job to read the text file produced by the daemon.

*nod*, and you know the history of the reason I added the "keep connection open" logic in the code :)

Quote
Ross, will you be ok if i include the both your and my source in the blackbox svn? Attributions obviously.

Yup.
Title: Re: Android app for the Classic
Post by: mjp24coho on January 08, 2014, 09:20:32 PM
Android app is great, but I would think there'd be an even bigger market for an apple app.  Anyone have one in the works?
Title: Re: Android app for the Classic
Post by: Graham on January 09, 2014, 07:47:21 AM
Quote from: RossW on January 08, 2014, 04:44:16 PM
Quote from: Graham on January 08, 2014, 09:19:55 AM
I'm considering replacing the J2Mod with my own implementation, this would allow me to implement the custom file transfer in order to get the logs off the classic so I can chart the data, it would also allow more control over the tcp settings/timeouts etc.
Are you using a tool like wireshark to see the error? If you are can you send me a screen capture?

newmodbus - the utility I wrote about a year back - went the same way. The available modbus libraries were clunky, slow and unnecessarily convoluted to use. So I coded all the classic stuff straight in. It's actually pretty straightforward, don't let the documentation scare you. modbus-over-tcp is basically just building the same modbus frame you would if it were over serial, then adding a small header to it to transport over tcp.

If your code is written in C, I'm happy to share the relevant bits of my code to get you on the way?

R.

I`d be very interested in some of your modbus code, I found J2Mod easy to use but it doesn't appear to have many options for tcp settings/config. This is my  first Android app, I'm using the new Android Studio with Java. It's been a few years since I used good old 'C' but I'm sure it will all come back to me.

Graham.
Title: Re: Android app for the Classic
Post by: Graham on January 09, 2014, 08:07:49 AM
Quote from: mjp24coho on January 08, 2014, 09:20:32 PM
Android app is great, but I would think there'd be an even bigger market for an apple app.  Anyone have one in the works?

I decided to write this app as an exercise to learn mobile development with the new Android Studio recently release by Google, but if I was going to target all platforms I would consider using Phonegap and Phonegap.build. This is one of the tools used in 'hybrid' mobile development, http://en.wikipedia.org/wiki/PhoneGap (http://en.wikipedia.org/wiki/PhoneGap). You write your app in javascript using the phonegap library + jquery/dojo etc, then submit the code to phonegap.build and it returns executables for each of the major mobile platforms (Android, IOS, Blackberry, Windows phone).
Title: Re: Android app for the Classic
Post by: vtmaps on January 09, 2014, 08:41:00 AM
Quote from: Graham on January 09, 2014, 08:07:49 AM
but if I was going to target all platforms I would consider using Phonegap and Phonegap.build.

Another multiplatform development environment is Livecode (formerly Runtime Revolution).   --vtMaps
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 11, 2014, 11:57:14 PM
Quote from: Halfcrazy on January 08, 2014, 06:04:04 AM
So I was playing with it here and it keeps disconnecting and reconnecting like every 2 seconds. I am running a Galaxy S3 with Android 4.3.0010

Yes - my Samsung Galaxy Captivate is doing the same thing - when I put in the address it found and filled in the data for just a second, then everything went to zero again and just keeps saying connected then scanning . Also the main app window will close but the Bar showing Scanning local network or Connnected wouldn''t  close and stays on top of everything else
Title: Re: Android app for the Classic
Post by: Graham on January 13, 2014, 09:18:34 PM
I've posted an update to https://sourceforge.net/projects/classicmonitor/ (https://sourceforge.net/projects/classicmonitor/), still a work in progress but hopefully the TCP connection is a bit more stable. I've also added a scan range and gauge scale to the settings.

Graham.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on February 09, 2014, 01:41:15 AM
Quote from: Graham on January 13, 2014, 09:18:34 PM
I've posted an update to https://sourceforge.net/projects/classicmonitor/ (https://sourceforge.net/projects/classicmonitor/), still a work in progress but hopefully the TCP connection is a bit more stable. I've also added a scan range and gauge scale to the settings.

Graham.
I just loaded up the Classic app on Samsung Galaxy S and it connects , stays on for about 20 seconds , then disconnects and starts the connection process over and will again connect - repeating. I just set up a new router but don't think it is from that causing the disconnects.

It is night so not much action on the gauges but will take a look tomorrow.

As is the rule - I had to shut off the Local Status App in order for this to connect.
Looks nice so thanks for developing this Android App.
Title: Re: Android app for the Classic
Post by: Graham on February 09, 2014, 09:59:12 AM
Quote from: ClassicCrazy on February 09, 2014, 01:41:15 AM
Quote from: Graham on January 13, 2014, 09:18:34 PM
I've posted an update to https://sourceforge.net/projects/classicmonitor/ (https://sourceforge.net/projects/classicmonitor/), still a work in progress but hopefully the TCP connection is a bit more stable. I've also added a scan range and gauge scale to the settings.

Graham.
I just loaded up the Classic app on Samsung Galaxy S and it connects , stays on for about 20 seconds , then disconnects and starts the connection process over and will again connect - repeating. I just set up a new router but don't think it is from that causing the disconnects.


There is a problem with the TCP connection on some devices, the classic stops responding to a modbus request, the code times out and re-connects. Works ok on the phone emulator running on a pc and on my nexus 10, fails on an old htc 2.1 phone. Still working on this issue...
Title: Re: Android app for the Classic
Post by: mofawayesu on February 09, 2014, 10:13:54 AM
Fwiw, timeouts also happen on my 1st gen nexus 7. Thanks for your work on this!
Title: Re: Android app for the Classic
Post by: Graham on February 09, 2014, 09:52:10 PM
I posted an update on https://sourceforge.net/projects/classicmonitor (https://sourceforge.net/projects/classicmonitor), I won't be back up to my cabin to test this latest version against a real classic until next week, If someone could try it and let me know if the app remains connected to the classic, I would appreciate it.
Thanks
Title: Re: Android app for the Classic
Post by: dapdan on February 10, 2014, 12:13:27 AM
Graham,

First of all great app. I manage to get it load onto my nexus 7 2013. I like the clean simple interface. These are my observations:

1. If you have power dash on it will not be able to connect to your classic if power dash is active on any computer.

2. If you have an access point it will not connect through the access point and only through the main router.

3. It connects for about 2 seconds and and disconnects and reconnects...etc.

4. It will not be able to automatically scan for classic and to connect to any of my classics I have to disable automatic scan and input the IP address of each classic to view them.

Even though I am only able to see the details for one or two seconds at a time it is a real sweet development. I can now lay in bed and see what is going on instead of getting up and going to the notebook.

Keep up the good work.

Cheers...
Damani
Title: Re: Android app for the Classic
Post by: dapdan on February 10, 2014, 12:20:54 AM
Graham,

Allow one modification of item 4. I re checked automatic scan and it was able to scan my network and pick up only one of my three classic. It connects for about a second and disconnects. It registers only one of the IP addresses and keeps going at the address with out jumping to another address. Say I have 3 classic addresses ending with 15, 16 & 17 it is stuck at 17 and keeps disconnecting and reconnecting to it and does not scan the othe addresses.

Cheers...
Damani
Title: Re: Android app for the Classic
Post by: Graham on February 10, 2014, 08:53:54 AM

Quote from: dapdan on February 10, 2014, 12:13:27 AM
Graham,

First of all great app. I manage to get it load onto my nexus 7 2013. I like the clean simple interface. These are my observations:

1. If you have power dash on it will not be able to connect to your classic if power dash is active on any computer.

2. If you have an access point it will not connect through the access point and only through the main router.

3. It connects for about 2 seconds and and disconnects and reconnects...etc.

4. It will not be able to automatically scan for classic and to connect to any of my classics I have to disable automatic scan and input the IP address of each classic to view them.

Even though I am only able to see the details for one or two seconds at a time it is a real sweet development. I can now lay in bed and see what is going on instead of getting up and going to the notebook.

Keep up the good work.

Cheers...
Damani

Damani,
thanks for testing this,

The current implementation of this android app only supports a connection to a single classic, also I believe the classic classic can only accept one TCP connection at a time so this app will not be able to connect to the classic if the Midnite Solar PC app is running.
I've been trying to identify the connect/reconnect issue, I'm using the J2Mod modbus open source library, I noticed that it was sending an extra null byte every time it tries to verify the connection state of the TCP socket, I was hoping that was the cause of the reconnect.
I'll have to continue debugging this issue the next time I'm up at my off-grid cabin in a week or so...


Graham.
Title: Re: Android app for the Classic
Post by: dapdan on February 10, 2014, 09:31:10 AM
G,

Cool. I was able to stay somewhat connected to one of my classics through the night. It was connected more than it was disconnected by about a factor of 3:1 (30 sec connect:10 sec disconnect). I was still very happy with it and went to bed with my nexus. I found it was most stable when set to autoscan as opposed to the exact IP add of a particular classic. When it was set to autoscan it keep going back to the same classic as opposed to rolling through the three that I have. My challenge was to get it on the classic that I wanted. Again not withstanding the bugs it is a wonderful app. I can't take my notebook to bed but my N7 will fit that bill easily.



Cheers...
Damani
Title: Re: Android app for the Classic
Post by: dapdan on February 10, 2014, 01:40:38 PM
Graham,

I am not sure what i did but I got the app to run stable. First I uninstalled the entire app and made sure I installed your latest. It did have a diff UI with a calender and chart dummy tabs. When it first boot up in autoscan it found one of my classic and did not disconnect from it. It even stop throwing the grey bar indicating that it was scaning. When the N7 screen timed out it recommenced reporting on the classic without doing a scan. I then tried to force it to pick another classic by going in to settings and selecting apply and it did jump onto another classic(it would be nice to be able to control which classic it jump to since autoscan seems to be the more stable than selecting an exact address). Then I lost it. It then took some doing to get it back there, uninstall, re-install, autoscan, manual scan (can't explain the exact scenario) but I am here again and it has been running 
stable now for the past 15mins. I am happy not to disturb it and leave it be. Hope some of my discourse helps.

Cheers...
Damani
Title: Re: Android app for the Classic
Post by: Graham on February 10, 2014, 02:39:43 PM
Quote from: dapdan on February 10, 2014, 01:40:38 PM
Graham,

I am not sure what i did but I got the app to run stable. First I uninstalled the entire app and made sure I installed your latest. It did have a diff UI with a calender and chart dummy tabs. When it first boot up in autoscan it found one of my classic and did not disconnect from it. It even stop throwing the grey bar indicating that it was scaning. When the N7 screen timed out it recommenced reporting on the classic without doing a scan. I then tried to force it to pick another classic by going in to settings and selecting apply and it did jump onto another classic(it would be nice to be able to control which classic it jump to since autoscan seems to be the more stable than selecting an exact address). Then I lost it. It then took some doing to get it back there, uninstall, re-install, autoscan, manual scan (can't explain the exact scenario) but I am here again and it has been running 
stable now for the past 15mins. I am happy not to disturb it and leave it be. Hope some of my discourse helps.

Cheers...
Damani

That's good news, I was ready to give up on J2MOD...
The latest build on sourceforge has placeholder tabs for swipe to Calendar/Charts, this is the version with the J2Mod fix for that extra null byte being sent when it check for a valid connection.
If it looses connection it might take up to 60 seconds to reconnect, I'll have to figure out why it lost the connection in the first place.
I'll have to come up with a way to support multiple classics, maybe swipe vertical to move between classic, swipe horizontal to move between tabs.
Title: Re: Android app for the Classic
Post by: dapdan on February 10, 2014, 02:46:49 PM
Dude don't give up, you're doing great work. I am loving this mobility on my N7.

Cheers...
Damani
Title: Re: Android app for the Classic
Post by: Cniemand on February 10, 2014, 03:58:20 PM
I have been running the new version for a few minutes now. Appears to work much better than the previous version (downloaded yesterday afternoon). Works nicely on my inexpensive smart phone. LG motion.

Stays connected.

Thanks for the work!

- Cloud
Title: Re: Android app for the Classic
Post by: dapdan on February 10, 2014, 05:36:38 PM
Graham,

It's been 12hr+ and it is still connected. All seems well.  I dear not try to call up my other classics.

Cheers...
Damani
Title: Re: Android app for the Classic
Post by: Graham on February 11, 2014, 07:50:10 AM
Quote from: Cniemand on February 10, 2014, 03:58:20 PM
I have been running the new version for a few minutes now. Appears to work much better than the previous version (downloaded yesterday afternoon). Works nicely on my inexpensive smart phone. LG motion.

Stays connected.

Thanks for the work!

- Cloud
Quote from: dapdan on February 10, 2014, 05:36:38 PM
Graham,

It's been 12hr+ and it is still connected. All seems well.  I dear not try to call up my other classics.

Cheers...
Damani

That's encouraging, thanks for testing it.


Graham.
Title: Re: Android app for the Classic
Post by: dapdan on February 11, 2014, 08:16:42 AM
Ok,

I have this thing worked out now. Whenever I get disconnected I simply restart my tablet and then I get back on. I have found that I can get to my other classis by keeping the app in autoscan, go to settings and then click on apply (at the bottom left od the screen) without changing any of the settings and it simply scan onto the next classic.


Cheers...
Damani
Title: Re: Android app for the Classic
Post by: mofawayesu on February 11, 2014, 11:25:05 AM
Latest version works correctly for me as well - 1st gen Nexus 7.  Thanks.
Title: Re: Android app for the Classic
Post by: Cniemand on February 11, 2014, 02:44:32 PM
So much easier to glance at the phone while watching a movie (In Recliner) to check on statuses rather than having to get up (A pain, upsets the cat laying on you) and walk over to see the Classic. LOL
Title: Re: Android app for the Classic
Post by: ClassicCrazy on February 15, 2014, 01:59:55 AM
The newest version is staying connected for me also on Galaxy S . It is night and not much going on now so will check it when the sun is up or I get up which ever is later !  Do you think you could put a Whizbang monitored amp  meter on it with a positive / negative needle ?  If so this will be a few steps ahead of what was recently requested for the Local Status app .
Thanks again  for this nice app.
Title: Re: Android app for the Classic
Post by: Graham on February 15, 2014, 09:03:45 AM
Quote from: ClassicCrazy on February 15, 2014, 01:59:55 AM
The newest version is staying connected for me also on Galaxy S . It is night and not much going on now so will check it when the sun is up or I get up which ever is later !  Do you think you could put a Whizbang monitored amp  meter on it with a positive / negative needle ?  If so this will be a few steps ahead of what was recently requested for the Local Status app .
Thanks again  for this nice app.


Just put my order in for a Whizbang at altestore!
Title: Re: Android app for the Classic
Post by: dapdan on February 15, 2014, 09:55:39 AM
Great guys at the altestore. Bramley delivers A1 service.

Cheers...
Damani
Title: Re: Android app for the Classic
Post by: ClassicCrazy on February 15, 2014, 11:57:47 AM
When I tried it this morning it seemed like it was stuck on some bogus readings. But I changed the Classic from DHCP to Static and put in the static ip on the app and it works perfectly.
Title: Re: Android app for the Classic
Post by: Graham on February 15, 2014, 04:49:59 PM
Quote from: ClassicCrazy on February 15, 2014, 11:57:47 AM
When I tried it this morning it seemed like it was stuck on some bogus readings. But I changed the Classic from DHCP to Static and put in the static ip on the app and it works perfectly.

Is your 'system 2' and  'system 1' at the same location / network?, just wondering if the morningstar is responding to a modbus request at address intended for the classic
Title: Re: Android app for the Classic
Post by: ClassicCrazy on February 15, 2014, 04:56:15 PM
Quote from: Graham on February 15, 2014, 04:49:59 PM
Quote from: ClassicCrazy on February 15, 2014, 11:57:47 AM
When I tried it this morning it seemed like it was stuck on some bogus readings. But I changed the Classic from DHCP to Static and put in the static ip on the app and it works perfectly.

Is your 'system 2' and  'system 1' at the same location / network?, just wondering if the morningstar is responding to a modbus request at address intended for the classic

Yes - the Morningstar and Classic are both plugged into the same router. 
Title: Re: Android app for the Classic
Post by: Graham on February 23, 2014, 09:13:53 PM
Quote from: Graham on February 15, 2014, 09:03:45 AM
Quote from: ClassicCrazy on February 15, 2014, 01:59:55 AM
The newest version is staying connected for me also on Galaxy S . It is night and not much going on now so will check it when the sun is up or I get up which ever is later !  Do you think you could put a Whizbang monitored amp  meter on it with a positive / negative needle ?  If so this will be a few steps ahead of what was recently requested for the Local Status app .
Thanks again  for this nice app.


Just put my order in for a Whizbang at altestore!


Go my WhizBangJr yesterday, updated my app to display bi-directional battery current.

get the .apk at https://sourceforge.net/projects/classicmonitor/ (https://sourceforge.net/projects/classicmonitor/)

some of my projects docs etc  http://farrelltonsolar.wordpress.com/ (http://farrelltonsolar.wordpress.com/)

also check out another one of my solar related projects http://solartracker.codeplex.com/ (http://solartracker.codeplex.com/)

(http://~/Capture.PNG)
Title: Re: Android app for the Classic
Post by: dapdan on February 24, 2014, 06:35:39 AM
Graham,

I have updated even though I don't have a WBJr installed as yet. I app is running fine, it has it little quirks but I am very happy with it. Keep up the good work dude. I like you just need to touch the battery current gauge and it flips so you can see the WBJr info(I don't have any WBJr info to see so it is just a blank screen)

Cheers...
Damani
Title: Re: Android app for the Classic
Post by: Graham on February 24, 2014, 07:10:29 AM
Quote from: dapdan on February 24, 2014, 06:35:39 AM
Graham,

I have updated even though I don't have a WBJr installed as yet. I app is running fine, it has it little quirks but I am very happy with it. Keep up the good work dude. I like you just need to touch the battery current gauge and it flips so you can see the WBJr info(I don't have any WBJr info to see so it is just a blank screen)

Cheers...
Damani

I'm tinkering with this app on my spare time, there are a number of placeholders for future development, the whizbangjr details will eventually show up when you tap the battery current gauge, since you don't have a whizbangjr, this should be disabled for you, your battery amp gauge should not display as bidirectional +/- amps.
Other things I'd like to do when I have time are;
Calendar view to show khw/day, float achieved, generator used...
Charts hourly, daily...
Support for multiple CC by swipe up/down
Support for other CC, morningstar...
Some kind of SOC display??

Graham.
Title: Re: Android app for the Classic
Post by: Halfcrazy on February 24, 2014, 08:38:25 AM
This is looking pretty darn sweet.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on February 24, 2014, 09:16:32 AM
Thanks Grahm - can't wait to get back out to my solar setup to try the updated Whizbang meter part of your app.

Would it ever be possible to have it show the Whizbang interpreted to watts ?  Always nice to see what something is drawing in watts when you plug it in .

Your other solar projects look interesting too - I will have to read up more on them later.


Title: Re: Android app for the Classic
Post by: Graham on February 24, 2014, 09:25:18 AM
Quote from: ClassicCrazy on February 24, 2014, 09:16:32 AM
Thanks Grahm - can't wait to get back out to my solar setup to try the updated Whizbang meter part of your app.

Would it ever be possible to have it show the Whizbang interpreted to watts ?  Always nice to see what something is drawing in watts when you plug it in .

Yes, a tap on the gauge could flip it to watts,

still have to figure out how to display the AH info from the WhizBangJr

"Address (Register)
4360  (4361)  WbangJrCmdS           Whizbang Jr. command.  Default  0x35  gain = 8
4361  (4361)  WbJrrRawCurrent      Whizbang Jr. current signed.  +-3,276.7 amps
4362  (4362)  WbJrGainTweak         WbJr.  Signed 16 bit  gain tweak adjustment.  Default = 0
4364, 4365 (4365, 4366)        WbJr.  unsigned 32 bits Amp-Hours Positive Only  Low,High
4366, 4367 (4367, 4368)        WbJr.  signed 32 bits Amp-Hours Negative Only   Low,High
4368, 4369 (4369, 4370)        WbJr.  signed 32 bits Amp-Hours Positive AND Negative    Low,High
4370 (4371)    WzBangJrCurrent32Signed     WbJr.  signed  16 bits current   +-3,276.7 amps
4371  (4372)   WizBangJrRawCrcAndtemp     WbJr.   (CRC << 8)  |  (Temperature + 50 degrees C)
    CRC from Wb Jr. in high byte OR'd with temperature on WbJr.  -50 deg. C = 0 in temp. field.
Title: Re: Android app for the Classic
Post by: cybermaus on February 24, 2014, 11:15:53 AM
NICE  ;D

Can't wait to get back home later this week and try. Do I need to forward some ports to be able to watch this from the internet?
Title: Re: Android app for the Classic
Post by: Graham on February 24, 2014, 11:49:30 AM
Quote from: cybermaus on February 24, 2014, 11:15:53 AM
NICE  ;D

Can't wait to get back home later this week and try. Do I need to forward some ports to be able to watch this from the internet?

I haven't tried port forwarding, the app can be configured to scan your local subnet for an open port 502 or you can enter a static IP address/port. If you can access your data using the local app on a PC, it should also work with the android app.
Title: Re: Android app for the Classic
Post by: cybermaus on February 25, 2014, 10:46:00 AM
heh, the dropbox link does not work anymore???
Title: Re: Android app for the Classic
Post by: Graham on February 25, 2014, 11:23:54 AM
Quote from: cybermaus on February 25, 2014, 10:46:00 AM
heh, the dropbox link does not work anymore???

The latest apk is at http://sourceforge.net/projects/classicmonitor/ (http://sourceforge.net/projects/classicmonitor/)
click the download classic.apk button, wait for the 5 second countdown.
Depending on the phone, it may ask you to install the apk or you might have to go to your download area and click on the classic.apk file to initiate the install.
You can use something like 'ES File Explorer File Manager'  (https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en (https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en)) to access your downloads.

The dropbox doesn't provide any download stats and I wanted to know if there was any interest in this app...

Once it's complete I can add it to the GooglePlay app store so you won't have to have the 'Download from Unknown Source' checked in the security settings.
Title: Re: Android app for the Classic
Post by: Halfcrazy on February 25, 2014, 12:30:55 PM
Graham
Let me know if there is any Modbus info I can help with. As far as what is where in the classic that is. Some of it is not documented correctly so it can add to the challenge

Ryan
Title: Re: Android app for the Classic
Post by: Graham on February 25, 2014, 12:47:06 PM
Quote from: Halfcrazy on February 25, 2014, 12:30:55 PM
Graham
Let me know if there is any Modbus info I can help with. As far as what is where in the classic that is. Some of it is not documented correctly so it can add to the challenge

Ryan

Thanks Ryan,
I started implementing the File Transfer code last weekend and I'm getting data back from the classic, hopefully I'll get back up to my cabin this weekend to continue with this.

Let me know if there is anything else you might find useful in the app.


Graham.
Title: Re: Android app for the Classic
Post by: cybermaus on February 25, 2014, 12:49:52 PM
It works. Nice.

Portmapping 502 also works, so I can see it from where I am. But I need to enter the IP address, not my Dynamic DNS hostname. Maybe a small change to allow hostnames?

Strictly speaking forwarding the port is a security concern, not sure what people can now do to my Classic, but its probably a bit too niche to be really worried (security by obscurity principle)

Did you say you added the SOC% stuff? I am not seeing it.
Also, would it be possible to display the Aux1 state?
Title: Re: Android app for the Classic
Post by: ClassicCrazy on February 25, 2014, 12:59:21 PM
What I think would be useful in the app is being able to have some way to see when system amps stop falling off . So a minimum pointer on a dial or a graph which showed over time would be better - but it would have to be for only the absorb cycle.  That would make it easier to deterimine the ending amps point to set that up in Whizbang control.
Title: Re: Android app for the Classic
Post by: Graham on February 25, 2014, 01:25:08 PM
Quote from: cybermaus on February 25, 2014, 12:49:52 PM
Did you say you added the SOC% stuff? I am not seeing it.
Also, would it be possible to display the Aux1 state?

No I haven't done SOC% yet, currently working on the modbus file transfer, probably look at SOC etc next.
Title: Re: Android app for the Classic
Post by: cybermaus on February 25, 2014, 01:41:21 PM
Sorry, did not want to push.
No problem. It's already very nice as is.
Title: Re: Android app for the Classic
Post by: Graham on February 25, 2014, 02:07:33 PM
Quote from: Halfcrazy on February 25, 2014, 12:30:55 PM
Graham
Let me know if there is any Modbus info I can help with. As far as what is where in the classic that is. Some of it is not documented correctly so it can add to the challenge

Ryan

Ryan,
is the SOC% available in one of the modbus registers or does the local app calculate it from the WhizBangJr data?
Title: Re: Android app for the Classic
Post by: Halfcrazy on February 25, 2014, 03:13:26 PM
Register 4373 or address 4372 is the SOC%
Title: Re: Android app for the Classic
Post by: offgridQLD on February 25, 2014, 09:05:00 PM
First off the app has been working great on my nexus 7 tablet. I haven't tried the latest update with my WBJR but I have it installed and keen to try it this weekend.

It's turning into a great little app. I was thinking with the price of small no name android tablets  I might even purchase one and permanently mount on the kitchen wall so anyone can get a quick visual of where the system is at. Without having to go to the PC and open the local app.

"Would it ever be possible to have it show the Whizbang interpreted to watts ?  Always nice to see what something is drawing in watts when you plug it in "

I agree this would be great. (Would nice if the midnite local app could do it to) Sure you can just read the wbjr amps and multiply it by the voltage a the time to get watts but its not as nice as just having watts displayed for quick reference.

It could just be me but I much prefer working in watts and kwh rather than (Amp's and AH's) Its much easier to relate to and work with across all areas of the system.

Kurt

Title: Re: Android app for the Classic
Post by: dapdan on February 26, 2014, 07:33:02 AM
Which nexus are you using qld? I am using the latest model.

Cheers...
Damani
Title: Re: Android app for the Classic
Post by: Graham on February 26, 2014, 08:14:32 AM
Quote from: offgridQLD on February 25, 2014, 09:05:00 PM
First off the app has been working great on my nexus 7 tablet. I haven't tried the latest update with my WBJR but I have it installed and keen to try it this weekend.

It's turning into a great little app. I was thinking with the price of small no name android tablets  I might even purchase one and permanently mount on the kitchen wall so anyone can get a quick visual of where the system is at. Without having to go to the PC and open the local app.

"Would it ever be possible to have it show the Whizbang interpreted to watts ?  Always nice to see what something is drawing in watts when you plug it in "

I agree this would be great. (Would nice if the midnite local app could do it to) Sure you can just read the wbjr amps and multiply it by the voltage a the time to get watts but its not as nice as just having watts displayed for quick reference.

It could just be me but I much prefer working in watts and kwh rather than (Amp's and AH's) Its much easier to relate to and work with across all areas of the system.

Kurt
thanks,

I keep an old HTC phone at my cabin with the classic app as the only app installed in case I forget to bring my nexus tablet, the app can be installed on android 2.3 or greater, should also work on a kindle fire.

I'm going to add the ability to switch the battery current to watts by tapping on the gauge, + a battery icon with the SOC% when the WhizBangJr is detected.


Graham.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on February 26, 2014, 08:37:16 AM
I also have an extra older Android phone that can be dedicated to this . The new features are going to make it the monitor of choice . Can't wait to test it out when I get back to the solar site.   The watts reading will be great .
Title: Re: Android app for the Classic
Post by: ClassicCrazy on February 28, 2014, 10:54:44 PM
     Just got to try out the latest Classic app and the Whizbang amp meter that will swing positive or negative is great ! Night here so have the needle going negative.

Would it be possible for you to add something that would make the dial full screen ?  Or possibly a pinch type gesture that would expand it ?   Scaling on this gauge would be nice because then could really see small loads swing the needle. I was just playing around turning up the volume on the stereo and it does read in the numeric form 0.1 increments .  I suppose when you start trying to program in those features it gets more complicated to make it work on different type devices.

Just suggestions - you really have come a long way into making a usable Android app for the Classic - thanks again.

Title: Re: Android app for the Classic
Post by: offgridQLD on March 01, 2014, 06:04:43 AM
+1 on the new features. Just tried them out today the new amp gauge is working well just nice to see the negative amps on the other portrait screen to.

Once it shows watts for WBJR it will have everything I could want as a simple visual of my system.

I think keeping it simple is a good thing.

Kurt
Title: Re: Android app for the Classic
Post by: GHOSTNH on March 09, 2014, 02:43:55 PM
OK LOVE THE APP!!!! :).. been waiting long time for one that works on android
the one issue i have is in the power settings .. when i use the 3000w setting   the app comes back  as "unfortunately app has stopped"

all the other power settings work ??

am i doing something wrong??
Title: Re: Android app for the Classic
Post by: Graham on March 09, 2014, 08:05:30 PM
Quote from: GHOSTNH on March 09, 2014, 02:43:55 PM
OK LOVE THE APP!!!! :).. been waiting long time for one that works on android
the one issue i have is in the power settings .. when i use the 3000w setting   the app comes back  as "unfortunately app has stopped"

all the other power settings work ??

am i doing something wrong??

There is an issue with the memory for bitmaps not being released, especially on older version of android where bitmaps are in native memory. The next commit to sourceforge should have many of these issues fixed.
I've been working on adding the SOC% display when the whizbangjr is detected (see the screenshots below), I'm reading register 4370 for the bi-directional current and register 4372 for the SOC%, when I tested this using the classic, I'm always getting a reading of '10' from 4372 when my batteries were at 27V Float. Looks like I need to update the classic firmware (currently at 1609). Once I get this working I'll post an updated .apk.

Some of the new whizbang features;

- Bi-Directional current can be viewed in watts or amps
- Tapping the current gauge zooms in the scale (modulo 5)
- SOCWheel SOC% display with stepped colour.
- Tap the SOC to view the large 'CounterTop' display.

Modbus FileTransfer now working, working on the calendar view...




Title: Re: Android app for the Classic
Post by: Halfcrazy on March 09, 2014, 08:12:50 PM
This is looking very sweet cant wait to play with it
Title: Re: Android app for the Classic
Post by: TomW on March 09, 2014, 08:26:40 PM
Quote from: Halfcrazy on March 09, 2014, 08:12:50 PM
This is looking very sweet cant wait to play with it

Yeah, it is looking sweet. I may need to join the 21st century and get a smart phone for monitoring things while in the house. :o

Tom
Title: Re: Android app for the Classic
Post by: offgridQLD on March 09, 2014, 09:10:31 PM
Thats looking real good, all the info you need for day to day casual monitoring.

A visual display of the load on the battery. Displayed in (watts)  is something I have been really looking forward to. I'm not sure about other parts of the world but personally I think working in watts whr and kwh is more universal . A little like working metric vs imperial. They both can give you the same answer in the end though I have to take a moment to do a small conversion in my head for it to have meaning to me. It's the same with amps and AH I have to do the  Amps X Volts sum in my head to get watts and me being slow. By the time I do get the answer in watts that the Amp load or voltage has changed  and we start all over again ::)

I can just see myself now. Walking all over the house and workshop switching on loads and noting the load in watts :o.

looking forward to that updated .apk.

Edit: Will that watt gauge dial scale to meet your system loads. Most of the time 1000w would cover it but when things get busy in the kitchen or workshop 5000 - 6000w isn't uncommon with short peaks of 12,000w.

Kurt
Title: Re: Android app for the Classic
Post by: Cniemand on March 12, 2014, 04:34:59 PM
Looking forward to the latest update, Graham!

Thanks for such a useful tool to have. Easier to check out the basics on the phone than head over to the controller.

I use it to monitor the system when I opt to use an electric space heater during the day to heat the Tiny off-grid house. ;-)

I know. I'm bad. 'You can't do that!'
Title: Re: Android app for the Classic
Post by: mahendra on March 12, 2014, 07:28:13 PM
when will this app be available?
Title: Re: Android app for the Classic
Post by: Cniemand on March 12, 2014, 07:30:57 PM
The app itself is available already. sourceforge.com/projects/classicmonitor

Or did you mean the latest version, Graham, showed above?

That is what I am waiting on.
Title: Re: Android app for the Classic
Post by: mahendra on March 12, 2014, 07:41:57 PM
the latest version
Title: Re: Android app for the Classic
Post by: Graham on March 13, 2014, 07:56:48 AM
Quote from: mahendra on March 12, 2014, 07:28:13 PM
when will this app be available?

I'm out of town this weekend, hopefully I'll be able to get back to this next Sunday.

Graham.
Title: Re: Android app for the Classic
Post by: laszlo on March 14, 2014, 02:24:48 PM
Tried the version available as sourceforge download, looks nifty! This is an app that is inspired by mobile paradigm,  and not trying to do everything under the sun, which is extra nice.

Couple things:

-array amps gauge seems to be stuck at 20amp
-would suggest not to "scroll" the digital counters, just jump to the current value at the time (would make it look cooler and less busy)
Title: Re: Android app for the Classic
Post by: casaneil on March 18, 2014, 01:39:40 PM
Graham.

I am a new Midnite user of 9 months and this App is looking very good and thanks for your work done. I am sure you have plans but is there an easy method of finding 2 Classics through the App? I guess I can enter the other IP and go again or any ideas? Maybe I missed it.

I run 2 networked Classic 150's and in FollowMe mode. Local App on local network and MyMidnite on remote in the UK when away from site. Site has to operate without deep maintenance. Any feed back you need that helps you post me.

I use Android Samsung Tablet Original 10.1 Two years old. Gingerbread? Works good. Windows 7 IT. Usual stuff. Quick question. Where is the Battery voltage measured. Same as Local App? No offence to this project or any other but we seem to gather so many Voltage readings off grid. Outback Fx, Chargers, Controllers and more. What did the Kilwatt say? But as an instant picture of performance. Your App is great and really useful. No PC/Mac needed and a mate (friend) can call by with App and call it back to me when no network available.

Thanks again. N
Title: Re: Android app for the Classic
Post by: Graham on March 18, 2014, 02:55:57 PM
Quote from: casaneil on March 18, 2014, 01:39:40 PM
Graham.

I am a new Midnite user of 9 months and this App is looking very good and thanks for your work done. I am sure you have plans but is there an easy method of finding 2 Classics through the App? I guess I can enter the other IP and go again or any ideas? Maybe I missed it.

I run 2 networked Classic 150's and in FollowMe mode. Local App on local network and MyMidnite on remote in the UK when away from site. Site has to operate without deep maintenance. Any feed back you need that helps you post me.

I use Android Samsung Tablet Original 10.1 Two years old. Gingerbread? Works good. Windows 7 IT. Usual stuff. Quick question. Where is the Battery voltage measured. Same as Local App? No offence to this project or any other but we seem to gather so many Voltage readings off grid. Outback Fx, Chargers, Controllers and more. What did the Kilwatt say? But as an instant picture of performance. Your App is great and really useful. No PC/Mac needed and a mate (friend) can call by with App and call it back to me when no network available.

Thanks again. N

The app only supports one classic at this time, you can set the static address to monitor a specific CC. The voltage data should be the same as the local app, I'm reading the values as defined in the MS modbus spec.

I hope to finish the support for the whizbang SOC% data and the historical calendar view this weekend.
After that I'll probably add support for multiple CC.


Graham.
Title: Re: Android app for the Classic
Post by: Graham on March 23, 2014, 09:09:40 PM
I posted a new update for my android app at sourceforge.com/projects/classicmonitor (http://sourceforge.com/projects/classicmonitor)

still very much a work in progress, try it out and let me know if it works on your mobile device.

Since I don't have internet at my cabin, I'm working on a 'store and forward' feature that reads the day logs from the classic then forwards them to the PVOutput site once the device has internet service.
The calendar view doesn't yet scale properly, + still working on the calendar javascript code to render the log data on the calendar. (modbus file transfer is done).

next I'll be adding support for multiple CC, + other makes like morningstar...

Graham.

-----------------

version 1.3

Refactores code to use BroadcastIntents.
Modbus Master now running as an Android IntentService.
Added Custom modbus read for File transfer.
Gauge scaled by touching the gauge when unlocked.
Added SOC% on main page
Added 'Countertop' view for SOC%, activated by touching SOC% on main page
Added Webview for PVOUtputs and Calendar (data feeds not complete)
Added Aux LEDs to power gauge


Title: Re: Android app for the Classic
Post by: philb on March 24, 2014, 01:01:39 AM
Very nice work!
I used the program for one and a half days. It only lost connection to the classic a few times. I'm impressed!
Title: Re: Android app for the Classic
Post by: offgridQLD on March 24, 2014, 03:24:13 AM
 This new version is great! I like how you can scale the gauges. I like how the battery gauge scales to 8000w +/-  .  The only issue and it's only a small one is PV input current dial has a max scale of 50A. Perhaps 80A or so would be nice for the classic 150 I some times see over 50A input pv Amps.

Another small issue is the text at the bottom of the screen telling me what charge stage the classic is in. That next is cut off a little. For some reason the nexus 7 keeps its oncreen controll bar active along the bottom of the screen blocking some of the text.

Overall this is a very good app that just got better :)

Thanks.

Kurt





Title: Re: Android app for the Classic
Post by: Cniemand on March 24, 2014, 07:52:36 PM
The latest release is shaping up nicely, Graham!

One question. When my system is at rest, the voltage is 53.4. In Text view this version shows 53.4v. (as the previous versions did) However, in Portrait, the guage only shows 53v whereas the previous version showed 53.4v.

Am I missing something?

- Cloud
Title: Re: Android app for the Classic
Post by: Graham on March 25, 2014, 08:46:13 AM
Quote from: Cniemand on March 24, 2014, 07:52:36 PM
The latest release is shaping up nicely, Graham!

One question. When my system is at rest, the voltage is 53.4. In Text view this version shows 53.4v. (as the previous versions did) However, in Portrait, the guage only shows 53v whereas the previous version showed 53.4v.

Am I missing something?

- Cloud

I did a fair amount of re-factoring of the code last weekend, it's probably something I did, I'll post another update this weekend.


Graham.
Title: Re: Android app for the Classic
Post by: casaneil on March 29, 2014, 07:19:23 AM
The Monitor App is way better now. Thanks. I have it on an older Android and I need to Force Stop in Manage Apps. If not it seems to clash with the Midnite PC local App. After a reset all is OK. I may be missing something. Task manager says it's stopped. I am aware that apps cannot be up and running together and this is much an android issue.

Clarity and the new scaling is excellent. Can't wait for the multiple Classics function.
Title: Re: Android app for the Classic
Post by: Graham on March 30, 2014, 10:21:02 PM
Quote from: casaneil on March 29, 2014, 07:19:23 AM
The Monitor App is way better now. Thanks. I have it on an older Android and I need to Force Stop in Manage Apps. If not it seems to clash with the Midnite PC local App. After a reset all is OK. I may be missing something. Task manager says it's stopped. I am aware that apps cannot be up and running together and this is much an android issue.

Clarity and the new scaling is excellent. Can't wait for the multiple Classics function.

I put a test version of the app in https://www.dropbox.com/sh/2x7rxopvr2yft3c/5jNqeMA8fH (https://www.dropbox.com/sh/2x7rxopvr2yft3c/5jNqeMA8fH), could you try this one and see if it clashes with the midnite PC app.
This version will close the TCP socket whenever the app is minimized and re-opens the connection when resumed.
If it works ok, I'll incorporate the changes to the main sourceforge version.

You might have to uninstall the previous version before installing this one.
Let me know how it works for you, thanks.
Title: Re: Android app for the Classic
Post by: casaneil on March 31, 2014, 06:03:52 AM
OK. The latest Dropbox link above does fix the TCP problem. Now minimise the Android App (not 'killed') and PC Local App works fine now. Close PC App and reopen Android and all settings remain good. Nothing lost. In the new Settings screen Classic IP Address and Gauges are greyed out. Display bi-directional gauge units in watts? I have it checked ON although I do not know it's function. Wizzbang? The Lock Scale is now checked ON. Self evident and a useful function as possibly previous version was not saving meter scaling. Not positive on this.

Only bug is after applying settings and returns to display an overlay screen notification " Connected to Classic address/192.168.1.14.502 " remains and flashes for approx. 45/60secs. Does not occur when simply minimising and reopening in normal use. I will test this further and on a later Android version if needed.

The calendar screen is looking good. To see a snap shot of total Kwh and float or not for each day is useful. When the multiple Classics function arrives this App will go into our system and one other on a 7" tablet for simple but effective monitoring with no PC needed.

Many thanks for the work. N.

Title: Re: Android app for the Classic
Post by: casaneil on March 31, 2014, 07:18:18 AM
Last comments were based on Android version 2.3.5. HTC Desire HD. An hour or two later I have a Samsung 10.1 Tablet version 4.0.4.

Better results. Small bug on HTC was "Connected to Classic ........" overlay remained on and flashing for 60 secs. Samsung the same for 15/20secs only. But No flashing. Seems OK.

Screen shots attached. N.
Title: Re: Android app for the Classic
Post by: Graham on March 31, 2014, 08:39:54 AM
Quote from: casaneil on March 31, 2014, 07:18:18 AM
Last comments were based on Android version 2.3.5. HTC Desire HD. An hour or two later I have a Samsung 10.1 Tablet version 4.0.4.

Better results. Small bug on HTC was "Connected to Classic ........" overlay remained on and flashing for 60 secs. Samsung the same for 15/20secs only. But No flashing. Seems OK.

Screen shots attached. N.

Thanks for testing this, it's the first time I see the calendar working with a real classic, I've been developing this using a modbus simulator and I haven't had the chance to get back to my cabin to test it with my equipment. Do the calendar values match the results in the local PC app?

I should disable the 'Display bi-directional gauge units in watts' setting if the whizbangJr is not detected, I posted new pictures of the pages on sourceforge https://sourceforge.net/projects/classicmonitor/ (https://sourceforge.net/projects/classicmonitor/), this is what you would see when it detects a whizbangjr, you get the choice to view the battery current in watts.

Currently the connection is re-established every time you exit the setting page, I should only do this if the IP values are changed.

The dropbox apk file is a debug build, I'll post a new release build to sourceforge later this week, it should be a little more responsive.

Next I'll be working on the 'store and forward' feature to PVOutput.org then I'll be adding support for multiple devices by swiping up/down.
Once it's feature complete, I'll add the resource files for other languages...
Title: Re: Android app for the Classic
Post by: casaneil on April 01, 2014, 07:47:29 AM
Yes the calendar values match the results in the local PC app. Float value is also correct. I can send Excel Export files and/or Android screen shots if useful.

Very responsive and quick after minimised then reopened. I look forward to the swiping multiple Classics.

Any more info you need while off site let me know. I'm on site, networked till the 7th. N.
Title: Re: Android app for the Classic
Post by: Graham on April 01, 2014, 01:36:32 PM
Quote from: casaneil on April 01, 2014, 07:47:29 AM
Yes the calendar values match the results in the local PC app. Float value is also correct. I can send Excel Export files and/or Android screen shots if useful.

Very responsive and quick after minimised then reopened. I look forward to the swiping multiple Classics.

Any more info you need while off site let me know. I'm on site, networked till the 7th. N.

Thanks again for testing this, I posted a release build classic.apk (v1.4) on the sourceforge page (https://sourceforge.net/projects/classicmonitor/ (https://sourceforge.net/projects/classicmonitor/)) that has the calendar data and the disconnect/connect TCP on minimize. Let me know if it works the same, release builds can sometimes have error that don't show up in debug builds due to compression and obfuscation of the code.

G.
Title: Re: Android app for the Classic
Post by: casaneil on April 01, 2014, 05:59:10 PM
Yes. Latest version release build classic.apk (v1.4). Sourceforge link today.

Tested without issues but only on one Android v. 4.0.4. Samsung 10.1 Tablet. 2 yrs old. As earlier two tests.

I no longer use the version 2.3.5 on a small HTC Desire HD phone. Too small and OS is old. Not practical. It's a phone.

IP Connection address warning overlay now normal on screen after a settings save. Maybe my imagination. My old Android version 2 device deceiving?

Thanks for your input. It is midnight in S. Spain now and post me for any other info you may need.

N




Title: Re: Android app for the Classic
Post by: Cniemand on April 01, 2014, 10:56:50 PM
Graham, latest version fixed the Dial readout issue I had. Thanks!

Also, very neat being able to see the calendar. Is it being parsed from the website or the internal memory in the Classic?

- Cloud
Title: Re: Android app for the Classic
Post by: Graham on April 02, 2014, 08:27:48 AM
Quote from: Cniemand on April 01, 2014, 10:56:50 PM
Graham, latest version fixed the Dial readout issue I had. Thanks!

Also, very neat being able to see the calendar. Is it being parsed from the website or the internal memory in the Classic?

- Cloud

It uses the modbus FileTransfer commands to read the data directly from the classic the same way the offline data works in the PC app. , so the calendar tab does not require an internet connection.
My system at my cabin doesn't have internet service and I can't use the MyMidnite service so I was planning on having the android app save the calendar data and forward it up to the PVOutput.org site when the phone gets within range of a cell tower or wifi service, this would allow me to record historical energy data similar to MyMidnite. The third tab 'charts' is an online embedded web page of the PVOutput.org page that will display this data as charts.

Graham.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on April 18, 2014, 06:25:18 PM
Graham - I finally had a chance to try out the latest version of the Classic Android App that  you made. It is working fine for me  - really like the large screen showing system watts dial along with SOC .

And the calendar is a great feature too.

Do you think it would be possible  to have selectable fields for the calendar ? Like being able to show float status or  current peaks or  any other data that could be grabbed out of the Classic and displayed in calendar ? 

Keep up the great work you have done !

Title: Re: Android app for the Classic
Post by: anvil on April 19, 2014, 12:47:54 PM
Howdy,  i have a new classic 200 and no pc at the moment. i discovered your android app.

i have a galaxy S4. i cannot connect. i'm not familiar with network setup. i followed the DHCP instructions in the manual with no luck.

can i seek help here, or is there a better place for this basic help/

thanks in advance
Title: Re: Android app for the Classic
Post by: Graham on April 19, 2014, 01:54:31 PM
Quote from: ClassicCrazy on April 18, 2014, 06:25:18 PM
Graham - I finally had a chance to try out the latest version of the Classic Android App that  you made. It is working fine for me  - really like the large screen showing system watts dial along with SOC .

And the calendar is a great feature too.

Do you think it would be possible  to have selectable fields for the calendar ? Like being able to show float status or  current peaks or  any other data that could be grabbed out of the Classic and displayed in calendar ? 

Keep up the great work you have done !



I was thinking of doing that with the calendar but I haven't had much time to work on this lately.
I ported the calendar code from my first classic monitor project http://netduinosolar.codeplex.com/ (http://netduinosolar.codeplex.com/), it is an embedded html/javascript control, so it should be pretty easy to figure out which day is selected, then I would just have to come up with a way to display the detail data so that it's readable on a small screen, maybe a tooltip bubble or popup?
Title: Re: Android app for the Classic
Post by: Graham on April 19, 2014, 03:00:13 PM
Quote from: anvil on April 19, 2014, 12:47:54 PM
Howdy,  i have a new classic 200 and no pc at the moment. i discovered your android app.

i have a galaxy S4. i cannot connect. i'm not familiar with network setup. i followed the DHCP instructions in the manual with no luck.

can i seek help here, or is there a better place for this basic help/

thanks in advance

I assume you have connected your classic to your wireless router, if not, midnite solar has a youtube video https://www.youtube.com/watch?v=rJSMO2pnaY0 (https://www.youtube.com/watch?v=rJSMO2pnaY0) that shows you how to do this.
Next, your phone must have a wireless connection to your wireless network, you should be able to use the browser on your phone to view your routers setup page to verify this. I simply have to enter 'http://192.168.0.1/status.htm' as the address for my router, yours might be different depending on the make of your router.

If you have setup your classic to use DHCP, then your router will assign the classic an IP address within it's subnet range. Typically a router will have a subnet mask of 255.255.255.0 and a gateway address of 192.168.0.1, this means it will assign addresses within the range of 192.168.0.2 through 192.168.0.255 to devices within its subnet.

My android app will get the subnet mask and the gateway address from the router, it will scan the subnet for a device with an open port (usually 502) for the given range (255).
Assuming your router is setup with a subnet of 255.255.255.0 and a gateway address of 192.168.0.1, the app will try each address from 192.168.0.2 to 192.168.0.255 for a response from port 502.

You can also setup your classic to use a static IP address, you can then uncheck the 'Scan the local subnet for the Classic' and enter the static IP address in the into the android app setting page under ''Classic IP Address", the android app will then attempt to connect to that address only without scanning the subnet. The static IP address you configure in the classic must be within the range as defined by your router subnet mask and gateway address (192.168.0.x in our example) typically 192.168.0.223.

You could also download a ping utility onto your S4 to make sure your phone can send a ping request to the classic and get a reply from it.

hope this helps.
Title: Re: Android app for the Classic
Post by: anvil on April 19, 2014, 06:42:26 PM
 thanks much. that should help
Title: Re: Android app for the Classic
Post by: anvil on April 20, 2014, 09:37:47 PM
howdy. I got her up and running.  all it took was a router and and an hour or two figuring out where the "on" button was.

here's what I found.

phone:

galaxy S4. GT I9505G. KitKat. VirginROM  v 3.1.2

the Google app connected with no problem.  I was not able to get the source forge download to connect.

when I click on the desktop icon I get a grey screen with a box in the center. the box and text are too small. text is unreadable.  I click on this with my hardware mouse and go to a deep purple screen. 

this connects and the data at the top is a good readable size.  click on view

and the gages come up. they are nice, but the middle boxes and numbers are too small and not readable.

under the gages are 3 buttons.  button text is unreadable/too small

left button brings up another screen.  the size is good and easily read!

middle button brings up another screen.  text is unreadably small.

3rd button (rt) . takes a while for screen to go from opaque to clear.  "check for updates, unlock code", readable. check box is small. h/w mouse works fine. not sure about touchscreen. may be a problem due to small size.  there is a too small box next to " unlock code". too small. cannot tell what symbol in box is.

what is "unlock code"?

3of 4 boxes at the bottom

button text is too small and unreadable.

1st (left) " overview"?

screen text is good and easy to read

2od button

cannot read text in screen "none"?

3rd(rt) " info"?

screen text is good and readable.

more or less, all the readable text is the same size.  the unreadable is about the same size. 

all in all,,, great job!

I cannot connect to the internet.  this is because, I'm sure, I need to connect the router to a modem.

would it be possible to use the phone's WiFi hotspot function and find/connect the classic thru the router to the internet?

or is there a way to connect the router/classic to the internet thru my phone?

will it be possible to upgrade the classic w/o a computer and just use the phone to do this?

thanks for all you are doing, its great. looking forward to what comes next. charts?


Title: Re: Android app for the Classic
Post by: Graham on April 21, 2014, 08:24:08 AM
Quote from: anvil on April 20, 2014, 09:37:47 PM
howdy. I got her up and running.  all it took was a router and and an hour or two figuring out where the "on" button was.

here's what I found.

phone:

galaxy S4. GT I9505G. KitKat. VirginROM  v 3.1.2

the Google app connected with no problem.  I was not able to get the source forge download to connect.

....

It sounds like your are using the android app provided by Midnite Solar which is a port of the Adobe Air desktop application to Android, they have a child board under 'local app software' for this.

I've been developing another open source Android app (the one on sourceforge) on my spare time primarily as an exercise to learn how to develop mobile apps for android. I work developing software for Microsoft/C# at my day job and I wanted to learn about the new Android Studio development environment from Google, I started developing this app in February before I realized that Midnite Solar had plans to port their app. 

One of the differences in my app compared to the Midnite Solar app is what it doesn't have, which is the ability to write to the Classic, I wanted a read-only display of the state of my CC so I don't have to worry about someone playing with the tablet and accidentally changing some setting on the CC.
I recently added a WihizBangJr to my system and I've been adding new features to my app like the Bi-Directional power gauge, the large SOC% display...

I'm still tinkering with the app and will continue to post updates on sourceforge.

The Classic will only accept one connection at a time from either the local app or Android apps, the MidniteSolar Android app will hold on to the connection even if it's minimized. Make sure the MS app is not running in the background if you want to try and connect with my app, you might have to go into the settings and verify the start scan address and range or enter the static IP address of the Classic.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on April 21, 2014, 08:45:22 AM
Yes you were out in front of the Midnite android apps Graham . And as far as graphics I like the looks and some of the features of yours more ! 
Title: Re: Android app for the Classic
Post by: anvil on April 21, 2014, 02:22:07 PM
now I understand. i havehave been following this thread and thought they were the same.

I will try what you suggested, and have 2 toys to play with
Title: Re: Android app for the Classic
Post by: Graham on April 22, 2014, 12:46:16 PM
Quote from: ClassicCrazy on April 21, 2014, 08:45:22 AM
Yes you were out in front of the Midnite android apps Graham . And as far as graphics I like the looks and some of the features of yours more ! 

Thanks, you have a lot more control when developing a native app but you can't reuse the code on other devices like Ipad etc
Title: Re: Android app for the Classic
Post by: offgridQLD on May 01, 2014, 11:44:51 PM
The apps been performing great though I have noticed one issue. It's not a big deal but its strange.

If I go to the Calendar screen I am showing 0.0 kWh every day this week. Going back over the months there is a lot of 0.0kWh days. If I log onto my midnite Its been recording the KWH totals for each day and there has been no resets. It all looks fine.

In the gauge view its showing the energy total for the day just calender view there are a lot of 0.0kWh days. The last time I had a day in calendar view that recorded a kwh number and float status was Sat 26 April. Though every day I reach float and obviously a + kwh number.

Ideas ?

edit: perhaps I need to update my classic firmware. I am running 1735 , just noticed its a little old now.

Kurt

Title: Re: Android app for the Classic
Post by: Graham on May 02, 2014, 08:00:16 AM
Quote from: offgridQLD on May 01, 2014, 11:44:51 PM
The apps been performing great though I have noticed one issue. It's not a big deal but its strange.

If I go to the Calendar screen I am showing 0.0 kWh every day this week. Going back over the months there is a lot of 0.0kWh days. If I log onto my midnite Its been recording the KWH totals for each day and there has been no resets. It all looks fine.

In the gauge view its showing the energy total for the day just calender view there are a lot of 0.0kWh days. The last time I had a day in calendar view that recorded a kwh number and float status was Sat 26 April. Though every day I reach float and obviously a + kwh number.

Ideas ?

edit: perhaps I need to update my classic firmware. I am running 1735 , just noticed its a little old now.

Kurt

It might have something to do with the Date/Time of the classic versus your device. Maybe you could try to reset the classic and set the time.

I'll try setting a wrong date at my system the next time I get to my cabin, see if it has an affect on the calendar


Graham.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on May 02, 2014, 08:55:45 AM
Not sure if this is related but the Local Status app offline data was showing me a lot of weird dates after one of the last firmware updates. It seemed like the clock was set okay in the Classic but there was a new feature to sync the clock with the Local Status app and some setting in a menu that allowed you to do that. I had changed something along the way and had to go back and reset that so the the Classic reported date correctly .

I didn't look recently to see if the same date problem was messing up Grahams android app reporting or not but can check this weekend.


Title: Re: Android app for the Classic
Post by: aleman83 on October 27, 2015, 02:28:26 PM
Hello Graham,

I just found your app and am about to try and set it all up with a router. I was just wondering, is there now support for multiple cc's? And if yes, do they show up seperately, or will they be combined when in follow me mode?

Best regards,

Roland
Title: Re: Android app for the Classic
Post by: Graham on October 27, 2015, 04:17:44 PM
I've actually never tried it with multiple classics, I have one here plus I used a modbus simulator running on a pc to simulate a second classic. The app should detect each classic on the local network and display an entry for each on the left slide out drawer, you can select and open a connection to one classic at a time.
I don't know how the classic works when it's configured in 'follow me' mode, does the master sum up the values from the slave or do you need a network connection to both master and slave(s) so that the local app can sum up the values? Maybe someone with some knowledge with follow me mode can clarify...

I added a new 'Consumption' tab in the last release but I decided to disable it when more than one classic is detected since I wasn't sure how the classics work together in this mode.


Graham.

Quote from: aleman83 on October 27, 2015, 02:28:26 PM
Hello Graham,

I just found your app and am about to try and set it all up with a router. I was just wondering, is there now support for multiple cc's? And if yes, do they show up seperately, or will they be combined when in follow me mode?

Best regards,

Roland
Title: Re: Android app for the Classic
Post by: offgridQLD on October 27, 2015, 05:31:23 PM
Hi Graham,
                  First another thank you for developing a great app. I just spent 4 weeks in the US away from our offgrid house in Australia and your Android app was a fantastic tool. Being able to just Pull my phone out of my pocket any where any time within seconds having that simple cylindrical graphical display of my offgrid battery SOC 10,000 miles away was perfect.

The Idea of combining some of the two or more classics data has my attention!

I run two Classic charge controllers in follow me mode. The Master classic  (House Classic) has the WBJR & temp probe and the (Shed Classic) is just following along.

QuoteI don't know how the classic works when it's configured in 'follow me' mode, does the master sum up the values from the slave or do you need a network connection to both master and slave(s) so that the local app can sum up the values? Maybe someone with some knowledge with follow me mode can clarify...

I added a new 'Consumption' tab in the last release but I decided to disable it when more than one classic is detected since I wasn't sure how the classics work together in this mode.

Obviously when I open the House classic I get the relevant WBJR data (State of Charge) , (Capacity) & the addition of (Shunt temp) under the temp tap.

Though all production totals are separate ( Energy)..KWH production and so on. You need to go into each classic separately to see what the individual classic has contributed. Its good to have individual data on each classic (to be able to see how each PV array/classic combo is performing) Though there is a lot of jumping back and forth with a note pad in hand to get combined numbers.

I find myself often wanting to know the simple sum of the two classics KWH production. Example 8.2kwh + 6.6kwh. So having a total combined  (total production) tab showing 14.8kwh would be great.

Often I find myself showing some one my system on the app and I get the response. "Oh you have only produced 10kwh today" I then have to explain that there is a 2nd classic that has also produced a similar number.

When using the Midnite (local app) when you first open it you get a window showing all the classics you have and some basic info on the one screen and you can see the two classic one under each other at the same time  along with the (KWH production) of each current (Output power in watts) and (charge stage) So I guess its possible to receive the date from the two  or more classics at the same time. Implementing it as a total in the Android app is over my head though.

Again thanks for a great app that I use every day.

Kurt
Title: Re: Android app for the Classic
Post by: offgridQLD on October 27, 2015, 06:12:12 PM
I just upgraded the app to try the new (consumption tab)

With two classics running it reports a to high consumption (somthing like 500w when my true consumption was more like 250w)

I then logged into my slave classic via the local app and shut it down. With only one master classic & wbjr it reported the correct live consumption of around 250w.

In the past to get live consumption with my two classics running I would just have to use the SOC tab at night time as any battery watt data is always negative at night (no PV production) So it could be consider this data as live consumption in watts or amps.

Though day time it wasn't possible.

Hope this info helps.

Kurt
Title: Re: Android app for the Classic
Post by: Westbranch on October 27, 2015, 08:23:51 PM
Quote from: offgridQLD on October 27, 2015, 06:12:12 PM

I then logged into my slave classic via the local app and shut it down.


Kurt, how did you manage to execute this connection?  I've tried with mine and no luck... :o
Title: Re: Android app for the Classic
Post by: offgridQLD on October 27, 2015, 09:15:49 PM
QuoteKurt, how did you manage to execute this connection?  I've tried with mine and no luck... :o

To turn a classic off via the midnite solar local app (just it's solar output but the classic is still powered on) You just open the Midnite local app. Click the (config) tab. Then click the (Basic) tab. Followed by clicking the (MPPT mode)  tab (ON /OFF) option. I selected ( off) then hit the little blue arrow icon  to send the command to the classic.

That's it your classic is now not outputting any PV power....Just remember to turn it back on ;)

I just did this to fool the Android app that I only have one classic and not two.

Kurt

Title: Re: Android app for the Classic
Post by: Graham on October 27, 2015, 09:54:53 PM
Thanks Kurt, i'm happy that you find the app useful, developing it was a good learning experience...
I'll have a look at the code when I get some time to see if I can make a 'summary' tab when more than one classic is in use.
The 'consumption' tab is simply the battery current of the classic minus the current measured by the whizbangJr, so lets say the classic is providing 10A and the wzb is measuring -15A (15A drain from the battery), then the load is 10a - (-15) == 25A, no load would be 10A from the classic and +10A at the wzb 10 - (10) == 0A load. In your case the calculated value is likely negative since there is more current going into the battery than is being supplied by the master classic, the gauge is displaying the absolute value, so the consumption value will be off since I'm not including the slave's current .
In the current release, the consumption tab should be hidden when there are more than one classic in the connection list.

Just want to make sure I understand 'follow me' correctly;
The slave classic is told when to change state (bulk to float etc) by the master.
Each classic must be connected to the network, i.e the data of the slave is not forwarded to the master via the master/slave connection.
so if I sum up the current readings of each classic minus the current of the whizbangjr, I should be able to display the load or consumption and the power harvested by the system.

Quote from: offgridQLD on October 27, 2015, 06:12:12 PM

Hi Graham,
                  First another thank you for developing a great app. I just spent 4 weeks in the US away from our offgrid house in Australia and your Android app was a fantastic tool. Being able to just Pull my phone out of my pocket any where any time within seconds having that simple cylindrical graphical display of my offgrid battery SOC 10,000 miles away was perfect.

The Idea of combining some of the two or more classics data has my attention!

...

I just upgraded the app to try the new (consumption tab)

With two classics running it reports a to high consumption (somthing like 500w when my true consumption was more like 250w)

I then logged into my slave classic via the local app and shut it down. With only one master classic & wbjr it reported the correct live consumption of around 250w.

In the past to get live consumption with my two classics running I would just have to use the SOC tab at night time as any battery watt data is always negative at night (no PV production) So it could be consider this data as live consumption in watts or amps.

Though day time it wasn't possible.

Hope this info helps.

Kurt
Title: Re: Android app for the Classic
Post by: offgridQLD on October 27, 2015, 10:27:52 PM
Yes multiple classics report there output data individually.

All that follow me does is let the two classics talk to each other (actually there isn't even a master / slave) What ever classic reaches absorb or float first will activate the other to follow it. They just follow each other (no master/ slave rules) Though I just call the classic that has the WBJR connected to it (the master) I really shouldn't as this could be misleading.

So to sum up having two or more classics set to (follow me). I guess it should be called (follow each other mode) It has no impact on how data is collected as in there is no summing of the data from multiple classics when using (follow me).

Kurt
Title: Re: Android app for the Classic
Post by: offgridQLD on October 27, 2015, 10:48:29 PM
The ultimate feature for me would to be able separate out more where every whr/kwh came from and went.

For example when the sun is down (6pm) and the two classics go to sleep until the next day when they wake up again. Lets say its 50ah from my battery over that time was consumed at 53v. That's 2.650kwh overnight consumption. A handy number to know.

I can calculate it in the morning manualy and because I am using lithium cell chemistry is more or less dead flat in the bulk of its discharge curve. I can approximate 53v and get close kwh numbers. Though some how being able to log the consumption data and see it in the plotted graphs would be useful. A bit like how we get a tally of the production KWH now. I guess voltage and consumption amps would need to be collected and summed to achieve this.

Perhaps more complex than it first sounds. Put simply the goal would be to see how much energy the battery contributed over a period of time vs energy that went straight from the PV and was consumed.

With the WBJR and the data from the classic ....clasicis there is a lot of usfull data that can be extrapolated from it


Kurt
Title: Re: Android app for the Classic
Post by: offgridQLD on October 27, 2015, 11:20:43 PM
Though perhaps a more realistic feature request would be to have the option to be able to see production data combined for multiple classics in the historical logs particularly total kwh production of multiple classics summed for a total kwh produced.

A summery tab sounds like a good feature.

Kurt
Title: Re: Android app for the Classic
Post by: Westbranch on October 28, 2015, 12:41:42 AM
Hi Kurt, I may not have been very clear about my question,

Quote from: offgridQLD on October 27, 2015, 06:12:12 PM
I then logged into my slave classic via the local app and shut it down.

What I was interested in was the specifics of how you ''called up '' your Classic and logged on while you were in the US of A.  I have tied to connect to mine from home and get no connection... ???

I am using W7 or
Is this only possible using an Android device?

ps, I have read the manual and as mine is not listed I believe I have it set up correctly...


Title: Re: Android app for the Classic
Post by: offgridQLD on October 28, 2015, 01:45:00 AM
Ok Sorry now I get your question.

Using the Android app or midnites Local app (or any network device ) is typically easy when your accessing it over the same local network at your house.

It can be a little harder to make that happen when away from your home. There is a list a mile long of small things that could be overlooked and be the reason its not successful.

A few things I did to shorten the list and keep it simple.


I have a static IP address at my house . This helps as I always know what IP address to call up my devices on. Where ever I am in the world. As it never changes like a dynamic IP.

So with a fixed (static IP address that I know)  All I need is the port number of the device I am trying to access. For example my two classics are port  502 and the other classic is port 503.

Other than that I just have them set up as the instruction outline in the manual. I also use a very common TP link model TD-W8960N wifi modem router that is very easy to set up and very stable. (also happens to be inexpensive) This made the job of forwarding the two ports to the outside world very easy (unlike some of my old modem/ routers that were very frustrating to work on)

It's just been set and forget for some time now.

Sorry I cant help much with the technicality's of solving your network or setup issues. I feel your pain/frustration though as it took me some time to iron out the flaky hardware and Provider - IP issues to get on top of my remote network connections.  Keep it simple and keep trying it can be done.

Kurt.



Title: Re: Android app for the Classic
Post by: Graham on October 28, 2015, 10:14:24 AM
The android app relies on data stored in the classic for it's graphs etc, it doesn't record the data itself otherwise it would have to run in the background 24/7   (with only one tcp connection available in the classic, the LA would not be able to connect...).
Unfortunately the classic does not record the whizbangjr data so there is no way I can figure out the historical consumption.
I should be able to make a summary tab that displays the current consumption, power and energy for multiple classics.


Graham.



Quote from: offgridQLD on October 27, 2015, 10:48:29 PM
The ultimate feature for me would to be able separate out more where every whr/kwh came from and went.

...

With the WBJR and the data from the classic ....clasicis there is a lot of usfull data that can be extrapolated from it


Kurt
Title: Re: Android app for the Classic
Post by: Graham on October 28, 2015, 10:34:32 AM
You can enter a network name using the "+add" menu item when the connection slide out is in view, the app will make a call to the dns service to resolve the name to an ip address.

You have to setup port forwarding and the dyndns service on your router, unfortunately the dyndns service is no longer free, some routers now come with the service such as: https://www.dlinkddns.com (https://www.dlinkddns.com)

If you get the LA working with remote access, you should be able to use the same network name in the android app.


Graham.

Quote from: Westbranch on October 28, 2015, 12:41:42 AM
Hi Kurt, I may not have been very clear about my question,

Quote from: offgridQLD on October 27, 2015, 06:12:12 PM
I then logged into my slave classic via the local app and shut it down.

What I was interested in was the specifics of how you ''called up '' your Classic and logged on while you were in the US of A.  I have tied to connect to mine from home and get no connection... ???

I am using W7 or
Is this only possible using an Android device?

ps, I have read the manual and as mine is not listed I believe I have it set up correctly...
Title: Re: Android app for the Classic
Post by: offgridQLD on October 28, 2015, 05:30:03 PM
Yes silly me expecting the app it to do the impossible. I didn't think one one through. ::)

With a WBJR attached to one classic we already get accumulative live + /- amps (watts) data in and out of the battery on the Android app as it is. As the WBJR shunt is on the one battery even with multiple classics its already accumulative.

I guess like you mention it's just the offline data that's taken from the classic's that can be played with. The one I find the most useful would be (Accumulative kwh production for the day)

Kurt
Title: Re: Android app for the Classic
Post by: aleman83 on October 31, 2015, 10:09:38 AM
Good morning everybody,

You guys pretty much already answered all my pending questions. Thank you so much for such a great app Graham. The accumulative tab would be fabulous!!!


Now I will be away from my system for a few weeks as well now, and I'm no expert at remote access things. Does anybody of you know a step by step instructions on how to set one up that is easy to understand for a novice? It would be brilliant to be able to see what's happening from abroad.

And again.... Thank you very much Graham!
Title: Re: Android app for the Classic
Post by: binkino on October 31, 2015, 07:51:47 PM
@aleman83

so you mean, you can use the app and have a look to your device from external?

you need to know your IP of your internet connection at home, or a dynDNS service.

What router do you have?

Title: Re: Android app for the Classic
Post by: aleman83 on October 31, 2015, 08:00:33 PM
I tried again on my own now, but am not making much progress. I opened an account with www.noip.Com which should work like dyndns. I opened a host with a name let's call it solar.ddns.net using my current ip address on my local network. Then I went into my router settings and found "virtual servers". There I added my classic with the port I am using, which is 502, and the classic static ip address that I have set with the dip switches on the classic itself. Then I went to Dynamic Das on my router, and added my host that I created with noip.com,. But so far no luck. Apparently the app finds the classic just fine when I'm in wireless range of the local network, but not over the internet.  Did I miss something?

Thanks for all the got work!!!!
Title: Re: Android app for the Classic
Post by: aleman83 on October 31, 2015, 08:03:38 PM
The router I have is from nexxt solutions. But I found all the settings so far as described in the local app manual. But am still no able to access over the internet. I'm not sure what Imy missing. The iPad dress of my provider seems to be dynamic since I have a new one everything I reconnect. So I opened the account with noip.Com which my router even showed in the drop down menu in dynamic dns.
Title: Re: Android app for the Classic
Post by: offgridQLD on October 31, 2015, 08:09:15 PM
Yes you can log into the andoid app from a external internet connection.

You need the ports open to the outside world (port forwarded) and if your internet service   at home has a dynamic Ip address (one that changes all the time) you need to use a 3rd party service to keep track of the changing Ip address so you know how to find your home network.

I opted for a adsl internet service that alocates me with a static IP address and that made connecting to divices (classic chargers, security cams, wifi aiconditioners...lots of things can take advantage of it now days) from outside a lot easier . As you always have the same IP.

So if I want to connect to my classic using the android app I  type my IP address into the  box and the port number of the classic and that's it once it's saved it automatically conects every time I open the app away from the house.

You can do the same with midnite solars (local app) only advantage in the local app you can make changes to your classics settings via the app.Though I don't use it much now days.particularly as you need a pc to run it.

Some times internet providers charge extra for static IP addresses but I found one that offers it as standard. Even if you do have to pay extra it might be worth it as the 3rd party  services you need to use if you have a dynamic Ip cost money to now days.

Kurt
Title: Re: Android app for the Classic
Post by: binkino on October 31, 2015, 08:10:43 PM
Quote from: Westbranch on October 28, 2015, 12:41:42 AM
...
Is this only possible using an Android device?

If you need to use it on a PC, you can use one of the Android Emulations.
I use "BluStacks" on my XP machine. The Emu needs some modification, so that all game-crap is gonski - works great :D
Have downloaded a "allready rooted" version then, that makes it much easier.

But better get a cheap (used?) tablet with 6" or 7" with android 4.x - also the chinese bricks work okay and are good enough for that.

I have my old ASUS 7" with crack in the display and a "lexibook tablet master 2" (if the bootloader in my Asus will go on strike again)
that was very cheap (because no one wants them haha) and is absolute good enough for this job.

The only problem (generaly on android) is, that the midnite app sometimes hangs in the process / memory and blocks the access to the midnite, if you had the app open ... naah okay then rebooting the tablet, things done (that is the moment, when my Asus sometimes strikes in bootloader, 2 days later it runs again... I modified something tooooo extremly in it hehe)
Title: Re: Android app for the Classic
Post by: offgridQLD on October 31, 2015, 08:17:44 PM
This isn't the midnite app we are talking about this is a privatly produced app for the classic that runs on Android available from the app store.

Yes a old or inexpwnsive Android tablet is the go. I might look into that for dedicating it to this app and mounting it in the kitchen. It's a bit of a wast to have a nexus 7 1080p screen and hardware just running a simple app.

Kurt
Title: Re: Android app for the Classic
Post by: binkino on October 31, 2015, 08:19:10 PM
I don't know the "nexxt solutions" ...

1st, you must know your IP. Go to  http://myip.is/ and remember it for later

Like it is written before, you must do the settings in your router. A so called "port forwarding"

(btw does your provider allow access from external? here in germany, you have problems with unitymedia/kabelbw if they give you a ipv6 - or mobile networks, no chance then)

I can tell you how in a fritz.box 6390/7220/similar:
- login
- click on "internet" on the left
- click on "shares" (or similar, this is all translated from german)
- then "new share" on the right lower place
- choose "other" in "share active for.." in the pull down menu
- "description" - your choise, i.e. use "Classic"
- "protocol" = tcp
- from port ___ to port ___ <- here you can use the regular port 502 from the device, or other, but you must remember this port, when do the settings in the app ... let's say, you keep "502" to "502"
- "to computer" - a menu, here you should find your midnite device, select it or chooce "manual" and input the IP of your midnite device
- "on port" - the port of your device, normaly "502"

then click the [ok]

in the opverview you should now see the share.

in my case, there is:
Title: Re: Android app for the Classic
Post by: binkino on October 31, 2015, 08:23:11 PM
Quote from: offgridQLD on October 31, 2015, 08:17:44 PM
This isn't the midnite app we are talking about this is a privatly produced app for the classic that runs on Android available from the app store.

Coorect, I know :)
I know this app, look in the last page :D

I just wrote about, that if you had the midnite app open and leave/close it, the midnite app sometimes hangs somewhere in the Android system and blocks the access to the midnite for Graham's App.
That is in my view, an importand hint if someone can't connect to the midnite ;)


QuoteYes a old or inexpwnsive Android tablet is the go. I might look into that for dedicating it to this app and mounting it in the kitchen. It's a bit of a wast to have a nexus 7 1080p screen and hardware just running a simple app.

Kurt

yes that is like driving a ferrari to buy milk haha
Title: Re: Android app for the Classic
Post by: Westbranch on October 31, 2015, 08:24:04 PM
Interesting comments, thanks... 

I have 2 older ASUS W7 pc's that are gathering dust right now, I will try the oldest one first,  with Linux ' Mint V. 17.2 Rafaela Xfce' and see if I can get the LApp working and leave it on 24/7 on site...
Title: Re: Android app for the Classic
Post by: binkino on October 31, 2015, 08:31:58 PM
Running a complete big PC? Okay if you have the energy :D
But a old laptop ( most ~ 70 watts) or netbook (most ~ 30 watts) will be perfect
Title: Re: Android app for the Classic
Post by: Westbranch on October 31, 2015, 09:01:21 PM
Sorry, not a desktop PC but a notebook...ASUS EEE PC 4g - BK040 ....  uses 22W max...
Even 70W is too much
Title: Re: Android app for the Classic
Post by: Graham on October 31, 2015, 09:06:04 PM
Still very much a 'work in progress' but I have an updated version of the app that has a new 'System' tab that will display when more than one classic is detected, the "energy' tab also has a radio button to select system or unit energy. Have yet to look at the summation of the historical data for the calendar etc.

If anyone (with more than one classic) would like to try it, here is a link to dropbox, let me know what you think.

https://www.dropbox.com/s/60fw2sid4yf5yl3/app-release.apk?dl=0 (https://www.dropbox.com/s/60fw2sid4yf5yl3/app-release.apk?dl=0)


Graham.
Title: Re: Android app for the Classic
Post by: Graham on October 31, 2015, 09:25:10 PM
BTW, forgot to mention, you need to have a whizbangJr in your system, the new tab will display when you select the classic with the whizbangjr connected to it.


Quote from: Graham on October 31, 2015, 09:06:04 PM
Still very much a 'work in progress' but I have an updated version of the app that has a new 'System' tab that will display when more than one classic is detected, the "energy' tab also has a radio button to select system or unit energy. Have yet to look at the summation of the historical data for the calendar etc.

If anyone (with more than one classic) would like to try it, here is a link to dropbox, let me know what you think.

https://www.dropbox.com/s/60fw2sid4yf5yl3/app-release.apk?dl=0 (https://www.dropbox.com/s/60fw2sid4yf5yl3/app-release.apk?dl=0)


Graham.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on October 31, 2015, 09:44:36 PM
Graham ,
I don't see any setting on the Energy Tab - is that only for more than one Classic ?

Larry
Title: Re: Android app for the Classic
Post by: Graham on October 31, 2015, 09:52:15 PM
Yes, you need to have more than one classic supplying one battery bank with a whizbangJr connected to one of the them

the updated app will poll all classics so it can display a summary of the energy, power and consumption of the system. With a single classic, you should see the 'Consumption tab' which is just the classic battery current minus the whizbang current.

Quote from: ClassicCrazy on October 31, 2015, 09:44:36 PM
Graham ,
I don't see any setting on the Energy Tab - is that only for more than one Classic ?

Larry
Title: Re: Android app for the Classic
Post by: Westbranch on October 31, 2015, 11:28:10 PM
Will it show if there are 2 Classics on separate banks rather than 2 one 1 bank?
Title: Re: Android app for the Classic
Post by: offgridQLD on October 31, 2015, 11:49:15 PM
Thanks For the app update the accumulative KWh production for the day works perfect. :)

Just one question.

When the app reads the historic data and (for example displays it in the calendar month view) Is it possible to have a (system) selector tab option in that window. Though when (System tab) is selected all that would change is the total combine KWH production would change to the sum of both classics all other data would stay the same?

Reason being its just nice to look over the past week - months KWH totals for the day and compare each day . If you forgot to look at the live one you just added it's lost each day .....yes I know you can just open each classic and write it down and add them up. Though it would be nice to be able to hit a button and have them display. All other data (max volts, temps, ect can just be from one classic)

I hope that makes sense. :)


QuoteWill it show if there are 2 Classics on separate banks rather than 2 one 1 bank?
I couldn't see see why not. though it would only work if you just have one WBJ though .

Kurt

Title: Re: Android app for the Classic
Post by: Graham on November 01, 2015, 12:10:01 AM
Yes the tab will show but the consumption value will not be correct since it's only reading the current value from one whizbangjr

Quote from: Westbranch on October 31, 2015, 11:28:10 PM
Will it show if there are 2 Classics on separate banks rather than 2 one 1 bank?
Title: Re: Android app for the Classic
Post by: Graham on November 01, 2015, 12:16:21 AM
I was thinking of adding a radio button like the one in the energy tab to the calendar to display either the daily kWh for the system and the unit

Does your load/consumption reading look accurate in the system tab?


Quote from: offgridQLD on October 31, 2015, 11:49:15 PM
Thanks For the app update the accumulative KWh production for the day works perfect. :)

Just one question.

When the app reads the historic data and (for example displays it in the calendar month view) Is it possible to have a (system) selector tab option in that window. Though when (System tab) is selected all that would change is the total combine KWH production would change to the sum of both classics all other data would stay the same?

Reason being its just nice to look over the past week - months KWH totals for the day and compare each day . If you forgot to look at the live one you just added it's lost each day .....yes I know you can just open each classic and write it down and add them up. Though it would be nice to be able to hit a button and have them display. All other data (max volts, temps, ect can just be from one classic)

I hope that makes sense. :)


QuoteWill it show if there are 2 Classics on separate banks rather than 2 one 1 bank?
I couldn't see see why not. though it would only work if you just have one WBJ though .

Kurt
Title: Re: Android app for the Classic
Post by: Graham on November 01, 2015, 12:49:30 AM
I got it working with noip.com but it took a few hours for the dns entry to replicate to the dns servers.

the first thing I did was to setup and test port forwarding;
- I added a port forwarding rule with the local IP address of the classic (192.168.0.22),  the local port (502) and the public port (I used 39502). Then saved the changes and rebooted the router.
- Once it rebooted I made note of the wan IP address my router was assigned by my service provider.
- I then disabled wifi on my phone to force it to use the cell network, opened the android app and added an new device entry using 39502 for the port and my wan ip for the address and it connected to the classic ok.

DDNS setup
- back to the router page, selected the ddns tab
- entered my noip.com username/pw and hostname as per the attachement
- a few hours later I was able to ping the hostname (skyetracker.ddns.com)
- disabled wifi on the phone again, created an entry using the hostname and 39502 for the port and it connected to the classic.

My noip hostname is skyetracker.ddns.com if you would like to try connecting to it, it's a classic that's just connected to a car battery for test purposes, I'll leave it running for a couple of days.


Graham.

Quote from: aleman83 on October 31, 2015, 08:03:38 PM
The router I have is from nexxt solutions. But I found all the settings so far as described in the local app manual. But am still no able to access over the internet. I'm not sure what Imy missing. The iPad dress of my provider seems to be dynamic since I have a new one everything I reconnect. So I opened the account with noip.Com which my router even showed in the drop down menu in dynamic dns.
Title: Re: Android app for the Classic
Post by: offgridQLD on November 01, 2015, 01:16:20 AM
QuoteDoes your load/consumption reading look accurate in the system tab?

Yes it looks good to me . Kind of hard to see as your doing balance calculations in your head on the fly (particularly when your wife is vacuuming and turning loads on and off while your testing :P) Though just looking again now I think its fine.

QuoteI was thinking of adding a radio button like the one in the energy tab to the calendar to display either the daily kWh for the system and the unit

That sounds perfect,.

Thanks for entertaining our Requests. Living in a 100% offgrid house full time. Little apps like this one get used by the entire family every day.

Kurt




Title: Re: Android app for the Classic
Post by: Graham on November 01, 2015, 12:06:52 PM
I uploaded an update to dropbox,
the app now has a selection on the calendar page to display the energy for the system as well as the controller (you can scroll to previous months by swiping the grey area of the calendar up)
+ I'm now summing the readings from all whizbangJrs, so if you have two battery banks with each their own whizbangjr, the consumption should be correct.

The system selection will not be displayed if you have one classic.

please let me know if you see any issues or have any recommendations, I'll be publishing the app to google play in a few days after I do some more tests


https://www.dropbox.com/s/60fw2sid4yf5yl3/app-release.apk?dl=0 (https://www.dropbox.com/s/60fw2sid4yf5yl3/app-release.apk?dl=0)


Graham.
Title: Re: Android app for the Classic
Post by: aleman83 on November 01, 2015, 07:07:33 PM
Hello Graham,

I tried connecting to your classic with the app and for some strange reason it won't connect.  And I don't even have the local app installed, so that wouldn't be an issue.

Any ideas? Does it still work for you?
Title: Re: Android app for the Classic
Post by: Graham on November 01, 2015, 07:28:12 PM
Quote from: aleman83 on November 01, 2015, 07:07:33 PM
Hello Graham,

I tried connecting to your classic with the app and for some strange reason it won't connect.  And I don't even have the local app installed, so that wouldn't be an issue.

Any ideas? Does it still work for you?

Yes, just tried it, it took a minute to connect but it worked...
I used my phone with WiFi off, port 39502 , address skyetracker.ddns.net

Maybe someone else was connected to it when you tried it or maybe your routers firewall is blocking the port, try to ping the address from a pc cmd window.

Title: Re: Android app for the Classic
Post by: offgridQLD on November 02, 2015, 06:58:23 AM
Graham,
              Just tried the latest update to the app. It works perfectly. :)

Just one idea. When you first open the app. It defaults the the (System) window showing (power) and (consumption) Gauges. Perhaps it would be better to have (State of charge) window as the default  screen when you first open it.

Thanks for the update

Kurt

Title: Re: Android app for the Classic
Post by: Graham on November 02, 2015, 04:18:49 PM
Quote from: offgridQLD on November 02, 2015, 06:58:23 AM
Graham,
              Just tried the latest update to the app. It works perfectly. :)

Just one idea. When you first open the app. It defaults the the (System) window showing (power) and (consumption) Gauges. Perhaps it would be better to have (State of charge) window as the default  screen when you first open it.

Thanks for the update

Kurt

Ok, I'll re-order the tabs before I publish the app as follows:

-When you have more than one classic and a whizbangjr the tabs are;

State of Charge|System|Power|Energy|Capacity|Temperature|Day Log Calendar|Day Log Chart|Hour Log Chart|Info|Messages|About

-When you only have one classic and a whizbangjr the tabs are;

State of Charge|Consumption|Power|Energy|Capacity|Temperature|Day Log Calendar|Day Log Chart|Hour Log Chart|Info|Messages|About

-with NO whizbangjr regardless of the number of classics the tabs are;

Power|Energy|Temperature|Day Log Calendar|Day Log Chart|Hour Log Chart|Info|Messages|About

-with a tristar the tabs are;

Power|Energy|About


Let me know if you can think of better names for the tabs, not sure if 'power' make sense anymore, at least for the first two cases, maybe it should be 'controller'


Graham.
Title: Re: Android app for the Classic
Post by: binkino on November 05, 2015, 07:59:20 PM
Hi Graham,

all great! but ... one wish :)

(you remember, we were talking about the popup messages to move them to the upper part)

Since last official update  there is a new popup message after starting the app...
Then the other messages ... that is to much now ;)


(oh and some translation would be good to correct hehe)
Title: Re: Android app for the Classic
Post by: Graham on November 07, 2015, 09:31:57 AM
Quote from: binkino on November 05, 2015, 07:59:20 PM
Hi Graham,

all great! but ... one wish :)

(you remember, we were talking about the popup messages to move them to the upper part)

Since last official update  there is a new popup message after starting the app...
Then the other messages ... that is to much now ;)

too much text or or displayed for too long?

I can certainly update the text or reduce the display time...

(oh and some translation would be good to correct hehe)

too much text or displayed too long?

I can certainly update the translation...
Title: Re: Android app for the Classic
Post by: binkino on November 07, 2015, 04:35:57 PM
just send me by email

yes the message from the screenshot appears everytime I open the app ...
Do we need it? :)

Title: Re: Android app for the Classic
Post by: Graham on November 12, 2015, 10:43:10 PM
I published version 2.3.0 of the app on the google play store https://play.google.com/store/apps/details?id=ca.farrelltonsolar.classic (https://play.google.com/store/apps/details?id=ca.farrelltonsolar.classic), the update should be available on your device over the next few days
This version includes a link in the action bar to documentation hosted on a web site, you can now disable auto connect and the popup messages from the settings page,
plus fixes for a couple of bugs reported this week.
If you have any issues or comments please post them at https://github.com/graham22/Classic/issues (https://github.com/graham22/Classic/issues)


Graham.
Title: Re: Android app for the Classic
Post by: Graham on November 14, 2015, 01:24:40 PM
I now have a few translations done for the online help file that the app links to.
I did the French & Italian, my buddy Andy (aka Binkino) did the German translation.
If anyone would like to help with the Spanish translation that would be very much appreciated.

http://skyetracker.com/classicmonitor/help_en.html (http://skyetracker.com/classicmonitor/help_en.html)
http://skyetracker.com/classicmonitor/help_fr.html (http://skyetracker.com/classicmonitor/help_fr.html)
http://skyetracker.com/classicmonitor/help_de.html (http://skyetracker.com/classicmonitor/help_de.html)
http://skyetracker.com/classicmonitor/help_it.html (http://skyetracker.com/classicmonitor/help_it.html)
http://skyetracker.com/classicmonitor/help_es.html (http://skyetracker.com/classicmonitor/help_es.html) *** currently a copy of *_en

thanks
Graham.

Title: Re: Android app for the Classic
Post by: binkino on November 15, 2015, 12:40:57 PM
just updated ... it's a dream!  (http://a68k.de/xxx/icon_spitze.gif)

sadly I remember no spanish one who could do translation - I can ask around here
but I know here Russian, Turkish, Romanian, Albanian, possible Swedish, ... mh ...
If you need it, let me know I will ask them :)
Title: Re: Android app for the Classic
Post by: ClassicCrazy on November 15, 2015, 05:07:18 PM
Tried out the new version Graham - working great ! Thanks .
Title: Re: Android app for the Classic
Post by: ClassicCrazy on December 20, 2015, 12:56:22 PM
I had some weird behavior today - the app would sync up and show data but then go back to nothing and sync up again - it kept flashing back and forth loading / unloading.

I then tried the Local Status app and it wouldn't connect at all.
I reset the Classic and that fixed it - but if I shut off the Android app , the Local Status app still will not connect.
I noticed that MyMidnite went off line last night about midnite and didn't start reporting again until this morning when I reset the power to the Classic.

So I am thinking there might be some sort of bug with the networking on newest firmware - maybe ?

Also before or in between there I had restarted my wireless router just in case that was what was causing the problems but that didn't seem to fix anything .

Anyway the Android App for the Classic is working fine now !

Larry
Title: Re: Android app for the Classic
Post by: ClassicCrazy on December 20, 2015, 03:08:49 PM
got the issue sort of figured out - in this discussion .

http://kb1uas.com/mnsforum/index.php?topic=2794.msg26996#msg26996

And notice above where ever I said wireless I meant wifi
Title: Re: Android app for the Classic
Post by: Graham on December 20, 2015, 03:59:27 PM
Quote from: ClassicCrazy on December 20, 2015, 03:08:49 PM
got the issue sort of figured out - in this discussion .

http://kb1uas.com/mnsforum/index.php?topic=2794.msg26996#msg26996

And notice above where ever I said wireless I meant wifi

I tried it with version 2079, it connected ok.
I did notice that version 2.3 of my app doesn't close the tcp connection when the app is minimized (by pressing the android circle) but does close the connection when you press the square button to show the list of running apps, then swipe the app left or right to terminate it.
the Android o/s fires the same event when an app is minimized or rotated (portrait/landscape), I should probably add some code to close the tcp connection once the app is minimized for a few seconds so that it doesn't close/open every time the device is rotated.



Graham.
Title: Re: Android app for the Classic
Post by: Graham on February 28, 2016, 10:04:37 AM
Quote from: Graham on December 20, 2015, 03:59:27 PM

I tried it with version 2079, it connected ok.
I did notice that version 2.3 of my app doesn't close the tcp connection when the app is minimized (by pressing the android circle) but does close the connection when you press the square button to show the list of running apps, then swipe the app left or right to terminate it.
the Android o/s fires the same event when an app is minimized or rotated (portrait/landscape), I should probably add some code to close the tcp connection once the app is minimized for a few seconds so that it doesn't close/open every time the device is rotated.


Finally found some time to take a look at this issue.
The app should now close the tcp connection after being minimized for 10 seconds allowing the local app to connect. Rotating the phone/tablet from landscape to portrait will not close/open the connection.
I put release 2.3.1 in dropbox if anyone would like to test it, I'll post it on google play in a few days if there are no issues...

https://www.dropbox.com/s/60fw2sid4yf5yl3/app-release.apk?dl=0 (https://www.dropbox.com/s/60fw2sid4yf5yl3/app-release.apk?dl=0)


Graham.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on February 28, 2016, 04:15:03 PM
Just loaded up 2.3.1 on my Amazon Kindle Fire 7" that I recently rooted and installed Cyangenmod on - works fine.  These $50 tablets are excellent ( $40 on sale !) and your Classic interface really comes to life Graham .

Larry
Title: Re: Android app for the Classic
Post by: binkino on February 28, 2016, 05:45:00 PM
Absolutely! :)
Also have a 7" cheap "children tabled" here for spare if my Asus will freeze forever one day 8is close to)
That was hard to root, but done successfuly also removed all thas "crap" haha, works fine for this job.
Also only about 40 Euros.
The cheapest chinese thing will do it.


btw on PC side, you can also use "bluestack" as a allready rooted version (not official) and install and use the app here.
(full customizable resolution for the window or fullscreen - if someone has questions, I can answer and help with this)



@GRAHAM:
on a quick view, app works well, very fast and shows datas very quick when changing screen / tab
will try tomorrow on my phone
Title: Re: Android app for the Classic
Post by: binkino on February 28, 2016, 06:51:11 PM
hate dropbox
dont work in any of my android browser, cant 'click' the download ... waaah web2.x sucks again...
Title: Re: Android app for the Classic
Post by: Westbranch on February 29, 2016, 07:43:46 PM
Quote from: Graham on February 28, 2016, 10:04:37 AM

Finally found some time to take a look at this issue.
The app should now close the tcp connection after being minimized for 10 seconds allowing the local app to connect. Rotating the phone/tablet from landscape to portrait will not close/open the connection.
I put release 2.3.1 in dropbox if anyone would like to test it, I'll post it on google play in a few days if there are no issues...

https://www.dropbox.com/s/60fw2sid4yf5yl3/app-release.apk?dl=0 (https://www.dropbox.com/s/60fw2sid4yf5yl3/app-release.apk?dl=0)

Graham.

thanks Graham, I just got a (new) Samsung Tab4 and, after downloading  more than 1 copy ::), it lacks a fast  'download notification'   >:(  I got your app installed . I like the look and feel of it.

I'll be headed out to the cabin soon  :) so will give it a go and let you know if I find something non-functional...
Title: Re: Android app for the Classic
Post by: binkino on March 01, 2016, 11:50:40 AM
Hi Graham,

the App shows me (o System) and (o Controller)
but I have only one controller at the moment
Should not be visible with only one controller?

When 'switching' to (o System) in the calendar, the App freezes
is this because there is only one controller?

cheers,
Andy

Title: Re: Android app for the Classic
Post by: binkino on March 01, 2016, 07:21:14 PM
Graham,
have problems with the App on my Asus with OS 4.2
looks like problems with the network? hard to describe in english
reopening the app often don't get datas from the classic
also blocks network in the Asus tablet, so can't use web browser, can't open web pages, must task-kill the App
sometimes i get the os-message, that the app was closed.
Title: Re: Android app for the Classic
Post by: Graham on March 01, 2016, 07:53:38 PM
Quote from: binkino on March 01, 2016, 11:50:40 AM
Hi Graham,

the App shows me (o System) and (o Controller)
but I have only one controller at the moment
Should not be visible with only one controller?

When 'switching' to (o System) in the calendar, the App freezes
is this because there is only one controller?

cheers,
Andy

Yes, that selector for system - controller should only be visible when you have more than one classic,
Do you have more than one item in the left nav bar?
You could try to delete all entries in the nav bar by sliding them to the right, then let it re- detect your classic
Or
You could try clearing the app data by going to Android settings>apps>classic,

Graham.
Title: Re: Android app for the Classic
Post by: Graham on March 01, 2016, 07:59:59 PM
Quote from: binkino on March 01, 2016, 07:21:14 PM
Graham,
have problems with the App on my Asus with OS 4.2
looks like problems with the network? hard to describe in english
reopening the app often don't get datas from the classic
also blocks network in the Asus tablet, so can't use web browser, can't open web pages, must task-kill the App
sometimes i get the os-message, that the app was closed.

Can you ping your tablet from a pc when it's in that state?
You can get the tablets IP address in settings>adout tablet > status
Title: Re: Android app for the Classic
Post by: binkino on March 02, 2016, 07:19:32 PM
Hi :)

sorry I was to fast with uninstalling the new version and reinstalled 2.1.5 again,

but doing it again.

installed new version over the old version, now I have 2 icons -- I uninstall the old icon, it uninstalls both.
I install only the new version
(android bug - ehm - feature --- haha)
opening app
It finds my classic, but I also set the internet-way with port-forwarding.
connected with the internet-way
can see the main screen with the 5 gauges
shows me PV volts and Battery volts
on energy tab, it shows me the kwh
charge stae, is empfy. 0% and 0,0W
temperatures, missing WBJr.
calendar is empty
the other diagrams also empty
info: unit ID 0000 0000, shows the IP and port.
last voc = 0,0 V and battery volts 0 V

I task-kill it - nothing changed.

Restarting the tab ...

starting app again, now shows me chargestate - system ... and so on.
looks all fine.

leaving it several times by home or back button, but can access internet withj the browser
okay now it is working - will tell you when network is again not working


oh it has found the classic in the local network, and I also have my manually set connection over the internet (port-forwarding and so on)
I removed now the internet way and now only Classic in local Network.
Open this connection, and again I have only the mainscreen first, nothing else.
Task-kill it, and open it again, now the charge state is the first screen.
all okay


okay at the moment, "network" is working, will ping it if it happens again and let you know ;)

Andy
Title: Re: Android app for the Classic
Post by: Graham on March 04, 2016, 07:55:54 AM
Quote from: binkino on March 02, 2016, 07:19:32 PM
Hi :)

sorry I was to fast with uninstalling the new version and reinstalled 2.1.5 again,

but doing it again.

installed new version over the old version, now I have 2 icons -- I uninstall the old icon, it uninstalls both.
I install only the new version
(android bug - ehm - feature --- haha)
opening app
It finds my classic, but I also set the internet-way with port-forwarding.
connected with the internet-way
can see the main screen with the 5 gauges
shows me PV volts and Battery volts
on energy tab, it shows me the kwh
charge stae, is empfy. 0% and 0,0W
temperatures, missing WBJr.
calendar is empty
the other diagrams also empty
info: unit ID 0000 0000, shows the IP and port.
last voc = 0,0 V and battery volts 0 V

I task-kill it - nothing changed.

Restarting the tab ...

starting app again, now shows me chargestate - system ... and so on.
looks all fine.

leaving it several times by home or back button, but can access internet withj the browser
okay now it is working - will tell you when network is again not working


oh it has found the classic in the local network, and I also have my manually set connection over the internet (port-forwarding and so on)
I removed now the internet way and now only Classic in local Network.
Open this connection, and again I have only the mainscreen first, nothing else.
Task-kill it, and open it again, now the charge state is the first screen.
all okay


okay at the moment, "network" is working, will ping it if it happens again and let you know ;)

Andy

In version 2.2 I added the 'System' tab that displays the sum of the power from all classics configured in the app, to achieve this, the app connects to all classics configured in the nav bar.
Prior the this release, the app would only connect to the classic you select.
If you have two entries, one using the domain name and the other auto detected, then the app will try to connect to both, in other words, the app will try to connect to the same classic twice.
For now, since you have one classic, you should use release 2.15, I'll take a look at the connection code to see if I can avoid connecting to duplicate endpoints.


Graham.
Title: Re: Android app for the Classic
Post by: Westbranch on March 05, 2016, 12:53:31 PM
Graham, I have the dropbox V. installed and it recognizes my classic # 4592 but nothing for data as yet... Any tips? 
New to Android, 1 wk, so please go easy on the tech lingo...
Title: Re: Android app for the Classic
Post by: Graham on March 05, 2016, 01:58:52 PM
Quote from: Westbranch on March 05, 2016, 12:53:31 PM
Graham, I have the dropbox V. installed and it recognizes my classic # 4592 but nothing for data as yet... Any tips? 
New to Android, 1 wk, so please go easy on the tech lingo...

Is there an orange exclamation symbol next to the entry in the nav bar?
did the version from google play work (2.2.0)?, did it stop working when you tried the dropbox version?


things to try;
- make sure you don't have the local app (or any other device, arduino...) running at the same time

- try clearing the app data, go to android>settings>apps>classic and press the clear data,/cache, stop the app. then restart the app and let it detect the classic.

- can you try the MS android app to see if it works  https://play.google.com/store/apps/details?id=air.LocalStatusPanelMobile (https://play.google.com/store/apps/details?id=air.LocalStatusPanelMobile)



When the app is run for the first time, it tries to load all the day logs from the classic, this can take some time, once this is done, it will only load the days since the last time it was run.
If there is that exclamation mark, then the classic is either refusing connection or is unreachable over TCP, although the app is seeing the UDP broadcast from the classic since it's detecting the classic

Graham


Title: Re: Android app for the Classic
Post by: Westbranch on March 05, 2016, 09:45:45 PM
a little background:  Arrived yesterday pm and decided to checkout  Cl 4952 one last time , sun shining and I wanted to try your App..  usually use MN Local App as I want quick access to make changes... I came out to change out 4952 fpr Cl 29032 since it rfused to talk to MMn 2 yet talked to MMn1 quite happily..  It all seemed to coincide (?) with a //fw upgrade to the latest as I use the remote monitoring during the winter to see if the battery can handle a constant load for sat I net connection etc..  that is a real concern at this time...  :-[  as I did have a bad spot a year ago and drained one of my banks down vverry low, but it is still hanging in.....

So I tried your Android App  :) really like look and feel of it, so far, but it didn't connect as above...  so I started this AM to  re & re 4952 for 29032.

ad a bit of no connection with the MN L App, caused by the factory boys checking that the new box would connect to the net, but they used some weird IP addresses etc that took a while to decipher, especially using the |MNGP...

So yes 4592 did have a ! mark but 29032 does not yet, there is still no info at this time, I got done just as the sun was going behind the mountain today...

The 'hamburger' on the left, top corner, beside "Network' is orange as is the question mark beside the 'wheelly ' thing in the upper right above your data screens..

No, I had not tried your Google  play posted version.  I will check it out tomorrow as well as checking out the data ..... it did take a fiar while to download it yesterday...

more tomorrow


Title: Re: Android app for the Classic
Post by: Graham on March 06, 2016, 07:11:25 AM
Quote from: Westbranch on March 05, 2016, 09:45:45 PM
a little background:  Arrived yesterday pm and decided to checkout  Cl 4952 one last time , sun shining and I wanted to try your App..  usually use MN Local App as I want quick access to make changes... I came out to change out 4952 fpr Cl 29032 since it rfused to talk to MMn 2 yet talked to MMn1 quite happily..  It all seemed to coincide (?) with a //fw upgrade to the latest as I use the remote monitoring during the winter to see if the battery can handle a constant load for sat I net connection etc..  that is a real concern at this time...  :-[  as I did have a bad spot a year ago and drained one of my banks down vverry low, but it is still hanging in.....

So I tried your Android App  :) really like look and feel of it, so far, but it didn't connect as above...  so I started this AM to  re & re 4952 for 29032.

ad a bit of no connection with the MN L App, caused by the factory boys checking that the new box would connect to the net, but they used some weird IP addresses etc that took a while to decipher, especially using the |MNGP...

So yes 4592 did have a ! mark but 29032 does not yet, there is still no info at this time, I got done just as the sun was going behind the mountain today...

The 'hamburger' on the left, top corner, beside "Network' is orange as is the question mark beside the 'wheelly ' thing in the upper right above your data screens..

No, I had not tried your Google  play posted version.  I will check it out tomorrow as well as checking out the data ..... it did take a fiar while to download it yesterday...

more tomorrow

This is what I see when my classics are disconnected or connected to the LA (see attached), the "question mark beside the 'wheelly '" is just an icon that launches the online help

(click the hamburger icon to get the nav bar)
If it displays an IP address with an exclamation in the bar then it detected the classic (received a UDP broadcast) but is unable to connect to it.
If it displays the name of the classic ("classic" by default) with the exclamation mark, then it has previously connected to the classic but cannot now.
If the bar is empty, then it isn't receiving any UDP broadcast on the local network, try browsing to your local router IP from your device to confirm your device is on the local wifi
(http://screenshot_20160306-065112.png)



Graham.
Title: Re: Android app for the Classic
Post by: Westbranch on March 06, 2016, 11:56:33 AM
Morning Graham, I get the white band with the Classic's name showing, no other info so far.

Trying to download the MN version , Stuck on AIR right now...???

got past that and  the LA opens , show summary bar  but VIEW willl not open the App.

TAB surface does not like me, wife able to get it to advance...

notice I am having the same problem Mike 9054? is having DATA tab only has 1 bottom tab  the one on the left....??? maybe something to do with AIR..??
Title: Re: Android app for the Classic
Post by: Westbranch on March 07, 2016, 11:54:24 AM
If it displays the name of the classic ("classic" by default) with the exclamation mark, then it has previously connected to the classic but cannot now.

Hi Graham, this morning I have 2 entries  for  Cl 29032, this would be because I played with DCHP last night and it auto changed to its old IP address, but would not connect, but I left the IP as is.. other wise no hook up yet.   My MS based LApp connects fine but not the MN android version won't let me 'in' to make changes to the settings so it is in sync with the MS version...?
Title: Re: Android app for the Classic
Post by: Graham on March 07, 2016, 12:40:06 PM
Quote from: Westbranch on March 07, 2016, 11:54:24 AM
If it displays the name of the classic ("classic" by default) with the exclamation mark, then it has previously connected to the classic but cannot now.

Hi Graham, this morning I have 2 entries  for  Cl 29032, this would be because I played with DCHP last night and it auto changed to its old IP address, but would not connect, but I left the IP as is.. other wise no hook up yet.   My MS based LApp connects fine but not the MN android version won't let me 'in' to make changes to the settings so it is in sync with the MS version...?

Two entries to the same classic will cause it not to connect,
you could try the following;
in the setting (press the gear), disable Auto detect
then with the nav bar open (hamburger icon) slide all entries to the right to erase them
then (+ADD) and enter the port and local IP address of your classic, then save the new entry
click on the entry to open.

as always, make sure the local app (and MN android app ) are not running.


Graham.
Title: Re: Android app for the Classic
Post by: Westbranch on March 07, 2016, 01:09:03 PM
GOT IT! I just had to clean everything out and then reset auto-detect 'on'...  works like a charm...

Thank you Graham!

I did notice one item I need to change, and that is the background on the Tab, and the 'check marks' in the small squares are very hard to see even at max illumination...  Any ideas?
Title: Re: Android app for the Classic
Post by: Graham on March 07, 2016, 03:27:54 PM
Quote from: Westbranch on March 07, 2016, 01:09:03 PM
GOT IT! I just had to clean everything out and then reset auto-detect 'on'...  works like a charm...

Thank you Graham!

I did notice one item I need to change, and that is the background on the Tab, and the 'check marks' in the small squares are very hard to see even at max illumination...  Any ideas?

What is the make/model/android version of your phone, I'll see if I have it in my emulator, the hardest part of android development is supporting all the different resolutions/sizes etc.
+ if you can, could you post a picture of the tab, there are a number of free screen capture apps in google play


Graham.
Title: Re: Android app for the Classic
Post by: Westbranch on March 08, 2016, 08:10:06 PM
Hope this  is good
Title: Re: Android app for the Classic
Post by: Westbranch on March 08, 2016, 08:36:07 PM
Graham, I sent a reply with image, I hope, using the Tab.  I hope it is good enough for what you need...
ps the Tab has a screen capture facility built in...  :)

Eric
Title: Re: Android app for the Classic
Post by: Graham on March 08, 2016, 08:41:23 PM
Quote from: Westbranch on March 08, 2016, 08:36:07 PM
Graham, I sent a reply with image, I hope, using the Tab.  I hope it is good enough for what you need...
ps the Tab has a screen capture facility built in...  :)

Eric

hmm... the colour is different
this is what it looks like on a Nexus 5
Title: Re: Android app for the Classic
Post by: Westbranch on March 08, 2016, 08:51:41 PM
almost no colour...  :(   :o
Title: Re: Android app for the Classic
Post by: Resthome on March 09, 2016, 01:21:19 PM
Quote from: Westbranch on March 08, 2016, 08:10:06 PM
Hope this  is good

See the same color as WB using Bluestacks on Win10
Title: Re: Android app for the Classic
Post by: Westbranch on March 21, 2016, 08:57:01 PM
Graham, fyi,  I was just looking at the Hr log chart and noticed that the times  at the bottom seem to be 12 hrs off...
Title: Re: Android app for the Classic
Post by: Susido on March 24, 2016, 10:47:04 AM
I only recently discovered this app and have to say it is fantastic! I do think it needs better promotion though I guess Midnite Solar has a vested interest in their own (rather sad by comparison) android local app...

It also gave new purpose to my old Asus Transformer tablet I hadn't used in years. I will now mount the 11" screen on a wall (minus the keyboard) and dedicate it to this app.

I did have a problem with it when I first tried using it; the app loading/unloading every second or two flashing between no data and real data. I'm guessing this is the same issue reported way back on the first page of this thread? I can't say why but the next day it worked fine so hopefully it stays that way.
Title: Re: Android app for the Classic
Post by: Graham on March 25, 2016, 09:09:39 AM
Quote from: Westbranch on March 21, 2016, 08:57:01 PM
Graham, fyi,  I was just looking at the Hr log chart and noticed that the times  at the bottom seem to be 12 hrs off...

It probably failed to read a chunk of logs from the classic, you can clear the recorded logs in the settings which will force the app to reload the logs next time it starts.
+ make sure the time on the classic is the same as your device.


Graham.
Title: Re: Android app for the Classic
Post by: Graham on March 25, 2016, 09:22:41 AM
Quote from: Susido on March 24, 2016, 10:47:04 AM
I only recently discovered this app and have to say it is fantastic! I do think it needs better promotion though I guess Midnite Solar has a vested interest in their own (rather sad by comparison) android local app...

It also gave new purpose to my old Asus Transformer tablet I hadn't used in years. I will now mount the 11" screen on a wall (minus the keyboard) and dedicate it to this app.

I did have a problem with it when I first tried using it; the app loading/unloading every second or two flashing between no data and real data. I'm guessing this is the same issue reported way back on the first page of this thread? I can't say why but the next day it worked fine so hopefully it stays that way.

Yeah, I wish I could reproduce that here, I suspect it's related to the day logs download from the classic, the app will load the day log up until the last time it read the logs, so the first time you launch the app it will attempt to read all logs from the classic, the next day it will only read the last day log. In some cases it appears to hit a log entry it can't load that triggers a re-connect.


Graham.
Title: Re: Android app for the Classic
Post by: binkino on March 31, 2016, 08:39:41 PM
have 2nd Classic now, connected to a psu, to network, set own IP address ... app works and can easy switch between the classics

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

thanks
Title: Re: Android app for the Classic
Post by: Graham on April 02, 2016, 09:30:32 PM
Quote from: binkino on March 31, 2016, 08:39:41 PM
have 2nd Classic now, connected to a psu, to network, set own IP address ... app works and can easy switch between the classics

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

thanks

I'll add it to my list of requested feature,
If you can find a cheap android device (or root an amazon kindle...)  you could dedicate one to the upload of  each of your classics. Some people are mounting the device next to their equipment.


Graham.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on April 02, 2016, 09:53:48 PM
yeah I bought an Amazon Kindle Fire 7 inch when they were on sale recently for $40 and rooted it , changed operating system to add Playstore, and loaded up Classic Monitor and it looks great on it.
Title: Re: Android app for the Classic
Post by: binkino on April 03, 2016, 04:28:38 AM
Quote from: Graham on April 02, 2016, 09:30:32 PM
I'll add it to my list of requested feature,

thanks ;)


Title: Re: Android app for the Classic
Post by: 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
Title: Re: Android app for the Classic
Post by: binkino on April 15, 2016, 07:06:23 AM
2 weeks ago I testet Android 6 on my X1072, App was running well on it (http://a68k.de/xxx/icon_spitze.gif)


(but I have regretted the error to update to 6, it is possible to make Android even more worse then 5 and so I am back on 5.0.2 - it is really not recommende to go higher then 4.4 ... but 5.0.2 is the oldest Android for this device, sadly. Looking now for a newer 4.x phone brick that fits my needs... )
Title: Re: Android app for the Classic
Post by: 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?
Title: Re: Android app for the Classic
Post by: 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
Title: Re: Android app for the Classic
Post by: 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 auto detect enabled).

Graham
Title: Re: Android app for the Classic
Post by: Graham on April 26, 2016, 07:59:21 PM
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 (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 (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 (https://github.com/graham22/Classic)

Graham
Title: Re: Android app for the Classic
Post by: binkino on April 28, 2016, 10:21:24 AM
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 (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 (https://github.com/graham22/Classic)
Graham

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

Title: Re: Android app for the Classic
Post by: Westbranch on April 30, 2016, 01:05:11 PM
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?
Title: Re: Android app for the Classic
Post by: Graham on April 30, 2016, 04:18:05 PM
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.
Title: Re: Android app for the Classic
Post by: 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 ;)

Title: Re: Android app for the Classic
Post by: 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.

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!
Title: Re: Android app for the Classic
Post by: 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.
Title: Re: Android app for the Classic
Post by: Graham on May 06, 2016, 12:26:45 PM
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.
Title: Re: Android app for the Classic
Post by: Westbranch on May 06, 2016, 12:43:56 PM
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
Title: Re: Android app for the Classic
Post by: binkino on May 07, 2016, 08:00:39 AM
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
Title: Re: Android app for the Classic
Post by: Graham on May 08, 2016, 09:24:08 AM
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.
Title: Re: Android app for the Classic
Post by: binkino on May 08, 2016, 04:58:59 PM
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
Title: Re: Android app for the Classic
Post by: Graham on May 15, 2016, 12:18:07 PM
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 (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.

Title: Re: Android app for the Classic
Post by: binkino on May 15, 2016, 08:13:41 PM
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!!!  (http://a68k.de/xxx/icon_spitze.gif) (http://a68k.de/xxx/icon_spitze.gif) (http://a68k.de/xxx/icon_spitze.gif)

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 ;)
Title: Re: Android app for the Classic
Post by: Westbranch on May 16, 2016, 12:18:44 AM
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!
Title: Re: Android app for the Classic
Post by: binkino on May 16, 2016, 05:44:27 AM
Hi

I use
192.168.1.222:502 (48v)
and
192.168.1.223:502 (24v)
worked before with version 2.1.5 and again I am back on 2.1.5

It was after reboot past of midnight


In 2.1.5 I can also set both Classic in each tablet in the network setting, but use only one of the classic each tablet for displaying the datas, no problems, no interfering

Title: Re: Android app for the Classic
Post by: Graham on May 16, 2016, 06:59:44 PM
Quote from: binkino on May 16, 2016, 05:44:27 AM
worked before with version 2.1.5 and again I am back on 2.1.5
...
In 2.1.5 I can also set both Classic in each tablet in the network setting, but use only one of the classic each tablet for displaying the datas, no problems, no interfering

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


hmm, looks like I'll have to add an option to disable the System Tab that was added in 2.2.0,
In order to display the System power and consumption, the app connects to all classics to sum the power and calculate the consumption by subtracting the whizbang current. This only make sense when multiple classic are charging one battery bank in follow me mode, not when you have independent classics with each their own battery bank with different nominal voltages.


The Live chart plots an entry for voltage, supply and battery current every 2 seconds, after six hour of plotting, the page swiping wasn't very smooth so I might have to limit the amount of data plotted.
If the app is in the background it can be unloaded by android if it needs the memory so you need to keep it in foreground to accumulate data for the graph but it doesn't have to remain on the live chart tab to plot the data.



Title: Re: Android app for the Classic
Post by: Westbranch on May 19, 2016, 05:01:20 PM
well I managed to do a screen capture of the LIVE CHART and there are some interesting observations.. seen/see-able below I hope...  note how low the Batt V goes! every time the fridge kicks in...
Title: Re: Android app for the Classic
Post by: Westbranch on May 19, 2016, 05:09:45 PM
this one is clearer
Title: Re: Android app for the Classic
Post by: Westbranch on May 19, 2016, 09:08:26 PM
Vic asked a question on the other thread to which I will investigate a poor 2V cell, high resistance connection,   etc.. this weekend.

Is anyone else seeing this type of pattern if they use the latest version with Live Chart?

ie is this an artifact of the 2 sec sampling rate, or ???
Title: Re: Android app for the Classic
Post by: Graham on May 19, 2016, 10:00:56 PM
Quote from: Westbranch on May 19, 2016, 05:01:20 PM
well I managed to do a screen capture of the LIVE CHART and there are some interesting observations.. seen/see-able below I hope...  note how low the Batt V goes! every time the fridge kicks in...

It might be invalid readings from the modbus service or a bug in the chart,
the charge state (line at the bottom of the chart) should display as follows;

Resting: Black (code 0)
Absorb: Orange (code 3)
BulkMPPT: Green (code 4)
Float: Blue (code 5)
FloatMPPT: Cyan (code 6)
Equalize:  Pink (code 7)
HyperVOC: Red (code 10)
EQMPPT: Violet (code 18)

you have blank gaps in the green line that indicate it's not one of the valid charge states or the x axis values are out of sequence
I'll let my test system run this weekend to see if I get it to occur


Graham.
Title: Re: Android app for the Classic
Post by: Westbranch on May 19, 2016, 11:34:41 PM
Thanks Graham, I did note that some of the dips were when the fridge kicked in, not watching constantly but looking over when the fridge started +- 1 min. or so, but I see on full screen , not 7 inch, that there is one group of 2 full dips that has 1 short and one long break in the green line...

I will try to replicate the graphs this weekend... :)
Title: Re: Android app for the Classic
Post by: Graham on May 20, 2016, 07:00:31 PM
Did catch one this morning, 
I'll have to look through the android logcat data to try figure out whats going on,
I suspect I'm plotting a reading for the whizbang modbus register (4360...) while not getting a response for the volt & supply current (register 4100 ...)


found a use for my chromecast device, here is the live chart on the big screen
Title: Re: Android app for the Classic
Post by: Westbranch on May 21, 2016, 12:14:22 AM
found a use for my chromecast device, here is the live chart on the big screen

Great Idea....makes for easy viewing compared to a 7" screen...
Title: Re: Android app for the Classic
Post by: Graham on May 22, 2016, 10:33:29 AM
I have an updated beta apk in the dropbox location (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0 (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0)) if you would like to help me test it.

The live chart drops to zero where due to a modbus network disconnect, the apps service thread running in the background sends out a modbus read request on the network, when it gets a reply, it broadcasts the data to the listeners in the app (gauges etc), when it doesn't get a reply, it broadcast a charge state code of -1 to clear the displays etc. This was causing the gap in the green line on the graph.

The latest beta will not chart the disconnects if a reconnect succeeds, if it does get a SOC code of -1, it will display it a white segment.

Andy,
I also added a new setting to disable the system view when each classic is independent (not in follow me mode, separate batteries...). When in this mode, the SID for PVOutput is assigned to the current selected controller, allowing you to have a PVOutput for each CC.
When the 'System View' is not checked, the app should only connect to one CC at a time. Make sure you restart the app after you uncheck the setting to make sure it disconnects from the other CC.
There was a lot of changes to the code to support this, especially the PVOutput uploader, it will need a fair amount of testing before it can be published to google play.

Let me know if this setting works for you.

I still have to address some performance issues with the chart.

If you see anything weird with the chart, please don't assume there is something wrong with your system since this is a beta version of the app.



Graham.
Title: Re: Android app for the Classic
Post by: Westbranch on May 22, 2016, 01:06:36 PM
Hi Graham, well loaded the new version, 10 minutes on , looks good ...  will advise if I see any drops on the screen or   ...  ??? waiting for the clouds to part this morning, ......it's coming slowly..
Title: Re: Android app for the Classic
Post by: Westbranch on May 22, 2016, 02:01:17 PM
OOPS!   :o      :(   

Perhaps I mispake myself Too  SOON..... the white bits are showing up in the SoC line and the Batt Voltage drops to zero...
Title: Re: Android app for the Classic
Post by: Graham on May 22, 2016, 03:59:15 PM
Quote from: Westbranch on May 22, 2016, 02:01:17 PM
OOPS!   :o      :(   

Perhaps I mispake myself Too  SOON..... the white bits are showing up in the SoC line and the Batt Voltage drops to zero...

oops, think I might have put the 'if' statement in the wrong spot,

another update (2.4.2) is now in the dropbox location (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0)
Title: Re: Android app for the Classic
Post by: BioPower on May 22, 2016, 05:45:08 PM
Appears to working nicely now, thanks Graham.

Is there a how to somewhere to show what to do to be able to use the app via the net?
Title: Re: Android app for the Classic
Post by: Graham on May 22, 2016, 06:25:41 PM
Quote from: Graham on November 01, 2015, 12:49:30 AM
I got it working with noip.com but it took a few hours for the dns entry to replicate to the dns servers.

the first thing I did was to setup and test port forwarding;
- I added a port forwarding rule with the local IP address of the classic (192.168.0.22),  the local port (502) and the public port (I used 39502). Then saved the changes and rebooted the router.
- Once it rebooted I made note of the wan IP address my router was assigned by my service provider.
- I then disabled wifi on my phone to force it to use the cell network, opened the android app and added an new device entry using 39502 for the port and my wan ip for the address and it connected to the classic ok.

DDNS setup
- back to the router page, selected the ddns tab
- entered my noip.com username/pw and hostname as per the attachement
- a few hours later I was able to ping the hostname (skyetracker.ddns.com)
- disabled wifi on the phone again, created an entry using the hostname and 39502 for the port and it connected to the classic.

My noip hostname is skyetracker.ddns.com if you would like to try connecting to it, it's a classic that's just connected to a car battery for test purposes, I'll leave it running for a couple of days.


Graham.

Quote from: aleman83 on October 31, 2015, 08:03:38 PM
The router I have is from nexxt solutions. But I found all the settings so far as described in the local app manual. But am still no able to access over the internet. I'm not sure what Imy missing. The iPad dress of my provider seems to be dynamic since I have a new one everything I reconnect. So I opened the account with noip.Com which my router even showed in the drop down menu in dynamic dns.

Here is a previous post related to accessing your classic remotely,

Step 1 is to setup port forwarding
Step 2 is to use a ddns service to map your wan IP to a network name


Google port forwarding with the make of your router
Title: Re: Android app for the Classic
Post by: Westbranch on May 22, 2016, 07:10:23 PM
3rd try to post...
Not working yet
Volts still going to Zero
Pics too big...!
Title: Re: Android app for the Classic
Post by: Graham on May 22, 2016, 08:42:24 PM
Quote from: Westbranch on May 22, 2016, 07:10:23 PM
3rd try to post...
Not working yet
Volts still going to Zero
Pics too big...!

hmm, that's exactly the same as before! I wonder if I copied the correct build to dropbox?
did a full rebuild and uploaded another copy just in case

I'm opening the cottage tomorrow, so hopefully I'll be able to get some real data to work with.

Title: Re: Android app for the Classic
Post by: Westbranch on May 22, 2016, 08:51:08 PM
Hi Graham, I will delete and reload,  will advise if I see pattern again this evening. 

Have a good time at the lake.   :)
Title: Re: Android app for the Classic
Post by: Westbranch on May 22, 2016, 09:32:58 PM
Hi Graham, just noted some long(er)  BLACK sections in the SOCbar.. hope this capture shows it. Yes it does, and what I was trying to capture was a series of ~ 30 second  black bars which happened as the amps dropped in both the solar and  battery...  ??
Title: Re: Android app for the Classic
Post by: Graham on May 22, 2016, 09:40:00 PM
Quote from: Westbranch on May 22, 2016, 09:32:58 PM
Hi Graham, just oted some long BLACK sections in the SOCbar.. hope this capture shows it

Black represents 'resting'

Green is bulk and blue is float
Title: Re: Android app for the Classic
Post by: Westbranch on May 22, 2016, 09:56:40 PM
OK we are just into that on /off part of a cloudy evening,even though the sun should still be up, its 18:55.... thanks Graham,

I just saw where the PV was just above zero, flat lined,  and then the  battery line drooped and there was no black in the Soc bar..so RESTING makes sense
Title: Re: Android app for the Classic
Post by: Graham on May 22, 2016, 10:02:54 PM
Quote from: Westbranch on May 22, 2016, 09:32:58 PM
Hi Graham, just noted some long(er)  BLACK sections in the SOCbar.. hope this capture shows it. Yes it does, and what I was trying to capture was a series of ~ 30 second  black bars which happened as the amps dropped in both the solar and  battery...  ??

The yellow is the current being supplied by the classic to the batteries or load and the turquoise is the current measured by the whizbangjr, negative values indicate a load or discharge
I'm not charting the current from the panels
Title: Re: Android app for the Classic
Post by: Westbranch on May 23, 2016, 12:18:58 PM
Thanks for clarifying that Graham, I seldom use the gen to charge so am kind of stuck in the solar only rut...

Here is this mornings capture, looks like that repost version is right on...The blue one and a ' RED ' one from last night as the supply got down to zero.

Title: Re: Android app for the Classic
Post by: Westbranch on May 23, 2016, 12:20:31 PM
Red capture
Title: Re: Android app for the Classic
Post by: Graham on May 29, 2016, 08:10:01 AM
Quote from: Graham on May 22, 2016, 10:33:29 AM
I have an updated beta apk in the dropbox location (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0 (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0)) if you would like to help me test it.
...

Andy,
I also added a new setting to disable the system view when each classic is independent (not in follow me mode, separate batteries...). When in this mode, the SID for PVOutput is assigned to the current selected controller, allowing you to have a PVOutput for each CC.
When the 'System View' is not checked, the app should only connect to one CC at a time. Make sure you restart the app after you uncheck the setting to make sure it disconnects from the other CC.
There was a lot of changes to the code to support this, especially the PVOutput uploader, it will need a fair amount of testing before it can be published to google play.

Let me know if this setting works for you.

...

Andy,
have you had a chance to try the new release (2.4.2) with the 'System View' feature unchecked?
this feature will restrict the app to only connecting to one classic at the time.
Title: Re: Android app for the Classic
Post by: binkino on May 29, 2016, 11:56:14 AM
Oh Graham I am sorry, I missed it.
I had downloaded the 2.4.2
but - how ever - didn't see in the post that you have changed it - my apologies!

I will be at home in ~ 6hrs and check and report immediately :)

Andy
Title: Re: Android app for the Classic
Post by: grgdgreek on May 29, 2016, 12:05:03 PM
Working o.k. moto tablet+galaxy s2:-)
Title: Re: Android app for the Classic
Post by: 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
Title: Re: Android app for the Classic
Post by: Resthome on May 30, 2016, 07:30:45 AM
Quote from: Graham on May 29, 2016, 08:10:01 AM
Quote from: Graham on May 22, 2016, 10:33:29 AM
I have an updated beta apk in the dropbox location (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0 (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0)) if you would like to help me test it.
...

Andy,
I also added a new setting to disable the system view when each classic is independent (not in follow me mode, separate batteries...). When in this mode, the SID for PVOutput is assigned to the current selected controller, allowing you to have a PVOutput for each CC.
When the 'System View' is not checked, the app should only connect to one CC at a time. Make sure you restart the app after you uncheck the setting to make sure it disconnects from the other CC.
There was a lot of changes to the code to support this, especially the PVOutput uploader, it will need a fair amount of testing before it can be published to google play.

Let me know if this setting works for you.

...

Andy,
have you had a chance to try the new release (2.4.2) with the 'System View' feature unchecked?
this feature will restrict the app to only connecting to one classic at the time.

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.
Title: Re: Android app for the Classic
Post by: 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?
Title: Re: Android app for the Classic
Post by: 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.
Title: Re: Android app for the Classic
Post by: grgdgreek on May 30, 2016, 02:29:38 PM
I have 2*cl150 in follow me if it helps
George
Title: Re: Android app for the Classic
Post by: 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?
Title: Re: Android app for the Classic
Post by: 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.

Title: Re: Android app for the Classic
Post by: Resthome on May 30, 2016, 02:41:02 PM
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.
Title: Re: Android app for the Classic
Post by: Resthome on May 30, 2016, 02:45:33 PM
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
Title: Re: Android app for the Classic
Post by: Graham on May 30, 2016, 08:21:14 PM
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
Title: Re: Android app for the Classic
Post by: Graham on May 30, 2016, 08:54:54 PM
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.

Title: Re: Android app for the Classic
Post by: 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)


Title: Re: Android app for the Classic
Post by: Graham on May 31, 2016, 11:56:15 AM
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

Title: Re: Android app for the Classic
Post by: 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 ;)

Title: Re: Android app for the Classic
Post by: Graham on May 31, 2016, 08:59:17 PM
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 (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0)
Title: Re: Android app for the Classic
Post by: 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.


Title: Re: Android app for the Classic
Post by: Graham on June 01, 2016, 07:55:01 AM
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.

Title: Re: Android app for the Classic
Post by: ClassicCrazy on June 01, 2016, 10:49:25 PM
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
Title: Re: Android app for the Classic
Post by: Graham on June 02, 2016, 09:26:16 AM
Quote from: ClassicCrazy on June 01, 2016, 10:49:25 PM
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

With your setup you should have 'Enable System View' unchecked.

When it's checked, the app will connect to all classics and sum up the power and consumption values, this should be used when you have more than one classic that are charging one battery bank.
When it's not unchecked, each classic is independent and the app will only connect to the selected classic.

Uncheck the 'Enable System View' check box, restart the app. let me know if the consumption values make sense.

Graham
Title: Re: Android app for the Classic
Post by: ClassicCrazy on June 02, 2016, 09:49:39 AM
Quote from: Graham on June 02, 2016, 09:26:16 AM
Quote from: ClassicCrazy on June 01, 2016, 10:49:25 PM
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

With your setup you should have 'Enable System View' unchecked.

When it's checked, the app will connect to all classics and sum up the power and consumption values, this should be used when you have more than one classic that are charging one battery bank.
When it's not unchecked, each classic is independent and the app will only connect to the selected classic.

Uncheck the 'Enable System View' check box, restart the app. let me know if the consumption values make sense.

Graham

Yes - unchecking the System View - now they are different and makes sense.
Thanks,
Larry
Title: Re: Android app for the Classic
Post by: binkino on June 03, 2016, 08:37:38 PM
Graham,

I just had nothing to do and a look to your dropbox, :D
the new release 3 hours ago:
https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACYFiNhy7ADhwUXyJ_UUz7Ia/app-release.apk?dl=0
have just download and test it :)

installed this latest version on both devices

Just if it is interesting for you: :)
If I open the app only on one device, it works
If I open it then also on the 2nd device, is has trouble to get data; it also can not "see" that the WBJr is in the system and shows only the tab with the 5 gauges. But shows battery voltage
If I deactivate the app on the first written device and close everything, then open it again on the 2nd device and change between the Classics, then it appears.
I open the app on the "first" device again, it has the same problems ...  ;)


edit: now after noon I open both apps and works. Have an eye on it :D
Title: Re: Android app for the Classic
Post by: Graham on June 04, 2016, 08:04:51 AM
Quote from: binkino on June 03, 2016, 08:37:38 PM
Graham,

I just had nothing to do and a look to your dropbox, :D
the new release 3 hours ago:
https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACYFiNhy7ADhwUXyJ_UUz7Ia/app-release.apk?dl=0
have just download and test it :)

installed this latest version on both devices

Just if it is interesting for you: :)
If I open the app only on one device, it works
If I open it then also on the 2nd device, is has trouble to get data; it also can not "see" that the WBJr is in the system and shows only the tab with the 5 gauges. But shows battery voltage
If I deactivate the app on the first written device and close everything, then open it again on the 2nd device and change between the Classics, then it appears.
I open the app on the "first" device again, it has the same problems ...  ;)


edit: now after noon I open both apps and works. Have an eye on it :D

Thanks for the video for the last issue, that really helped,
I wonder if auto connect is causing both devices to try to connect to the same CC
I'm  working on support for multiple pvoutput accounts/SID with the latest all on dropbox
Title: Re: Android app for the Classic
Post by: Priusron on June 09, 2016, 10:12:45 AM
I hope this is the right place to post my questions. I am using Classic Monitor. I am unable to auto upload to PvOutput. In Classic Monitor setting page I have everything checked and have put in my API Key and SID. It won't upload. I downloaded McDonald Pv Output last night and today or quit responding. Over night in Classic Monitor I lost my day log calendar reading for the last 4 days. The total kWh is 0.0, the power to batteries is 0 w except for Sunday it changed to 87w from over 700 w. For tie and we'd my panel volts is showing as 4.6v which is way low. Was over 30v. I love the live chart view. Any help would be greatly appreciated. I am using version 2.4.3. System view is checked but it also frayed out. I only have one classic 150.
Title: Re: Android app for the Classic
Post by: Westbranch on June 09, 2016, 11:34:12 AM
I lost my first days output (viewed on day 2) and no more sent/received since....??
Title: Re: Android app for the Classic
Post by: Graham on June 09, 2016, 11:38:22 AM
Quote from: Priusron on June 09, 2016, 10:12:45 AM
I hope this is the right place to post my questions. I am using Classic Monitor. I am unable to auto upload to PvOutput. In Classic Monitor setting page I have everything checked and have put in my API Key and SID. It won't upload. I downloaded McDonald Pv Output last night and today or quit responding. Over night in Classic Monitor I lost my day log calendar reading for the last 4 days. The total kWh is 0.0, the power to batteries is 0 w except for Sunday it changed to 87w from over 700 w. For tie and we'd my panel volts is showing as 4.6v which is way low. Was over 30v. I love the live chart view. Any help would be greatly appreciated. I am using version 2.4.3. System view is checked but it also frayed out. I only have one classic 150.

Make sure the classic has the correct date & time using the local app or mngp.

In the settings of the app, there is a "Clear Recorded Logs' button, this will erase the file on your device containing the data that is sent to PVOutput.

Once you clear the logs, restart the app and wait for it to load the day logs, it should then start to upload the data to PVOutput.

if the above does not work, then I would clear the app setting by going to Android Settings under 'Apps' find the classic app, then "force Stop' & 'Clear Data'
then restart the app, let it auto connect to the classic then re-enter the PVoutput Key  & SID, Save the settings and restart the app again.

Question: do you have more than one classic in your system?
Title: Re: Android app for the Classic
Post by: Graham on June 09, 2016, 11:42:14 AM
Quote from: Westbranch on June 09, 2016, 11:34:12 AM
I lost my first days output (viewed on day 2) and no more sent/received since....??

Are you using version 2.4.3?
Title: Re: Android app for the Classic
Post by: Priusron on June 09, 2016, 03:07:15 PM
Quote from: Graham on June 09, 2016, 11:38:22 AM
Quote from: Priusron on June 09, 2016, 10:12:45 AM
. I only have one classic 150.

Make sure the classic has the correct date & time using the local app or mngp.

In the settings of the app, there is a "Clear Recorded Logs' button, this will erase the file on your device containing the data that is sent to PVOutput.

Once you clear the logs, restart the app and wait for it to load the day logs, it should then start to upload the data to PVOutput.

if the above does not work, then I would clear the app setting by going to Android Settings under 'Apps' find the classic app, then "force Stop' & 'Clear Data'
then restart the app, let it auto connect to the classic then re-enter the PVoutput Key  & SID, Save the settings and restart the app again.

Question: do you have more than one classic in your system?



I will do all that when I get home tonight. Thanks. I will update when I am done one way or another.
Title: Re: Android app for the Classic
Post by: Westbranch on June 09, 2016, 04:05:33 PM
Quote from: Graham on June 09, 2016, 11:42:14 AM
Quote from: Westbranch on June 09, 2016, 11:34:12 AM
I lost my first days output (viewed on day 2) and no more sent/received since....??
Are you using version 2.4.3?

No, I had the Day 1 data disappear at about the time you posted the latest version.
Noticed I was not the only one  so posted info on  my data drop.

I will load V 20.4.3 for this weekend and see if anything changes.
Title: Re: Android app for the Classic
Post by: Graham on June 10, 2016, 07:50:57 AM
Quote from: Westbranch on June 09, 2016, 04:05:33 PM

No, I had the Day 1 data disappear at about the time you posted the latest version.
Noticed I was not the only one  so posted info on  my data drop.

I will load V 20.4.3 for this weekend and see if anything changes.

The kW/h data in PVOutput should be the same as the calendar tab and the 'Offline data' in the local app.

Did the app read the day 1 kW/h data and failed to upload it or is it missing in the calendar as well?

The latest APK has a few other fixes and the new Share icon to capture screen shots

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

Title: Re: Android app for the Classic
Post by: Priusron on June 10, 2016, 10:54:17 AM
My date was set back to 2012. Corrected that then forced reboot. I stopped classic monitor and cleared cache. Reconfigured classic monitor and rebooted tablet. I lost the data for the rest of the days for this month but it found the data for the 5th of this month. Will it slowly find the data or is it lost. Not a big deal as I am playing trying to get it to update PVOutput at this time. I know how well it is working I just want a better history.

It works. It transmitted all the way back through last month. Just missing data for this month. Will this correct itself or just from now going forward?
Title: Re: Android app for the Classic
Post by: Graham on June 10, 2016, 01:12:35 PM
Quote from: Priusron on June 10, 2016, 10:54:17 AM
My date was set back to 2012. Corrected that then forced reboot. I stopped classic monitor and cleared cache. Reconfigured classic monitor and rebooted tablet. I lost the data for the rest of the days for this month but it found the data for the 5th of this month. Will it slowly find the data or is it lost. Not a big deal as I am playing trying to get it to update PVOutput at this time. I know how well it is working I just want a better history.

It works. It transmitted all the way back through last month. Just missing data for this month. Will this correct itself or just from now going forward?

The PVOutput site imposes limits to the rate and number of entries it will accept.

the app will upload one entry for each day starting yesterday going back every 10 seconds up to a limit of 20 days.
the app will remember the date of the latest upload and will upload from the current date (-1) to the latest upload date
if you press 'Clear recorded logs' in the settings, it will clear the latest upload date so that it will upload the last 20 days again.
the data uploaded is the same as what is displayed in the calendar tab, so if the calendar is correct, it should eventually make it up to pvOUtput.org

I believe the pvoutput site will accept a .csv file that you can get using the local app in the 'offline data' section.
The site will probably stop accepting entries once you've uploaded 20, so you might have to wait until tomorrow for that limit to clear. 

Title: Re: Android app for the Classic
Post by: binkino on August 07, 2016, 09:39:46 AM
Graham, after update to the latest version, today I found that there is no more "switch" menu for pv,brutto,battery,ampere,... in the hours/day log,
before this was onky in portrait view mode on my
Motorola G 2.gen

Cheers
Andy
Title: Re: Android app for the Classic
Post by: Graham on August 08, 2016, 10:20:46 AM
Quote from: binkino on August 07, 2016, 09:39:46 AM
Graham, after update to the latest version, today I found that there is no more "switch" menu for pv,brutto,battery,ampere,... in the hours/day log,
before this was onky in portrait view mode on my
Motorola G 2.gen

Cheers
Andy

Hi Andy,
I'm down in the US for a couple of weeks, I'll take a look at the code when get back home.
I've had some issues with the layout, I fix it on a tablet and it breaks on a smaller phone

Graham.
Title: Re: Android app for the Classic
Post by: binkino on August 08, 2016, 04:09:12 PM
Hi Graham, ok no problem ;)
Title: Re: Android app for the Classic
Post by: BobWhite on August 25, 2016, 05:40:50 PM
Graham, that's a great app! not having great success with it at the moment but will keep working with it.
Walt
Title: Re: Android app for the Classic
Post by: Graham on August 25, 2016, 06:49:42 PM
Quote from: BobWhite on August 25, 2016, 05:40:50 PM
Graham, that's a great app! not having great success with it at the moment but will keep working with it.
Walt

Did it stop working or is this the first time you're using it?
Title: Re: Android app for the Classic
Post by: BobWhite on August 25, 2016, 07:58:34 PM


Did it stop working or is this the first time you're using it?
[/quote]

It is the first time using it but it also stopped working, shut down the Android and reboot it would sometimes work other times it would see the classic but not connect.

maybe i should say the classic's displayed in the list but not connect, just switch displays.
Title: Re: Android app for the Classic
Post by: Graham on August 25, 2016, 08:44:39 PM
Quote from: BobWhite on August 25, 2016, 07:58:34 PM

It is the first time using it but it also stopped working, shut down the Android and reboot it would sometimes work other times it would see the classic but not connect.

maybe i should say the classic's displayed in the list but not connect, just switch displays.

When the app connects to a classic for the first time it attempts to download all the log data for the calendar and charts, subsequent connects will only download the logs since the last connect date.
Sounds like it may be having problems with that initial download .

Try turning off system view in the settings (assuming you have more than one classic on your network), so the app will only connect to the selected classic.
Slide any existing entries in the nav bar to the right to erase them, restart the app then let it auto detect the classics on your network.

If it doesn't auto detect you might need to reboot your classics to get them to broadcast their presence on the network ( do this in the morning so you don't lose the energy log for the day)

Once it detects your classic, open one and wait a couple of minutes to allow the logs to download
Repeat for each...

Title: Re: Android app for the Classic
Post by: BobWhite on August 25, 2016, 08:53:16 PM
Thank you Graham, I will see what happens tonight but will wait till the am before rebooting the classics. Yes I have three that are auto detected but will get back as to if they cooperate tonight  :)

system view is already off

System 1 Hooked right up no problem.

System 2 and 3 took along time but there also 80 feet away in another building. started out with a short menu bar so i can see I need to wait a bit longer as it all did eventually come up.

Thank you Graham!

Walt
Title: Temperatures request
Post by: ClassicCrazy on January 15, 2017, 07:06:23 PM
Graham
Next time you are tinkering around with your app I have a request if it isn't something too difficult to do .
It would be nice to see the temperature compensated value for charging volts . It probably does not change much for anyone with constant battery  temperature , but for those like me with batteries in cold place it is nice to know.
For example now my batteries are -7 C  Absorb is 28.8 v   and the temperature compensated Absorb temp is 29.9 v

I can see this value on the Local Status App but I have to go to the Config / Advanced / scroll down  and it is showing in Temperature Compensation settings window. On the MNGP you have to go to Main Menu /Battery Menu/ T-Comp/ View / and it shows as Temperature Compensation Setpoint

Be nice to see it without so much button pushing ! I think the same field will show for float or equalize - it shows temp compensated value for the charge state it is presently in .

Thanks,
Larry
Title: Re: Temperatures request
Post by: Graham on January 15, 2017, 08:24:22 PM
Quote from: ClassicCrazy on January 15, 2017, 07:06:23 PM
Graham
Next time you are tinkering around with your app I have a request if it isn't something too difficult to do .
It would be nice to see the temperature compensated value for charging volts . It probably does not change much for anyone with constant battery  temperature , but for those like me with batteries in cold place it is nice to know.
For example now my batteries are -7 C  Absorb is 28.8 v   and the temperature compensated Absorb temp is 29.9 v

I can see this value on the Local Status App but I have to go to the Config / Advanced / scroll down  and it is showing in Temperature Compensation settings window. On the MNGP you have to go to Main Menu /Battery Menu/ T-Comp/ View / and it shows as Temperature Compensation Setpoint

Be nice to see it without so much button pushing ! I think the same field will show for float or equalize - it shows temp compensated value for the charge state it is presently in .

Thanks,
Larry


The modbus spec specifies address 4244 as VbattRegSetPTmpComp, not sure if this value varies with the charge state.
If that the correct address, it would be easy to add it to the info tab next to nominal voltage.

Graham.
Title: Re: Temperatures request
Post by: ClassicCrazy on January 15, 2017, 09:13:34 PM
Quote from: Graham on January 15, 2017, 08:24:22 PM
Quote from: ClassicCrazy on January 15, 2017, 07:06:23 PM
Graham
Next time you are tinkering around with your app I have a request if it isn't something too difficult to do .
It would be nice to see the temperature compensated value for charging volts . It probably does not change much for anyone with constant battery  temperature , but for those like me with batteries in cold place it is nice to know.
For example now my batteries are -7 C  Absorb is 28.8 v   and the temperature compensated Absorb temp is 29.9 v

I can see this value on the Local Status App but I have to go to the Config / Advanced / scroll down  and it is showing in Temperature Compensation settings window. On the MNGP you have to go to Main Menu /Battery Menu/ T-Comp/ View / and it shows as Temperature Compensation Setpoint

Be nice to see it without so much button pushing ! I think the same field will show for float or equalize - it shows temp compensated value for the charge state it is presently in .

Thanks,
Larry


The modbus spec specifies address 4244 as VbattRegSetPTmpComp, not sure if this value varies with the charge state.
If that the correct address, it would be easy to add it to the info tab next to nominal voltage.

Graham.

That would be great . The first controller I had was Morningstar MPPT and the built in web page always had that temp compensated voltage listed as Target Voltage or something like that. I found it very helpful to see next to the other voltages.
Larry
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 19, 2017, 12:31:11 PM
Graham - was thinking about the charging a bit more.

This would be the ideal charge status page

Charge state
Battery voltage
Temperature compensated voltage
System amps
Absorb Timer ( modbus 4139 Absorb Time Up/Down Counter Goes to Float when it reaches 0)
Float time

Something like that  - it would be a one glance page where you could know exactly what is going on with charging.
The two things that your app does not have are the Temperature Compensated Voltage and the Absorb Timer
Both these take a lot of button pushing to find on the MNGP and Local Status App but seem to be really important details to know what the Classic is doing .

Is it possible to log the system amps when it switches over from Absorb to Float ?  This seems to be the number one question on the forums for people with new systems who are trying to figure out what Ending Amps should be. Ideally you  would be able to watch a detailed graph where the system amps levels off as the SOC counts up towards 100. Of course SOC is only as good as you set it up with battery AH and battery efficiency but it is a good ballpark figure to watch.

Thanks for your effort - your app is the best display of them all. I tend to use the Local Status App more sometimes just because I am at the computer. Too bad there isn't a way to run Android Apps on Windows - or is there ?

Larry




Title: Re: Android app for the Classic
Post by: Graham on January 19, 2017, 01:02:10 PM
Quote from: ClassicCrazy on January 19, 2017, 12:31:11 PM
Graham - was thinking about the charging a bit more.

This would be the ideal charge status page

Charge state
Battery voltage
Temperature compensated voltage
System amps
Absorb Timer ( modbus 4139 Absorb Time Up/Down Counter Goes to Float when it reaches 0)
Float time

Something like that  - it would be a one glance page where you could know exactly what is going on with charging.
The two things that your app does not have are the Temperature Compensated Voltage and the Absorb Timer
Both these take a lot of button pushing to find on the MNGP and Local Status App but seem to be really important details to know what the Classic is doing .

Is it possible to log the system amps when it switches over from Absorb to Float ?  This seems to be the number one question on the forums for people with new systems who are trying to figure out what Ending Amps should be. Ideally you  would be able to watch a detailed graph where the system amps levels off as the SOC counts up towards 100. Of course SOC is only as good as you set it up with battery AH and battery efficiency but it is a good ballpark figure to watch.

Thanks for your effort - your app is the best display of them all. I tend to use the Local Status App more sometimes just because I am at the computer. Too bad there isn't a way to run Android Apps on Windows - or is there ?


Larry

I put a test version of the app in my dropbox page, it has the VbattRegSetPTmpComp (modbus 4244 ) displayed in the Info tab.
https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0 (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0)

I'm not sure if this value changes with charge state or if it's simply a setpoint * tComp

The graph does display the state of charge (line at the bottom), it turns blue at float

The difficult part for any new page is how it would be laid out (what value is in a dial versus field etc) that will fit on all display resolutions and densities in all the supported languages
https://developer.android.com/guide/practices/screens_support.html (https://developer.android.com/guide/practices/screens_support.html)


Graham
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 19, 2017, 01:17:04 PM
Just installed the new app - and yes I see the Temp compensated voltage on the info page.

I would be happy with text info just like on that page. Is it possible to do that kind of display easily for the app ?
Thanks for trying this out .

Larry

Title: Re: Android app for the Classic
Post by: Graham on January 19, 2017, 01:23:06 PM
Quote from: ClassicCrazy on January 19, 2017, 01:17:04 PM
Just installed the new app - and yes I see the Temp compensated voltage on the info page.

I would be happy with text info just like on that page. Is it possible to do that kind of display easily for the app ?
Thanks for trying this out .

Larry

I'll have to check the code to see if the info page refreshes like the other pages with gauges, otherwise it would have to go on a new tab
Title: Re: Android app for the Classic
Post by: Westbranch on January 19, 2017, 01:26:34 PM
Graham, Larry, I just lost a post while trying to cross post I guess, too long to repeat, gist of it is

I normally use the LP page and watch the V, Classic Amps and WBjr Amps so

'can the 3 Values and time stamp at the transition points Bulk to absorb to Float be shown on the LIVE PLOT page?'

trying to hover the cursor over a point does not always work ...

Also the WBjr Amps and Battery Temp would be good for the summary page

cheers

Title: Re: Android app for the Classic
Post by: Graham on January 19, 2017, 01:43:17 PM
Quote from: Westbranch on January 19, 2017, 01:26:34 PM
Graham, Larry, I just lost a post while trying to cross post I guess, too long to repeat, gist of it is

I normally use the LP page and watch the V, Classic Amps and WBjr Amps so

'can the 3 Values and time stamp at the transition points Bulk to absorb to Float be shown on the LIVE PLOT page?'

trying to hover the cursor over a point does not always work ...

Also the WBjr Amps and Battery Temp would be good for the summary page

cheers

I'm sure it's possible but I used an open source chart component, I'll have to see how difficult it would be to modify that code
https://github.com/PhilJay/MPAndroidChart (https://github.com/PhilJay/MPAndroidChart)

adding the charge state bar was easy enough, but I would have to figure out how to float values over the chart
Title: Re: Android app for the Classic
Post by: Westbranch on January 19, 2017, 01:53:22 PM
thanks Graham, will wait and see.
Title: Re: Android app for the Classic
Post by: Graham on January 20, 2017, 10:35:17 AM
Quote from: ClassicCrazy on January 19, 2017, 12:31:11 PM
...
Thanks for your effort - your app is the best display of them all. I tend to use the Local Status App more sometimes just because I am at the computer. Too bad there isn't a way to run Android Apps on Windows - or is there ?

Larry

You can install http://www.bluestacks.com/ (http://www.bluestacks.com/) that will allow you to run an android app in windows but I think someone mentioned that bluestacks was holding onto the connection to the classic after you close the android app.

Graham.
Title: Re: Android app for the Classic
Post by: Resthome on January 20, 2017, 03:56:14 PM
Quote from: Graham on January 20, 2017, 10:35:17 AM
Quote from: ClassicCrazy on January 19, 2017, 12:31:11 PM
...
Thanks for your effort - your app is the best display of them all. I tend to use the Local Status App more sometimes just because I am at the computer. Too bad there isn't a way to run Android Apps on Windows - or is there ?

Larry

You can install http://www.bluestacks.com/ (http://www.bluestacks.com/) that will allow you to run an android app in windows but I think someone mentioned that bluestacks was holding onto the connection to the classic after you close the android app.

Graham.

Yeah, I use BlueStacks with Graham's App on my laptop at the lake. At one time it was holding on to the network connect. Not sure if that is still the case. If it does just got to Task Manger and kill the BlueStacks network process that is running.

Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 20, 2017, 08:28:33 PM
I will give bluestacks a try John -- hadn't heard of it before ( or paid attention if I had !)

Also I went back to Grahams standard playstore app - the test one with the temp comp didn't seem to work right for some of the screens. I know it was just a test app - the temp comp reading did work okay though. I was going to test it today by removing the temp sensor from the battery and warming that up to see if the temp comp voltage changed , but the temp sensor was stuck on pretty tight so didn't want to tear it off.

Larry
Title: Re: Android app for the Classic
Post by: Westbranch on January 20, 2017, 11:07:39 PM
HELP..... ok I updated with the new version and then decided to go back and look at the old version, would not load from my Dropbox history....  tried to get the 2.4.6 version next,  no go.... don't know how to get it back .... any one ??
Title: Re: Android app for the Classic
Post by: Resthome on January 21, 2017, 12:07:06 AM
Quote from: Westbranch on January 20, 2017, 11:07:39 PM
HELP..... ok I updated with the new version and then decided to go back and look at the old version, would not load from my Dropbox history....  tried to get the 2.4.6 version next,  no go.... don't know how to get it back .... any one ??

Click on the link in Graham signature to Google
Title: Re: Android app for the Classic
Post by: mike90045 on January 21, 2017, 01:21:40 AM
First time user of Graham's app.  Nice monitor app, but it's listen only.   I like the whole month calendar view.

But I wish it would hold the last data rec'd and not blank it out.  Maybe change the background to yellow/black stripes when the data is stale. 
I have my battery shed 900' from house, and it would be nice to have the data linger on the app  till I dismiss it.

Thanks Graham
Title: Re: Android app for the Classic
Post by: Resthome on January 21, 2017, 01:33:46 AM
Quote from: mike90045 on January 21, 2017, 01:21:40 AM
First time user of Graham's app.  Nice monitor app, but it's listen only.   I like the whole month calendar view.

But I wish it would hold the last data rec'd and not blank it out.  Maybe change the background to yellow/black stripes when the data is stale. 
I have my battery shed 900' from house, and it would be nice to have the data linger on the app  till I dismiss it.

Thanks Graham

You can set it to export the data to PVOUTPUT. I've done that but don't have an internet connection. Its suppose to keep it and upload the next time you get an internet connection. But have had a problem with that on BlueStack.
Title: Re: Android app for the Classic
Post by: Graham on January 21, 2017, 08:09:23 AM
Quote from: Westbranch on January 20, 2017, 11:07:39 PM
HELP..... ok I updated with the new version and then decided to go back and look at the old version, would not load from my Dropbox history....  tried to get the 2.4.6 version next,  no go.... don't know how to get it back .... any one ??

Make sure you fully uninstall the test app before installing the one from the play store, android might not let you install version 2.4.7 if you already have version 2.5.

https://play.google.com/store/apps/details?id=ca.farrelltonsolar.classic (https://play.google.com/store/apps/details?id=ca.farrelltonsolar.classic)


Graham.
Title: Re: Android app for the Classic
Post by: Graham on January 21, 2017, 08:23:02 AM
Quote from: ClassicCrazy on January 20, 2017, 08:28:33 PM
I will give bluestacks a try John -- hadn't heard of it before ( or paid attention if I had !)

Also I went back to Grahams standard playstore app - the test one with the temp comp didn't seem to work right for some of the screens. I know it was just a test app - the temp comp reading did work okay though. I was going to test it today by removing the temp sensor from the battery and warming that up to see if the temp comp voltage changed , but the temp sensor was stuck on pretty tight so didn't want to tear it off.

Larry

Did I break something  ??? I guess I better not publish it to google play
What wasn't working?


Graham.
Title: Re: Android app for the Classic
Post by: Graham on January 21, 2017, 08:33:02 AM
Quote from: mike90045 on January 21, 2017, 01:21:40 AM
First time user of Graham's app.  Nice monitor app, but it's listen only.   I like the whole month calendar view.

But I wish it would hold the last data rec'd and not blank it out.  Maybe change the background to yellow/black stripes when the data is stale. 
I have my battery shed 900' from house, and it would be nice to have the data linger on the app  till I dismiss it.

Thanks Graham

I've had to add a fair amount of code to handle disconnects/tcp faults from the classic, especially with older firmware versions, you might end up with the background flashing stripes.
you could just take a snapshot of any screen using the share icon in the app.


Graham.
Title: Re: Android app for the Classic
Post by: Westbranch on January 21, 2017, 12:14:08 PM
thanks guys, I went to Grahams link > PLay Store and did another uninstall before loading 2.4.7...

MUCH faster than the older version I had..

Graham, which older version still starts with the Amps/Watts leaving the battery ( Consumption IIRC) and an image of a battery  showing the SOC?   I like seeing that first thing in the AM.

thanks,
ej
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 21, 2017, 01:24:38 PM
Quote from: Graham on January 21, 2017, 08:23:02 AM
Quote from: ClassicCrazy on January 20, 2017, 08:28:33 PM
I will give bluestacks a try John -- hadn't heard of it before ( or paid attention if I had !)

Also I went back to Grahams standard playstore app - the test one with the temp comp didn't seem to work right for some of the screens. I know it was just a test app - the temp comp reading did work okay though. I was going to test it today by removing the temp sensor from the battery and warming that up to see if the temp comp voltage changed , but the temp sensor was stuck on pretty tight so didn't want to tear it off.

Larry

Did I break something  ??? I guess I better not publish it to google play
What wasn't working?

Graham.

Graham - it seemed like the tabs on the top were not syncing with the display on the bottom screens . And for some reason I lost SOC screen - though that was gone for awhile when I went back to the old version and then it came back - guess it takes awhile to know the Whizbang is present ?

Larry
Title: Re: Android app for the Classic
Post by: Westbranch on January 21, 2017, 02:48:42 PM
Graham, I just downloaded the latest version and started with a remove and install followed smoothly...  BUT I have not looked at the Classic other than to confirm that the WBjr is blinking, and it is,  when I got there I started the old version and I had the SoC screen and now it is not recognizing there is a WBjr....???

I went down to the classic and double checked the IP address , came back up checked with the MN Local App, shut down ... then opened  your APP and the SoC screen is back....????

Any ideas?
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 21, 2017, 03:59:11 PM
Quote from: Westbranch on January 21, 2017, 02:48:42 PM
Graham, I just downloaded the latest version and started with a remove and install followed smoothly...  BUT I have not looked at the Classic other than to confirm that the WBjr is blinking, and it is,  when I got there I started the old version and I had the SoC screen and now it is not recognizing there is a WBjr....???

I went down to the classic and double checked the IP address , came back up checked with the MN Local App, shut down ... then opened  your APP and the SoC screen is back....????

Any ideas?
The SOC took awhile to show up on mine too but once it came has been stable. I am thinking it takes awhile for the capacity readings to download  - and those are what the SOC screen needs to know the WBjr is present.
Larry
Title: Re: Android app for the Classic
Post by: Graham on January 21, 2017, 04:27:46 PM
Quote from: Westbranch on January 21, 2017, 02:48:42 PM
Graham, I just downloaded the latest version and started with a remove and install followed smoothly...  BUT I have not looked at the Classic other than to confirm that the WBjr is blinking, and it is,  when I got there I started the old version and I had the SoC screen and now it is not recognizing there is a WBjr....???

I went down to the classic and double checked the IP address , came back up checked with the MN Local App, shut down ... then opened  your APP and the SoC screen is back....????

Any ideas?

Is it possible your whizbang current is at 0.0?
The code determines if the whizbangJr is installed if the value at 4371 is not 0.0 at startup, I'll admit that's a bit of a hack, maybe I should be using some other field...


Graham.
Title: Re: Android app for the Classic
Post by: Graham on January 21, 2017, 04:52:35 PM
Quote from: Westbranch on January 21, 2017, 12:14:08 PM
thanks guys, I went to Grahams link > PLay Store and did another uninstall before loading 2.4.7...

MUCH faster than the older version I had..

Graham, which older version still starts with the Amps/Watts leaving the battery ( Consumption IIRC) and an image of a battery  showing the SOC?   I like seeing that first thing in the AM.

thanks,
ej

I've had a few request to put the order back the way it was
so let's have a vote on the tab ordering, the only constraint I have is that the Calendar and live chart can't be next to each other since they each use a lot of memory.

Currently I have the following;

One or more classics without a WhizbangJr, the tabs are:

Power | Energy | Live Chart | Temperature | Day Log Chart | Hour Log Chart | Calendar | Info | Messages | About

A single classic with a WhizbangJr, the tabs are:

State Of Charge | Consumption | Power | Energy | Capacity | Live Chart | Temperature | Day Log Chart | Hour Log Chart | Calendar | Info | Messages | About

More than one classic with a WhizbangJr  with System view enabled, the tabs are:

State Of Charge | System | Power | Energy | Capacity | Live Chart | Temperature | Day Log Chart | Hour Log Chart | Calendar | Info | Messages | About

A Morningstar Tri-Star MPPT, the tabs are:

Power | Energy | Live Chart | Temperature | About


let me know how you would like to see as the tab order

Graham.
Title: Re: Android app for the Classic
Post by: Graham on January 21, 2017, 04:59:25 PM
Quote from: ClassicCrazy on January 19, 2017, 12:31:11 PM
Graham - was thinking about the charging a bit more.

This would be the ideal charge status page

Charge state
Battery voltage
Temperature compensated voltage
System amps
Absorb Timer ( modbus 4139 Absorb Time Up/Down Counter Goes to Float when it reaches 0)
Float time

...

Larry

I posted another test version in dropbox that has this data in the Messages tab, let me know what you think.

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


Graham.
Title: Re: Android app for the Classic
Post by: mike90045 on January 21, 2017, 05:35:55 PM
Wait ?
Does one app do BOTH Classic and MorningstarTS ?
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 21, 2017, 05:40:49 PM
Quote from: Graham on January 21, 2017, 04:59:25 PM
Quote from: ClassicCrazy on January 19, 2017, 12:31:11 PM
Graham - was thinking about the charging a bit more.

This would be the ideal charge status page

Charge state
Battery voltage
Temperature compensated voltage
System amps
Absorb Timer ( modbus 4139 Absorb Time Up/Down Counter Goes to Float when it reaches 0)
Float time

...

Larry

I posted another test version in dropbox that has this data in the Messages tab, let me know what you think.

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


Graham.

I have this new test version loaded up and I see in the Messages tab
Target Battery Voltage  and the current voltage
Battery current ( System amps)
Float time
Absorb time

They all seem to be live - at least I can see the current and voltages change
So looks good ! 
Only thing I could see different is the Absorb and Float time converted from seconds to minutes or hours and minutes ? But I don't mind pulling out the calculator if I need to. The thing is I find this page very useful - at a glance can see exactly what the Classic is doing .

As far as the order of the tabs, - this way it is in the test version is fine for me - I guess it doesn't matter to me - I don't mind scrolling to which ever window I need.
The SOC screen came right up this time.
Thanks again for you development and trying out all these new things.
I loaded this on the tablet - I have not figured out how to get an apk file onto Bluestacks other than from the playstore. I guess I could load dropbox app on bluestacks and then download it on that way .
Larry
Title: Re: Android app for the Classic
Post by: Graham on January 21, 2017, 05:57:32 PM
Quote from: ClassicCrazy on January 21, 2017, 05:40:49 PM
...
I loaded this on the tablet - I have not figured out how to get an apk file onto Bluestacks other than from the playstore. I guess I could load dropbox app on bluestacks and then download it on that way .
Larry

Try dragging the apk file from Windows explorer to BlueStacks

Graham.
Title: Re: Android app for the Classic
Post by: Graham on January 21, 2017, 06:01:15 PM
Quote from: mike90045 on January 21, 2017, 05:35:55 PM
Wait ?
Does one app do BOTH Classic and MorningstarTS ?

Should still work
I no longer have my TriStar for testing but I haven't had any complaints



Graham
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 21, 2017, 06:30:20 PM
Quote from: Graham on January 21, 2017, 05:57:32 PM
Quote from: ClassicCrazy on January 21, 2017, 05:40:49 PM
...
I loaded this on the tablet - I have not figured out how to get an apk file onto Bluestacks other than from the playstore. I guess I could load dropbox app on bluestacks and then download it on that way .
Larry

Try dragging the apk file from Windows explorer to BlueStacks
Graham.

Yeah that worked - just dragged it in and apk  installed and updated the old one.
And now I also see a whole row of options on side of bluestack screen to load apks or transfer over windows files. That goes invisible on full screen so that is why I didn't see it before .

Anyway test version running fine on Bluestacks.
here is screen capture of new tab

Larry
(//)
Title: Re: Android app for the Classic
Post by: Westbranch on January 21, 2017, 06:35:53 PM
Hi Graham, The sun just went down and I came in to check the SoC ,pg 1 with the battery, at first it was not there, after watching it on and off 4 hrs,  then I went back to LIVE and scrolled my way to SoC (back again) and see 0%??  screen saver came on and I swiped the screen and now the SoC 95% is there again....

I don't know but something seems a bit unstable, or is it because I now have +2A incoming to the battery? Nope, now  I see -2.6A...??? Gremlins in the code.. >:(
Title: Re: Android app for the Classic
Post by: Graham on January 22, 2017, 11:06:39 AM
Quote from: Westbranch on January 21, 2017, 06:35:53 PM
Hi Graham, The sun just went down and I came in to check the SoC ,pg 1 with the battery, at first it was not there, after watching it on and off 4 hrs,  then I went back to LIVE and scrolled my way to SoC (back again) and see 0%??  screen saver came on and I swiped the screen and now the SoC 95% is there again....

I don't know but something seems a bit unstable, or is it because I now have +2A incoming to the battery? Nope, now  I see -2.6A...??? Gremlins in the code.. >:(

posted another update of the test version to dropbox, let me know if it's any better.
When the app starts for the first time it has to load all the logs from the classic, after that it only loads the latest log entry
it might be busy for a minute or so for the initial run.
Make sure you uninstall before since I didn't change the version # from the last test build

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


Graham.
Title: Re: Android app for the Classic
Post by: Westbranch on January 22, 2017, 01:48:20 PM
Morning Graham, well I had a bit of  a go so far..  uninstalled last version from yesterday, used the facility via you URL ay end if sig line, then to your link to latest version and installed it direct as well as pasting into my DROPBOX...  fire it up and Avast does not like it as it did not come from Play store... tell it to IGNORE etc. and it did not recognize/find Classic. Shut off TAB and reboot ....??? no app in the list, repeat as above.... now have App loaded and running but again \no so\c page, starts at Power page..??

Oh ya, when I saw it was not finding the Classic I went down and 'committed' the static  IP addr. again...

Question, if it needs to know WBJr is present to show SoC, why does it show WBjr Amps data on LIVE CHART?

maybe it will find itself in the wilderness..
cheers

ADD:well it finally found itself about 1 hr later..??
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 22, 2017, 02:27:32 PM
I just uninstalled Bluestacks - it worked until today it wouldn't play the app unless I either paid some $ or loaded up some game or other app. I didn't want to do that - only want to run the Classic Monitor app !

So I searched around and there a bunch of Windows android emulators .  People want them to do all kinds of complicated gaming stuff. I am just happy to run this simple app ! I finally settled on Memu because of good reviews and XDA has topic on it too.
http://www.memuplay.com/
I installed base version then updated that to their Kitkat update.
Runs Classic Monitor app  fine - will see how it goes over time.

test version has been running fine but I noticed the Consumption Tab is missing .

Larry
Title: Re: Android app for the Classic
Post by: Resthome on January 22, 2017, 04:09:31 PM
Quote from: ClassicCrazy on January 22, 2017, 02:27:32 PM
I just uninstalled Bluestacks - it worked until today it wouldn't play the app unless I either paid some $ or loaded up some game or other app. I didn't want to do that - only want to run the Classic Monitor app !

So I searched around and there a bunch of Windows android emulators .  People want them to do all kinds of complicated gaming stuff. I am just happy to run this simple app ! I finally settled on Memu because of good reviews and XDA has topic on it too.
http://www.memuplay.com/
I installed base version then updated that to their Kitkat update.
Runs Classic Monitor app  fine - will see how it goes over time.

test version has been running fine but I noticed the Consumption Tab is missing .

Larry

Yeah BlueStacks does that. I just tell it to go ahead and then delete them all. Most of the time it never puts anything on. Let me know how Memu works out.
Title: Re: Android app for the Classic
Post by: Graham on January 22, 2017, 04:51:14 PM
Quote from: Westbranch on January 22, 2017, 01:48:20 PM
Morning Graham, well I had a bit of  a go so far..  uninstalled last version from yesterday, used the facility via you URL ay end if sig line, then to your link to latest version and installed it direct as well as pasting into my DROPBOX...  fire it up and Avast does not like it as it did not come from Play store... tell it to IGNORE etc. and it did not recognize/find Classic. Shut off TAB and reboot ....??? no app in the list, repeat as above.... now have App loaded and running but again \no so\c page, starts at Power page..??

Oh ya, when I saw it was not finding the Classic I went down and 'committed' the static  IP addr. again...

Question, if it needs to know WBJr is present to show SoC, why does it show WBjr Amps data on LIVE CHART?

maybe it will find itself in the wilderness..
cheers

ADD:well it finally found itself about 1 hr later..??

You might have to Allow app installs from 'unknown sources' http://www.androidcentral.com/allow-app-installs-unknown-sources (http://www.androidcentral.com/allow-app-installs-unknown-sources)
this will allow install outside of the playstore like dropbox etc.

Without the whisbangjr, you should not get the SOC | Consumption or System | Capacity + the wbjr Amp line in the chart,
the SOC is now the second tab after power.
I must have a bug in the tab component, someone else was saying the the tab names did not match the content, got back to normal after a restart.


Graham.
Title: Re: Android app for the Classic
Post by: mike90045 on January 22, 2017, 04:52:13 PM
Quote from: Graham on January 21, 2017, 08:33:02 AM
.....you could just take a snapshot of any screen using the share icon in the app.

argh, it just wants to send it offboard somewhere, won't give me any choice to store locally.  I have limited internet on the ranch, and it'd be useful to save it simply as a photo, and not send it to hangouts, drive, messanger, ,,,,,,,
Title: Re: Android app for the Classic
Post by: Westbranch on January 22, 2017, 04:59:00 PM
Mike I used the MEMO  ;) option so it is stored onboard. :D.  just have to figure out howto move it to sn email or ??

hth
Title: Re: Android app for the Classic
Post by: Graham on January 22, 2017, 05:23:24 PM
Quote from: mike90045 on January 22, 2017, 04:52:13 PM
Quote from: Graham on January 21, 2017, 08:33:02 AM
.....you could just take a snapshot of any screen using the share icon in the app.

argh, it just wants to send it offboard somewhere, won't give me any choice to store locally.  I have limited internet on the ranch, and it'd be useful to save it simply as a photo, and not send it to hangouts, drive, messanger, ,,,,,,,

Yea, I have no control over what goes in the share menu, I just ask the O/S to capture the screen.
you might have to have the memo app installed for it to show up in the list


Graham.
Title: Re: Android app for the Classic
Post by: mike90045 on January 22, 2017, 05:37:15 PM
I've got 2 photo programs and a photo editor, which don't show up in the list, I have about 15 cloud based apps (all preloaded in firmware) that want me to UL the screenshot.     Stupid phones !  I have about 3 memo programs that don't show up either.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 22, 2017, 06:48:00 PM
Quote from: mike90045 on January 22, 2017, 05:37:15 PM
I've got 2 photo programs and a photo editor, which don't show up in the list, I have about 15 cloud based apps (all preloaded in firmware) that want me to UL the screenshot.     Stupid phones !  I have about 3 memo programs that don't show up either.

That is why I rooted my phone and put a different ROM on it - then I can get rid of or add whichever apps I want.
Not sure what kind of phone you have - you may be able to root it easily , then install Titanium Backup and you can delete the unwanted apps. There may be other apps that will do that without root - some just freeze the apps so they won't show up or run.

Larry
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 22, 2017, 06:55:47 PM
Quote from: Graham on January 22, 2017, 04:51:14 PM
Quote from: Westbranch on January 22, 2017, 01:48:20 PM
Morning Graham, well I had a bit of  a go so far..  uninstalled last version from yesterday, used the facility via you URL ay end if sig line, then to your link to latest version and installed it direct as well as pasting into my DROPBOX...  fire it up and Avast does not like it as it did not come from Play store... tell it to IGNORE etc. and it did not recognize/find Classic. Shut off TAB and reboot ....??? no app in the list, repeat as above.... now have App loaded and running but again \no so\c page, starts at Power page..??

Oh ya, when I saw it was not finding the Classic I went down and 'committed' the static  IP addr. again...

Question, if it needs to know WBJr is present to show SoC, why does it show WBjr Amps data on LIVE CHART?

maybe it will find itself in the wilderness..
cheers

ADD:well it finally found itself about 1 hr later..??

You might have to Allow app installs from 'unknown sources' http://www.androidcentral.com/allow-app-installs-unknown-sources (http://www.androidcentral.com/allow-app-installs-unknown-sources)
this will allow install outside of the playstore like dropbox etc.

Without the whisbangjr, you should not get the SOC | Consumption or System | Capacity + the wbjr Amp line in the chart,
the SOC is now the second tab after power.
I must have a bug in the tab component, someone else was saying the the tab names did not match the content, got back to normal after a restart.


Graham.
Graham
The SOC was showing in the 2.5.0  test app before but not the Consumption or  Capacity
But now after restarting it  the SOC, Consumption, Capacity are all back along with all the other screens
Guess it just takes awhile for it to work. So all good now .
Larry
Title: Re: Android app for the Classic
Post by: Westbranch on January 22, 2017, 07:19:25 PM
Mike I am using Samsung TAB4... if it helps and the memo was on-board and after I save the screen capt. I can then choose to 'cloud it' or not, in my Samsung Account. Nyet!
Title: Re: Android app for the Classic
Post by: mike90045 on January 22, 2017, 09:34:54 PM
Verizon droid turbo, year old.   Have another year before I can root it.  sucks.
Title: Re: Android app for the Classic
Post by: mike90045 on January 29, 2017, 12:09:34 PM
Quote from: Graham on January 21, 2017, 06:01:15 PM
Quote from: mike90045 on January 21, 2017, 05:35:55 PM
Wait ?
Does one app do BOTH Classic and MorningstarTS ?
Should still work
I no longer have my TriStar for testing but I haven't had any complaints
Graham

Well, I spent yesterday trying to get classic monitor v2.4.7 to see the morningstar tsmppt-60.  I put it's ip address in, port 80 but it was never connected to.  Should I be using it's modbus address or what are the steps ?
Title: Re: Android app for the Classic
Post by: Graham on January 29, 2017, 12:28:14 PM
Quote from: mike90045 on January 29, 2017, 12:09:34 PM
Quote from: Graham on January 21, 2017, 06:01:15 PM
Quote from: mike90045 on January 21, 2017, 05:35:55 PM
Wait ?
Does one app do BOTH Classic and MorningstarTS ?
Should still work
I no longer have my TriStar for testing but I haven't had any complaints
Graham

Well, I spent yesterday trying to get classic monitor v2.4.7 to see the morningstar tsmppt-60.  I put it's ip address in, port 80 but it was never connected to.  Should I be using it's modbus address or what are the steps ?

yes, the default modbus port is 502
try that and the IP address of your tri-star,
once it connects, restart the app to load the correct tabs.

Title: Re: Android app for the Classic
Post by: mike90045 on January 29, 2017, 03:52:56 PM
for the Morningstar

I tried to add the morningstar, but it never recognized it,
after clicking the +
2 lines appear in the window, top line has 502 in it
I pasted ip address
192.168.0.101
or http://192.168.0.101
or  http://192.168.0.101:502
and none seemed to connect, always had yellow triangle with ! in it.  Obviously I'm doing something wrong.

(note - these addresses are all on a non-internet connected network, internet is half mile away. Someone with a pringles cantenna might see it, but it's all RE gear, and w/o the ser # should not be able to harm anything)
Title: Re: Android app for the Classic
Post by: Graham on January 29, 2017, 04:05:29 PM
Quote from: mike90045 on January 29, 2017, 03:52:56 PM
for the Morningstar

I tried to add the morningstar, but it never recognized it,
after clicking the +
2 lines appear in the window, top line has 502 in it
I pasted ip address
192.168.0.101
or http://192.168.0.101
or  http://192.168.0.101:502
and none seemed to connect, always had yellow triangle with ! in it.  Obviously I'm doing something wrong.

(note - these addresses are all on a non-internet connected network, internet is half mile away. Someone with a pringles cantenna might see it, but it's all RE gear, and w/o the ser # should not be able to harm anything)

It should be just 192.168.0.101 and 502 for the port
Both your android device and the TriStar need to be on the same local network.
You could try to ping your controller with a ping program, just search ping in Google play
Title: Re: Android app for the Classic
Post by: Graham on January 29, 2017, 06:59:09 PM
Quote from: Graham on January 29, 2017, 04:05:29 PM
Quote from: mike90045 on January 29, 2017, 03:52:56 PM
for the Morningstar

I tried to add the morningstar, but it never recognized it,
after clicking the +
2 lines appear in the window, top line has 502 in it
I pasted ip address
192.168.0.101
or http://192.168.0.101
or  http://192.168.0.101:502
and none seemed to connect, always had yellow triangle with ! in it.  Obviously I'm doing something wrong.

(note - these addresses are all on a non-internet connected network, internet is half mile away. Someone with a pringles cantenna might see it, but it's all RE gear, and w/o the ser # should not be able to harm anything)

It should be just 192.168.0.101 and 502 for the port
Both your android device and the TriStar need to be on the same local network.
You could try to ping your controller with a ping program, just search ping in Google play

If I recall, the morningstar has a status page that can be accessed from a browser, using chrome on your device, you could try to open http://192.168.0.101, that would confirm your device can talk to your morningstar, if that works and the app doesn't then morningstar must have changed something, check to see if there is a security setting on the status page to allow modbus (port 502).

I was able to connect to my modbus simulator with data I had recorded from a tri-star without any issue.

Graham.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 29, 2017, 11:06:38 PM
I don't have my Morningstar any longer but I used to connect to the built in webpage at  http://tsmppt09440039 - the numbers are the serial number of the controller .

Larry
Title: Re: Android app for the Classic
Post by: mike90045 on January 30, 2017, 02:54:59 AM
Yes, I can access the web server with chrome on the android
When I enter the manual config in the app,
do I leave the 502 alone on the first line, and then enter only the IP address on the 2nd line
or include the http:// in front of the IP address. or append :502 to the IP address ?


Title: Re: Android app for the Classic
Post by: Graham on January 30, 2017, 06:57:18 AM
Quote from: mike90045 on January 30, 2017, 02:54:59 AM
Yes, I can access the web server with chrome on the android
When I enter the manual config in the app,
do I leave the 502 alone on the first line, and then enter only the IP address on the 2nd line
or include the http:// in front of the IP address. or append :502 to the IP address ?

Yes leave the 502 in the top line and only the 192.168 1.253 in the second line. The app uses the modbus protocol not the HTTP protocol.
Title: Re: Android app for the Classic
Post by: mike90045 on January 30, 2017, 05:05:38 PM
QuoteYes leave the 502 in the top line and only the 192.168 1.253 in the second line.

Tristar Success ! 
Thank you!
Title: Re: Android app for the Classic
Post by: Resthome on May 18, 2017, 06:57:09 PM
Quote from: Graham on May 30, 2016, 08:21:14 PM
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

Hi Graham..  I'm running 4.5.0 now and having a problem uploading data after I return home to an internet connection. Is there a location on a PC running BlueStack or Memu that the day log data is stored for later upload to PVOutput.org? It use to work and I have the SID and API numbers correct.
Title: Re: Android app for the Classic
Post by: Graham on May 19, 2017, 10:26:06 AM
Quote from: Resthome on May 18, 2017, 06:57:09 PM
Quote from: Graham on May 30, 2016, 08:21:14 PM
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

Hi Graham..  I'm running 4.5.0 now and having a problem uploading data after I return home to an internet connection. Is there a location on a PC running BlueStack or Memu that the day log data is stored for later upload to PVOutput.org? It use to work and I have the SID and API numbers correct.

There is a bug in the code when upgrading the settings, I added the ability to support several PVOutput SIDs (one per controller), unfortunately the settings aren't transferred during the upgrade.
the work around is to
1. delete the recorded logs (link in the settings)
2. delete the classic entry in the nav bar by sliding it to the right
3. restart the app and reconnect to the classic
4. re enter the PVOutput key & sid

or you can uninstall/re-install the app then connect & re-enter the Key/SID.


Graham.
Title: Re: Android app for the Classic
Post by: Resthome on May 19, 2017, 02:20:17 PM
Quote from: Graham on May 19, 2017, 10:26:06 AM
Quote from: Resthome on May 18, 2017, 06:57:09 PM
Quote from: Graham on May 30, 2016, 08:21:14 PM
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

Hi Graham..  I'm running 4.5.0 now and having a problem uploading data after I return home to an internet connection. Is there a location on a PC running BlueStack or Memu that the day log data is stored for later upload to PVOutput.org? It use to work and I have the SID and API numbers correct.

There is a bug in the code when upgrading the settings, I added the ability to support several PVOutput SIDs (one per controller), unfortunately the settings aren't transferred during the upgrade.
the work around is to
1. delete the recorded logs (link in the settings)
2. delete the classic entry in the nav bar by sliding it to the right
3. restart the app and reconnect to the classic
4. re enter the PVOutput key & sid

or you can uninstall/re-install the app then connect & re-enter the Key/SID.


Graham.

Thanks Graham, I will try that next week when I return to the lake. I did delete the old app and loaded 4.5.0 and renter the Sid and API. So maybe I just need to delete the recorded logs and let them try to load again. I'll let you know when I get back if any thing uploads to PVOutput.
Title: Re: Android app for the Classic
Post by: binkino on May 20, 2017, 09:39:27 AM
Graham, I have very mystery thing here.
2 identical Asus 7" tablets with the same Android Version.
Both were running well with your App.
Yesterday, after I connected the new batteries and switch the system on after 2 weeks,
I open the App. It connects to both Classics well.
but ... on one tabled, when I open the calendar tab, the App freezes. Either with a still standing or extremly slow reaacting App, or it hangs between 2 tabs (the calendar and the one next to it, when I try to go to the tab next to it)
I can go back to Android OS and open the App again and stop task and open it again.
But when I open the calendar tab again, freezes.

on the other tablet, it works without problems.

I have factory reset the tablet with the freeze ... I don'n know...
all other things work on it, as far I can see.



btw really have to check the german translation.
"ending amps" on the info tab is translated to like "end amplifier" hehe
and some small things.
"amps" can also be translated to "Verstärker" - that is "amplifier" in english again
"float time" ? is now "swiming time" ;)


Title: Re: Android app for the Classic
Post by: Westbranch on May 20, 2017, 11:39:26 AM
Binkino, that 'page' needs a lot of time to load all the data.....
it will 'freeze' or 'hang' for quite a while... 
the reason is: it is downloading all the 'un-read data' before it displays anything....
it sounds like there may be months of data not read till now...hth
Title: Re: Android app for the Classic
Post by: binkino on May 20, 2017, 02:30:31 PM
Quote from: Westbranch on May 20, 2017, 11:39:26 AM
Binkino, that 'page' needs a lot of time to load all the data.....
it will 'freeze' or 'hang' for quite a while... 
the reason is: it is downloading all the 'un-read data' before it displays anything....
it sounds like there may be months of data not read till now...hth

That was not the problem. This is my main used tablet and there can't be that much datas, it would have to read and compute.
The other tables was off (dumb me, forgot to plug in the µUSB haha) After it was booted, started the app, the app had to read datas from a few days, but it did not freeze while reading and computing the datas. It was a bit slow in that page, but that is normal.
But it should not freeze ...
It is still lying on the table and if I open this page now, it freezes.

Some Gremlins inside :D
Title: Re: Android app for the Classic
Post by: Westbranch on May 20, 2017, 03:41:08 PM
It is still lying on the table and if I open this page now, it freezes.

Some Gremlins inside
:D

What Anti Virus do you run?

PS on my  TAB I can try to move to a different and it will give me 1/2 of one and 1/2 of the other   hangs for up to a minute or longer,  probably processing power..?
Title: Re: Android app for the Classic
Post by: binkino on May 21, 2017, 07:27:31 PM
What is an Anti Virus? :D
Still not on an Android or 'real' Linux system ;)

QuotePS on my  TAB I can try to move to a different and it will give me 1/2 of one and 1/2 of the other   hangs for up to a minute or longer,  probably processing power..?

I was guessing this is happening, but I was able to go back to the homescreen and open the browser, a game, the LocalApp, go to the Google Play, settings and uninstall,... so I didn't believe, it was out of cpu power or ram

On the other hand, if one Tab works it is okay...
But it is funny to have both Tabs next each other and see both Classic at the same time - eye catching ;)
(and usefull, to compare)


Title: Re: Android app for the Classic
Post by: Westbranch on May 21, 2017, 09:45:36 PM
Avast followed me from my MS machines somehow .... it is an Antivirus foe MS stuff and they seemed to migrate to Android with power savers, etc... I like how it tells me there are 20 Apps running that I haven't touched today since boot up....!! and it will kill them all sadly my Local  APP to.
Title: Re: Android app for the Classic
Post by: Graham on May 22, 2017, 10:29:26 AM
Quote from: binkino on May 20, 2017, 09:39:27 AM
Graham, I have very mystery thing here.
2 identical Asus 7" tablets with the same Android Version.
Both were running well with your App.
Yesterday, after I connected the new batteries and switch the system on after 2 weeks,
I open the App. It connects to both Classics well.
but ... on one tabled, when I open the calendar tab, the App freezes. Either with a still standing or extremly slow reaacting App, or it hangs between 2 tabs (the calendar and the one next to it, when I try to go to the tab next to it)
I can go back to Android OS and open the App again and stop task and open it again.
But when I open the calendar tab again, freezes.

on the other tablet, it works without problems.

I have factory reset the tablet with the freeze ... I don'n know...
all other things work on it, as far I can see.



btw really have to check the german translation.
"ending amps" on the info tab is translated to like "end amplifier" hehe
and some small things.
"amps" can also be translated to "Verstärker" - that is "amplifier" in english again
"float time" ? is now "swiming time" ;)

Sounds like the app is running out of memory
try uninstalling the app then clear the cache in the android settings...
make sure the date is set on the classic the same as on the device
+ make sure the other device is not trying to connect to the same classic
the initial download of the calendar data will take several minutes (same as the local app offline data takes to fully load and enable the export button)


the German text is in the strings.xml file at https://github.com/graham22/Classic/tree/master/app/src/main/res/values-de (https://github.com/graham22/Classic/tree/master/app/src/main/res/values-de)
let me know what the text should be, I'll update the apk.


Graham.
Title: Re: Android app for the Classic
Post by: Resthome on May 24, 2017, 03:58:21 PM
Quote from: Resthome on May 19, 2017, 02:20:17 PM
Quote from: Graham on May 19, 2017, 10:26:06 AM
Quote from: Resthome on May 18, 2017, 06:57:09 PM
Quote from: Graham on May 30, 2016, 08:21:14 PM
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

Hi Graham..  I'm running 4.5.0 now and having a problem uploading data after I return home to an internet connection. Is there a location on a PC running BlueStack or Memu that the day log data is stored for later upload to PVOutput.org? It use to work and I have the SID and API numbers correct.

There is a bug in the code when upgrading the settings, I added the ability to support several PVOutput SIDs (one per controller), unfortunately the settings aren't transferred during the upgrade.
the work around is to
1. delete the recorded logs (link in the settings)
2. delete the classic entry in the nav bar by sliding it to the right
3. restart the app and reconnect to the classic
4. re enter the PVOutput key & sid

or you can uninstall/re-install the app then connect & re-enter the Key/SID.


Graham.

Thanks Graham, I will try that next week when I return to the lake. I did delete the old app and loaded 4.5.0 and renter the Sid and API. So maybe I just need to delete the recorded logs and let them try to load again. I'll let you know when I get back if any thing uploads to PVOutput.

Graham,  No luck. Followed all your steps and still no updates at PVOutput.org. One thing I did notice right after the tracking to Float Voltage message flashes at bottom of the screen I see two more message one saying Hourly logs data has been read and then Daily log data has been read in rapid succession. This happens as soon as the app is started. Nowhere near the time Offline data takes to complete in the Local app.  Is the stored data on the PC in a readable format that I could just verify it is indeed where it should be and just not getting sent.
Title: Re: Android app for the Classic
Post by: Graham on May 26, 2017, 09:21:46 AM
Quote from: Resthome on May 24, 2017, 03:58:21 PM

Graham,  No luck. Followed all your steps and still no updates at PVOutput.org. One thing I did notice right after the tracking to Float Voltage message flashes at bottom of the screen I see two more message one saying Hourly logs data has been read and then Daily log data has been read in rapid succession. This happens as soon as the app is started. Nowhere near the time Offline data takes to complete in the Local app.  Is the stored data on the PC in a readable format that I could just verify it is indeed where it should be and just not getting sent.

Can you read the logs using the local app?
It might be the android emulator that is blocking access to the log file, the code simply asks the android o/s to save the log file in the user internal storage area (https://developer.android.com/guide/topics/data/data-storage.html#filesInternal (https://developer.android.com/guide/topics/data/data-storage.html#filesInternal))

Here is a link to my dropbox area that has older versions of the app if you want to roll back...
https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0 (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0)

Graham.
Title: Re: Android app for the Classic
Post by: Resthome on May 30, 2017, 11:02:39 PM
Quote from: Graham on May 26, 2017, 09:21:46 AM
Quote from: Resthome on May 24, 2017, 03:58:21 PM

Graham,  No luck. Followed all your steps and still no updates at PVOutput.org. One thing I did notice right after the tracking to Float Voltage message flashes at bottom of the screen I see two more message one saying Hourly logs data has been read and then Daily log data has been read in rapid succession. This happens as soon as the app is started. Nowhere near the time Offline data takes to complete in the Local app.  Is the stored data on the PC in a readable format that I could just verify it is indeed where it should be and just not getting sent.

Can you read the logs using the local app?
It might be the android emulator that is blocking access to the log file, the code simply asks the android o/s to save the log file in the user internal storage area (https://developer.android.com/guide/topics/data/data-storage.html#filesInternal (https://developer.android.com/guide/topics/data/data-storage.html#filesInternal))

Here is a link to my dropbox area that has older versions of the app if you want to roll back...
https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0 (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0)

Graham.

Could be the emulators but I did get data in 2016. It stopped in June of 2016 IIRC
Yes, I can see the daily data in the LA. 
Title: Re: Android app for the Classic
Post by: Resthome on June 01, 2017, 10:58:59 AM
Quote from: Resthome on May 30, 2017, 11:02:39 PM
Quote from: Graham on May 26, 2017, 09:21:46 AM
Quote from: Resthome on May 24, 2017, 03:58:21 PM

Graham,  No luck. Followed all your steps and still no updates at PVOutput.org. One thing I did notice right after the tracking to Float Voltage message flashes at bottom of the screen I see two more message one saying Hourly logs data has been read and then Daily log data has been read in rapid succession. This happens as soon as the app is started. Nowhere near the time Offline data takes to complete in the Local app.  Is the stored data on the PC in a readable format that I could just verify it is indeed where it should be and just not getting sent.

Can you read the logs using the local app?
It might be the android emulator that is blocking access to the log file, the code simply asks the android o/s to save the log file in the user internal storage area (https://developer.android.com/guide/topics/data/data-storage.html#filesInternal (https://developer.android.com/guide/topics/data/data-storage.html#filesInternal))

Here is a link to my dropbox area that has older versions of the app if you want to roll back...
https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0 (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0)

Graham.

Could be the emulators but I did get data in 2016. It stopped in June of 2016 IIRC
Yes, I can see the daily data in the LA.

Not sure what i did other than change emulation mode to iPhone7 in Memu and it transfered data to PVOutput. So it is working with the latest version right now.
Title: Re: Android app for the Classic
Post by: budred on June 12, 2017, 03:52:58 PM
Hi Graham, I'm writing a basic solar monitor for a raspberry pi and I wanted to display a calculated battery runtime. I need to pull the battery AH data from the whizbang jr ("Remaining AH" would work fine as well).  Do you know the whizbang modbus registers for "Battery AH" or "Remaining AH"? Much appreciated

Cheers
Title: Re: Android app for the Classic
Post by: ClassicCrazy on June 12, 2017, 08:29:10 PM
Quote from: budred on June 12, 2017, 03:52:58 PM
Hi Graham, I'm writing a basic solar monitor for a raspberry pi and I wanted to display a calculated battery runtime. I need to pull the battery AH data from the whizbang jr ("Remaining AH" would work fine as well).  Do you know the whizbang modbus registers for "Battery AH" or "Remaining AH"? Much appreciated

Cheers

Is this the document you looked at for the registers ?
http://www.midnitesolar.com/pdfs/classic_register_map_Rev-C5-December-8-2013.pdf

could you subtract with these and get the right number ?

365 43 66
R
WbJrAmpHourPOSitive
(([4366] << 16) + [4365]) Amp Hours Pos.
(
un
signed)
Positive Whizbang Jr. amp hours
4367 43 68
R
WbJrAmpHour
NEGative
(([4368] << 16) + [4367]) Amp Hours Neg.
(signed)
Negative Whizbang Jr. amp hour

Larry
Title: Re: Android app for the Classic
Post by: budred on June 12, 2017, 09:50:12 PM
That's the document, Larry.  Thanks for this but I believe those registers measure the accumulated energy going in and out of the battery, but what I need is the capacity of the battery, which is an unchanging value.  The default value from factory is 400AH.

I'll let you know what I get from these registers.

Tomie
Title: Re: Android app for the Classic
Post by: ClassicCrazy on June 12, 2017, 09:58:48 PM
Graham probably knows - he gets that value somehow on his Classic Android App.

Larry
Title: Re: Android app for the Classic
Post by: binkino on June 13, 2017, 06:19:57 PM
Quote from: Graham on May 22, 2017, 10:29:26 AM...
the German text is in the strings.xml file at https://github.com/graham22/Classic/tree/master/app/src/main/res/values-de (https://github.com/graham22/Classic/tree/master/app/src/main/res/values-de)
let me know what the text should be, I'll update the apk.


Graham.

thanks, will check these days ;)
Title: Re: Android app for the Classic
Post by: Graham on June 16, 2017, 01:54:18 PM
Quote from: budred on June 12, 2017, 03:52:58 PM
Hi Graham, I'm writing a basic solar monitor for a raspberry pi and I wanted to display a calculated battery runtime. I need to pull the battery AH data from the whizbang jr ("Remaining AH" would work fine as well).  Do you know the whizbang modbus registers for "Battery AH" or "Remaining AH"? Much appreciated

Cheers

Here is a link to the source on github
https://github.com/graham22/Classic/blob/master/app/src/main/java/ca/farrelltonsolar/classic/ModbusTask.java (https://github.com/graham22/Classic/blob/master/app/src/main/java/ca/farrelltonsolar/classic/ModbusTask.java)

lines 294 to 308 read the whizbang data, TotalAmpHours is at  offset 4380


Graham.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on November 08, 2017, 12:25:16 PM
Graham ,
I noticed that in Messages tab where the list of Target Battery voltage , Ending Amps , etc is listed  that on mine I have ending amps set in Classic for 10.8 but on the app it is displaying as 10.0 A .
So maybe it is just not reading the decimal ?  No big deal but next time you are tinkering with the app or thinking of an update maybe you could see if it is an easy fix.
Thanks
Larry
Title: Re: Android app for the Classic
Post by: Graham on November 10, 2017, 11:06:08 AM
Quote from: ClassicCrazy on November 08, 2017, 12:25:16 PM
Graham ,
I noticed that in Messages tab where the list of Target Battery voltage , Ending Amps , etc is listed  that on mine I have ending amps set in Classic for 10.8 but on the app it is displaying as 10.0 A .
So maybe it is just not reading the decimal ?  No big deal but next time you are tinkering with the app or thinking of an update maybe you could see if it is an easy fix.
Thanks
Larry

Thanks Larry
found the issue, the fix will be in the next release.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on November 10, 2017, 12:02:22 PM
Quote from: Graham on November 10, 2017, 11:06:08 AM
Quote from: ClassicCrazy on November 08, 2017, 12:25:16 PM
Graham ,
I noticed that in Messages tab where the list of Target Battery voltage , Ending Amps , etc is listed  that on mine I have ending amps set in Classic for 10.8 but on the app it is displaying as 10.0 A .
So maybe it is just not reading the decimal ?  No big deal but next time you are tinkering with the app or thinking of an update maybe you could see if it is an easy fix.
Thanks
Larry

Thanks Larry
found the issue, the fix will be in the next release.

Great glad you found it -  thanks - no big deal but might as well make it work right !

Larry
Title: Re: Android app for the Classic
Post by: ClassicCrazy on December 09, 2017, 11:03:36 AM
Graham,
I noticed one other small quirk . When you are on the Consumption screen and toggle the dial from Power to Current - the amps displayed is rounded off  - so only either get like 6 amps , or 7 amps and nothing in between. The State of Charge will show amps to a decimal .
So you can put that on your list to look at for next update if you want to .
Thanks
Larry
Title: Re: Android app for the Classic
Post by: Westbranch on December 09, 2017, 12:19:39 PM
Hi Larry, what are you running it on?

I will check next week when on site and check that out as I don't remember it doing that... but I don't use that screen very often as I watch the 'Power' screen the most and the 'Graph' page..
Title: Re: Android app for the Classic
Post by: ClassicCrazy on December 09, 2017, 02:20:04 PM
I am using it on Amazon Fire tablet running  Cyanogenmod android .

Larry
Title: Re: Android app for the Classic
Post by: Graham on December 11, 2017, 08:34:57 AM
Quote from: ClassicCrazy on December 09, 2017, 11:03:36 AM
Graham,
I noticed one other small quirk . When you are on the Consumption screen and toggle the dial from Power to Current - the amps displayed is rounded off  - so only either get like 6 amps , or 7 amps and nothing in between. The State of Charge will show amps to a decimal .
So you can put that on your list to look at for next update if you want to .
Thanks
Larry

Thanks Larry

I published an update to the github repo https://github.com/graham22/Classic/ (https://github.com/graham22/Classic/) with the changes to the consumption gauge for the current precision. I'll update google play in a couple of weeks.

The apk is in my dropbox folder https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0 (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0)


Graham.

Title: Re: Android app for the Classic
Post by: ClassicCrazy on December 11, 2017, 07:28:56 PM
Quote from: Graham on December 11, 2017, 08:34:57 AM
Quote from: ClassicCrazy on December 09, 2017, 11:03:36 AM
Graham,
I noticed one other small quirk . When you are on the Consumption screen and toggle the dial from Power to Current - the amps displayed is rounded off  - so only either get like 6 amps , or 7 amps and nothing in between. The State of Charge will show amps to a decimal .
So you can put that on your list to look at for next update if you want to .
Thanks
Larry
Thanks Graham . I just installed it and now am seeing the consumption to decimal places on the amp scale.
The decimal on the ending amps is also working now too.

Larry

Thanks Larry

I published an update to the github repo https://github.com/graham22/Classic/ (https://github.com/graham22/Classic/) with the changes to the consumption gauge for the current precision. I'll update google play in a couple of weeks.

The apk is in my dropbox folder https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0 (https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0)


Graham.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 29, 2018, 02:14:44 PM
I have a question about the Live Chart 
If I double click on the screen it seems like it zooms in on the times . But I haven't been able to make it go backwards and zoom out .

Any hints on using  this ?

Also if I close it all the Live Chart data is gone  - is there a way to make that stick in there ? 

I am using Memu Play to view Classic Monitor  which is Android emulator - works great on the Windows 10 laptop .

Thanks
Larry
Title: Re: Android app for the Classic
Post by: binkino on January 29, 2018, 07:10:48 PM
Did you try using 2 fingers, like zooming in/out in photos?

afaik the app must run all the time if you want the diagram with all datas
Title: Re: Android app for the Classic
Post by: ClassicCrazy on January 29, 2018, 08:27:20 PM
Quote from: binkino on January 29, 2018, 07:10:48 PM
Did you try using 2 fingers, like zooming in/out in photos?

afaik the app must run all the time if you want the diagram with all datas

Oh yeah that works on my tablet ! I didn't think of that. I was using it on the laptop running the android emulator ,

Just found out how to zoom in and out on the laptop using the emulator - all I have to do is hold down Ctrl key and use mouse wheel and it zooms in and out . Hurray !

Thanks for the tip !

In case anyone wants to run Android on their laptop try out http://www.memuplay.com/   It works great  after initial download you can update it to Android 5.1 emulator version . But Classic Monitoring App works fine on both Memu Play versions.

Larry
Title: Re: Android app for the Classic
Post by: Graham on January 31, 2018, 07:43:46 PM
Quote from: ClassicCrazy on January 29, 2018, 02:14:44 PM
I have a question about the Live Chart 
If I double click on the screen it seems like it zooms in on the times . But I haven't been able to make it go backwards and zoom out .

Any hints on using  this ?

Also if I close it all the Live Chart data is gone  - is there a way to make that stick in there ? 

I am using Memu Play to view Classic Monitor  which is Android emulator - works great on the Windows 10 laptop .

Thanks
Larry

Hi Larry

the live chart data is just in memory, there is a API provided by Android called "SaveInstanceState" to allow temporary storage of UI data while the activity is not in view or when the device is rotated.
https://developer.android.com/topic/libraries/architecture/saving-states.html (https://developer.android.com/topic/libraries/architecture/saving-states.html)

I have another version that displays the reason for resting in the Message tab, it's in my dropbox folder if you would like to try it...

https://www.dropbox.com/s/w248ymdmeor9wcl/app-release.apk?dl=0 (https://www.dropbox.com/s/w248ymdmeor9wcl/app-release.apk?dl=0)

Graham.
Title: Re: Android app for the Classic
Post by: ClassicCrazy on February 01, 2018, 01:59:09 AM
I will give the updated app a try when I get a chance - thanks !
Larry
Title: Re: Android app for the Classic
Post by: ClassicCrazy on February 03, 2018, 03:41:09 PM
Quote from: Graham on January 31, 2018, 07:43:46 PM


Hi Larry

the live chart data is just in memory, there is a API provided by Android called "SaveInstanceState" to allow temporary storage of UI data while the activity is not in view or when the device is rotated.
https://developer.android.com/topic/libraries/architecture/saving-states.html (https://developer.android.com/topic/libraries/architecture/saving-states.html)

I have another version that displays the reason for resting in the Message tab, it's in my dropbox folder if you would like to try it...

https://www.dropbox.com/s/w248ymdmeor9wcl/app-release.apk?dl=0 (https://www.dropbox.com/s/w248ymdmeor9wcl/app-release.apk?dl=0)

Graham.
[/quote]

I installed the new apk and Reason for Resting is showing up in the Messages so looks to work fine.  Another helpful update - thanks.

Larry
Title: Re: Android app for the Classic
Post by: Graham on August 04, 2020, 08:35:14 AM
The Dropbox links in previous posts of this thread don't seem to work anymore.

The easiest way to install the app is to install it from google play. Open Google play on your device and search for "Classic Monitor"

or click on this link from your device;

https://play.google.com/store/apps/details?id=ca.farrelltonsolar.classic&hl=en&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1 (https://play.google.com/store/apps/details?id=ca.farrelltonsolar.classic&hl=en&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1)

or go to the apps github page at https://github.com/ClassicDIY/ClassicMonitor (https://github.com/ClassicDIY/ClassicMonitor) and click on the "Get it from Google Play" image.

I also have a copy on google drive (you must allow installs from a unknown source, click on this link from your phone)
https://drive.google.com/open?id=1S2BWLFn_nU0NmxXmyhJaz97h0K1_OY6B (https://drive.google.com/open?id=1S2BWLFn_nU0NmxXmyhJaz97h0K1_OY6B)

There is also a WIKI page including an FAQ that anyone can edit https://github.com/ClassicDIY/Classic/wiki (https://github.com/ClassicDIY/Classic/wiki).

Graham.