Android Flukso Viz alpha release.

http://dl.dropbox.com/u/11717494/FluksoViz.apk
This will install a Flukso Viz app.

This is an absolute work in progress, with plenty of bugs but I look for a volunteer to test it.

Should work with 3 phase Flukso setup. Will crash with 1 phase setup or lack of IP on the device (no wifi) Only tested on 480x800 resolution, and android 2.2 tablet. Month data is not displayed as I only own a flukso for 2 weeks and it didn't gather enough data to let me debug it.

Implemented features are:
-taping a realtime graph will change amount of the details displayed
-taping the large readout will enter the DeltaMode. Takes a total usage in the last second and subtracts it from. Useful for checking power of a particular light or device.
-The Today/Week table is self explanatory and the percentage sign on the end is a difference to the day/week before.
-For Today power consumed you might see a large number (that might change quickly) just past midnight as this is 24h power use extrapolated value based on the average power from midnight till now.

Screenshot. http://dl.dropbox.com/u/11717494/fluksoviz%20alpha.PNG

Sample installation video: http://www.youtube.com/watch?v=0FPnJHUa3QQ&feature=youtu.be

Source code released under GPLv3: https://dl.dropbox.com/u/11717494/FluksoViz.rar

sherlock's picture

The Today value is showing last 24h of the usage all the time. So the today description might be accualy misleading. I wanted to name it Last 24h but that was to long. I was thinking about showing there a counter that would be incrementing all day and reset at midnight, but came to conlusion that this is more informative, as it allows to show the trend in power use. (the last field percentage is last2 4h copmared to the last full day that already compleated)

Just one question is that 20 exactly or twentish? if this is some arbitrary value around 20 this is probably your real use.

Obi's picture

Start value is exatly 20.
I am stil a little bit confused about this today screen. What im lookin for is a possibility to monitor the exact power consumation for eg. the last day or 24h. But to compare different days, i need to know the start time (for the last 24 hous). Is this not the start time of the LoopExample application?

Picture application startup (you can see the 20kw/h):
http://www.bilder-space.de/show_img.php?img=3541e2-1327770459.png&size=o...

Picture applicattion is running:
http://www.bilder-space.de/show_img.php?img=1571cd-1327771108.png&size=o...

sherlock's picture

You gave ma a good lead. I noticed that in my setup app also did not start from 00:00 to 1:00 exactly. (and only the bottom graphs and stats are crashing) And I think I know where the bug lies. It is the time zone issue!!! Flusko DB is holding all the data with the GMT timestamps. At the break of the day there must be some mismatch in my code. Will look into that might take few days to catch that case late in night.

This would also explain why Bazzle has problems at some other times of day, as he is in Australia some 10h offset.

As for the initial screen with 20.00 that is just a defualt value for the field that i used for the design of the layout, ignore.

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

New Release is uploaded, it might solve the problem or running the software at midnight (GMT)

Obi's picture

Cool, will test tonight :)

Please can you add version number or creation date for example to the About/Help button?

Has the week and month display the same mechanism like the today screen (always the last 24 hours) or do you check calendar week and month?
Tks
Obi

bazzle's picture

Hi Sherlock.

You mention a New release uploaded.
Where do I find it please?

Bazzle

sherlock's picture

File is released under the same link as always, just scroll back to see it in previous posts.
In my case it did not crash on 00:00 today.

Obi week is last 7 days and month is last 30 days same as last 24h

Obi's picture

works fine on mobile device, test on desktop device failed because software update forced a reboot last night. Will test again.
Br
Obi

bazzle's picture

Hi Sherlock.

The local graph has stopped working.
I have tried a reload/ reboot ect without success.
Error at top of screen says: java.util.NoSuchElementExeption.

Does this mean anything to you?

Thanks Bazzle

Obi's picture

Hi Sherlock,
no crashes on midnight anymore. But sometimes app close during daytime (Mobile and Desktop devices).
Br
Obi

bazzle's picture

Umm. 3 hours later and both graphs working again ??

Bazzle

sherlock's picture

bazzle,

No such a element in the top field means there is not connection to the local flukso.
To double check that, when that happens enable the initial checks in the preferneces.
It should fail the first test saying the flukso http is not reachable?
Let me know if that is different.

Obi,
The longest so far app was ok for 3.5 days. And then it crashed 2 times in one evening.
As my tablet is not running anything else then FluksoViz that must be someting on the networking side, probably a timeout on the flukso.net server api. Hard to debug as I need to catch such a case on the emulator, on development PC.

BTW, just got new tablet running Android ICS 4.0.3 and the app is compatible. I now look what can be done with all that the nice 1024x600 real estate.

Obi's picture

