Hey Guys, I just spent a bit of time putting together a new widget using the Smoothie charts api (http://smoothiecharts.org/).
It seems to work really well, you can see some pictures below:
It also works really well on iPhone and other mobile browsers..
Just a note to view it on the iPhone full screen you must first visit the page in safari, then add the page to your home screen, then the next time you open it (from the home screen) it will be shown in full screen mode.
To install it add the smoothie.php file to your emoncms3/Vis/ Folder then you can either view it directly with:
Where feedid and feedid2 are the ID for the two feeds you want to graph (the second one being optional) and ufac being the "update factor" or basically the delay for the graph so it seems like its showing in real time (it builds up in this example 20 seconds of data then starts showing it to you).
I also put another little html page together so i can browse to it easily showing the page in an iframe, its in the attachments as s.php you can also put this in the /Vis/ directory or anywhere else just make sure you set the src correctly for the iframe, or put it in your dashboard with:
Wow, very nice! will try it out thanks a lot!
Looks nice, will have a go on it.
Thx for the work.
cant get it to work.
I put in my APIkey (read) and my feedid
Get at fine scrolling black box, but no data.
Ah i see whats wrong, if you want to put it in a smoothie folder within the Vis folder (so: /Vis/smoothie/ which is probably a better idea) then use this new version of the smoothie.php
(I changed line 13 to be 'Vis/smoothie', '', $_SERVER['SCRIPT_NAME']))."/";).
I dont think its the path thats the problem, because i get a black scrolling layout. Just missing the data from the feed.
Even when i change the php to point direct to my paht, there is still no feeds.
Basically what you want your $path variable to be set to for your project is http://juelsminde.org/sol/
This line should have got that for you:
$path = dirname("http://".$_SERVER['HTTP_HOST'].str_replace('Vis/smoothie', '', $_SERVER['SCRIPT_NAME']))."/";
hehe, just found out that i had to wait for the graph to show, 20 sec is a long time. and when ever i press F5 gess i have to wait again.
Nice addition Shervin thanks. Looks great, very clean.
I also agree 20 seconds is a very long time even when expecting it.
Hello Shervin, I've added it to the emoncms github repo exactly as you detail above. its really great, thanks a lot!
Open-source tools for energy monitoring and analysis. This project uses the GNU General Public Licence