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

As one of the last things i tested the did tested the flukso viz on the Ainol Aurora running ICS 4.0.3 the layout for 1024x600 was also done.

icarus75's picture

I see no issue in adding the FluksoViz codebase to the flukso github repository. I do agree with sherlock that having someone step up to the plate as FluksoViz maintainer would be a big plus since I haven't done any native Droid app development myself. But in order for this to happen, the code should be made available first, I guess.

@sherlock Make sure each source file comes with an appropriate copyright header prior to releasing the code. You might consider GPLv3 as a licence, aligning FluksoViz with Flukso copyright-wise. Have you been using a version control system during development of FluksoViz?

monika's picture

Hi Sherlock,

I have just installed Flukso Viz 1.0.74 on my Android 3.2 Samsung Galaxy Tab 10.1 and it works fine with the mySmartGrid server when the tablet is in the same network as the flukso. Thank you very much! Unfortunately, it doesn't seem to work on my HTC incredible with Android 4.0.4 - it says "parsing error".

The setup of the Api and Token keys could be improved if you linked the barcode scanner app to the sensor fields like it is done in the "Pakete" app for tracking parcels: https://play.google.com/store/apps/details?id=eu.zomtec.android.delivery...

It would be a pleasure to have the code on github.

Kind Regards,

Monika

buzzw's picture

Hi Sherlock,

I am willing to try to build the app using the new SDK /Eclipse, if you send me the code. Goal is to put a working version in Github, to enable further development and maintenance.

PS: I can report that the app works on Android 4.0.3 (upgraded Yarvik tablet).

sherlock's picture

I'm realy happy someone will follow me up with the development, i'll upload code here monday asap i get to my office pc where i have it. With a month old todller in home i'm totally out of time

Last week i came back to code, to make some comments for the next developer and it was fine, unfortunately the sdk updated in eclipse and i no longer can compile the code properly. Anyway i hope you will be able to figure it out.

I"ll be more then happy to help developers unedrstand how it is coded so they can start impoving it.

Regards

sherlock's picture

Here is my setup if anyone is interested. I modified a tablet so two bottom magnets are connected to power and are charging the tablet when on the wall.

http://youtu.be/0FPnJHUa3QQ

bazzle's picture

well done :)
Im still using the app on my wildfire S

Bazzle

buzzw's picture

The magnet charging setup is really cool!

sherlock's picture

As I wrote in the comments I would do it with only 4 magnets, but you need to use larger 20mm magnets to hold a 350g tablet in place.

Soldering nickel plated magnets is pain in the ass. Took me like 30 minutes to get 4 proper solders. Maybe there is a trick that I don't know.

To glue magnets I use sugru , that is IMHO best invention since duct tape.

sherlock's picture

https://dl.dropbox.com/u/11717494/FluksoViz.rar

Here is the project folder from Eclipse with FluksoViz source code and the whole project.

It is currently not workable due to to some minor (I hope) incompatibility with late eclipse android SDK update. Someone who has Any experience with Eclipse and Android programing should be able to solve it.

FluksoViz uses androidplot library for plotin the two graphs, and this is a very robust library that allows programing scrolable zoomable graphs as well. The problem is that androidplot.com recently suffered a catastropic crash to the site and the immensely useful forum is gone. But at least they recovered with pieces of documentation.

icarus75's picture

@Sherlock There doesn't seem to be a license header prepended to any of the code. That would mean default copyright rules apply to the code, i.e. all rights reserved.

Congratulations with the newborn! They do indeed have a tendency to eliminate all of your 'free' time. :-)

sherlock's picture

I did fixed source adding GPLv3 license header.
Not sure if this is right way, as I do it first time.
You can redownload the original file.

buzzw's picture