Cool, I am using an android emulator on a Win7 PC. Looks very nice with high resolution :)
Br
Obi

bazzle's picture

Same again . No top graph and message, says all ok on 1st screen.
Local Flukso reachable, both sensors ok.
Only bottom graph on both pressed.

Im guessing a local Flukso issue.
Every time the power goes off here the Flukso appears to give me a new IP addy. They are not always in the range allocated for my router so I have to keep resetting until I get one that is ..grrr

Bazzle

sherlock's picture

Bazzel,
check if your router can make static allocation and if not set the ip by hand in the prper subnet, not using the dhcp

bazzle's picture

I can get in the range of IP addys if I turn off my 2nd wireless router when I reset the Flukso. Seem to have that figured. Played around with dhcp etc ... lost me.

OK, sadly still getting the sensor error. for graph 1. Bottom graph works..
On start up all checks ok.

Any clues

Baz

Edit: runs both graphs if I only use 1 sensor. As soon as I set both in Pref I get the java error message.
edit 2: Came good about 10:00am local time ???

sherlock's picture

Is that 10am exactly? can you check that, since you are some 10 timeziones away this could be another bug in the timezone code.

Also check if you have the latest Version 1.0.7
I added versioning now and it is displayed after pressing menu for entering preferences.

bazzle's picture

Its version 1.0.6
Downloaded again 5 minutes ago from link on your 1st post.
No local data atm. 6:00am

Bazzle

bazzle's picture

Worked all day and night but 'turned its self off' between 1am and 6am.
Fired up again ok :)

Bazzle

jtkirk's picture

hi guys,

where can i download the beta app for windows ?

thx for the help

sherlock's picture

Ver 1.0.74 uploaded
http://dl.dropbox.com/u/11717494/FluksoViz.apk
-major change is that the apk is now named properly as the aplication name and not the LoopExample. I wanted to fix that for a long time and finaly did.
-you need to uninstal the old verion and you will loose the settings, sorry!
-new layout for the 1024x600 tablets with larger graphs.

@jtkirk This is an android app and Win version is not planned, you can try http://bluestacks.com/app-player/ some users reported success.

bazzle's picture

Many thanks Sherlock :)

Ive just loaded the new app...
Seems to be running OK on my HTC Wildfire S 480 x 320 atm.

Bazzle

andi's picture

Hi,
my flukso doesn't run an Webserver on port 8080 but on port 80. Is it possible to make the local port configurable?

Thanks in advance,
Andi

viper1705's picture

Hi,

In order to connect to the flukso from the office, i set up port forwarding on my router, and then entered my dyndns address in the flukso app (xxxx.dyndns.org:port), but now the app crashes every time i start it, so i cannot even change it back to what it was before. Is there anything i can do ? (without having to reinstall it, and entering the api keys and tokens again)

sherlock's picture

@ andi, I'll add that next time i'll have a bit time to code.
@ viper, you should enable the test mode before playing with networks settings. As without that the app has not protection for wrong settings but is a bit faster in setup. Now you need to delete the app setting in android settings, but you will loose the api keys unforutnately.

bramcloet's picture

The link to the apk file is broken?

bramcloet's picture

Sorry I used an old link apparently. I found a working one.

buzzw's picture

Hi Sherlock, finally bought a cheap tablet for dedicated FluksoViz use, it is always on and kids are already trying to minimize actual use in the house. I was thinking of some extra functionality to increase the usefulness (which is already great in comparison with e.g. the wattcher).

Are there any plans to support dual electricity rates? (would help to compute real cost). Also, I would be interested in a way to zoom out in the usage diagram showing actual use. This would then allow to inspect the precise usage of the last half hour or hour. (perhaps with a slider, radio button, or even multi touch)

Or perhaps a line in the 24 hr diagram showing peak levels (since most short peaks are integrated out in the 24 hr diagram).

sherlock's picture

Great you can get any use of the FluskoViz. And all the features you propose are very much needed. Unfortunately I have no more time to develop FluksoViz nor ability to code the advanced feature.

The FluksoViz is opensource. I'm willing to send the source code to anyone who is willing to pick up the development of it.

I was trying to come back and add some little requested features today, unfortunately after launching the Eclipse started it was working fine, and then the Android SDK updated and I'm no longer able to build the app properly. If anyone has mastered the Eclipse at least I would be able to pass it to the community in a workable state.

buzzw's picture

Hi Sherlock,

I might be able to do some small updates on the code, but am not able to do advanced coding.
perhaps Bart can help out to publish the source code on https://github.com/flukso, this would at least facilitate others to join in on development. It would be a real pity if this app is not maintained, since it might become unusable for new versions of Android. As a matter of fact, does FluksoViz work on 4.0 (ICS)?