Android app for the Classic

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

Previous topic - Next topic

mike90045

QuoteYes leave the 502 in the top line and only the 192.168 1.253 in the second line.

Tristar Success ! 
Thank you!
http://tinyurl.com/LMR-Solar

Classic 200| 2Kw PV, 160Voc | Grundfos 10 SO5-9 with 3 wire Franklin Electric motor (1/2hp 240V 1ph )| Listeroid 6/1, st5 gen head | XW6048 inverter/chgr | midnight ePanel & 4 SPDs | 48V, 800A NiFe battery bank | MS-TS-MPPT60 w/3Kw PV

Resthome

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

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

Graham

Quote from: Resthome on May 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.
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

Resthome

Quote from: 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.
John

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

binkino

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


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

Westbranch

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

binkino

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

Westbranch

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

binkino

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)


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

Westbranch

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

Graham

Quote from: binkino on May 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
let me know what the text should be, I'll update the apk.


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

Resthome

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

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

Graham

Quote from: Resthome on May 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)

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

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

Resthome

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)

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

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

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

Resthome

Quote from: 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)

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

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

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