Thanks for publishing the code Sherlock! @Icarus75, I assume the code could be imported in Github ?
(I see other examples of Android apps in Github such as https://github.com/BodyTrack/Android-Application ). Eclipse also interfaces with Git right?

sherlock's picture

My old tablet for flukso viz just gave up 9 month of work, So today I got the new one on Pandawill for a staggering 64 USD with free shipping. Will see how this one is going to work out.

It would be great if someone would manage to publish code to the github and make it work, with eclipse.

peterj's picture

Works ok on my Samsung TAB 10 en Samsung Galaxy Note. Even over internet (port forwarding in my router). On my Note I see in the black top right area above 'W', when 4 digit are visible, some black characters in the most right white digit.

ffuentes's picture

I am sorry to revive this thread.... The app works on my tablet "Cruzer" Android 2.2... The issue I have is that the real time W is still on "123w" and is not moving. Also the "Today" usage has a Infinite symbol before the "%" symbol. The Power "Last Day" is working. Also on the top left hand corner I get "java.util.NoSuchElementException"

Any ideas?

TIA!

ffuentes's picture

Well it seems that the app can not read my local Flukso over the API I do have a V2 Flukso and the local JSON/REST API is enable. What Is going on? Is the application not able to work with the latest firmware version?

sherlock's picture

It looks that your tokens are not corectly entered.

ffuentes's picture

Sherlock,

Well you almost got it... Well this app only works with 3 sensors and I only have two. And sense I am on the US I have enabled 3 Phase on the settings which only allows me to run 2 analog sensors at the time.... No matter what I do I cant enable the third sensor.... Making the Viz app not work because is not compatible with the setup. Is ether that I am totally wrong.... The viz app can read the remote data so I know the tokens are correct... The issue is reading the real time.

Any thoughts?

Thanks for the help!

ffuentes's picture

Factory reset did the trick... Strange lol :/

TIA!

vicentesol's picture

Hi All

I just installed it on my HTC sensation ICS 4.03 and works excellent. For the moment I have only 1 clamp on the Mains.

Keep up the good work!

Rgds, Vincent

sherlock's picture

Just to let you know.

Today I got my 64 dollars tablet. And while for sure it is not an IPAD, it is more then good for FluksoViz. It is running 4.0.4 It came with the plastic screen slightly scratched but that might be only my unit. Not asking much for a 64 USD device.

http://www.pandawill.com/yeahpad-a13-tablet-pc-7-inch-ultra-thin-android...

Now I need to open it up to make the the magnet charging, and that might be tricky as it has no visible screws.

sherlock's picture

FYI

I have to take back the recomenation I gave for the tablet the tablet above. It has some serious issues with WiFi and so far I only found a single AP that it does connect to and does not drop seconds later for high packet error rate. In my crowded WiFi home, 15 or so devices it will not properly register to any of my 3 hotspots.

wessel99's picture

Hi, I just installed my Flukso V2 (including the "experimental" electricity optical-pulse reader and a standard gas probe) and it worked very well on my Galaxy Nexus running android 4.1.1. Since this morning however I get an apache error and it force closes.

And perhaps a suggestion: might it be possible to use ones flukso login details to pick up sensor and api tokens? Great work though! Looking forward to the next version (is there any way to register it in the market, or get updated when new versions arrive?).

ffuentes's picture

wessel99,

I havfe the same issue. It see,ms the app is very sensitive to latencey... After a point of time out or to much lag the software crashes. I have the same issue you have.
I just wish the developer would pick this one up again. I am willing to donate :D

sherlock's picture

With a 3 month old kid. I have not time at all to pick up the development, despite there are quite a few issues that piss me off as well. Since I have lost my developent environment and could not set it up properly again after the eclipse update, we need some external help. At least if we could find some Pro in android development o help me fix the Eclipse I could code some basic enhancement and network handling issues.

@wessel, the problem you have might be that the IP address of your flukso has changed and since you switched off the innitial checking it now does crash. I

Regarding the tablets to use with the App.

This time I purchased on Pandawill an Ainol Crystal - 119 USD for 1024x600 display and 42/62 Mflops Linpack score. Android 4.1.1. So this is an overkill for such a simple app but at least there is no latency issues. And WiFi works properly. This is my 3rd Ainol device and all were good build quality. I recommend it and app looks nice on it.

I see there is now a cheaper Ainol Tornado for purchase @ 80 USD and it should do as well.

tweaker's picture

Hi Sherlock,

I am running your app on Android 2.2 and I like it very much. Setting up was a struggle in the beginning as I did not tick the checkbox for running the local API on the Flukso, but after that it worked.
Are you planning to put more time in the project? As far as I can see you are the only Fluksonian who takes an effort in Android.

Hoping you keep up the good work,
Oscar

sherlock's picture

Yep that is the latest and the only one! The moment I uploaded it the code was unworkable, due to some glitch in my Eclipse setup. But that should be easy to fix for any skilled android Developer. I'm willing to work with someone who knows android development in order to bring it to workable state again.

Since then I have lost a SSD with my Eclipse setup so that is only one left.(do not buy Corsair Force SSD)

jrbenito's picture

Hi all,

@Sherlock

I managed to put it running again inside my fresh new eclipse-adt-bundle (http://developer.android.com). I also pushed it to a git repository (https://github.com/jrbenito/FluksoViz) without eclipse project and settings files. This makes it easier to anyone who want try by just import files inside eclipse. To put eclipse files inside code control version system would, soon or later, lead to problems related to different eclipse or ADT versions.

@All

Anyone who want shall clone repository from Github and start developing. I will be glad to test results in as many device as I can. (*I work for Samsung and can test in virtually every device they launch in Latin America)
I will also be glad to merge any push requests you make in order to keep the repository up to date.

Regards,
Benito.