[En-Nut-Discussion] Web Charts? Use java?
Tim Tait
tim.tait1 at gmail.com
Tue Feb 21 16:26:37 CET 2006
José -
I am also a java newbie.
Real time data update via socket sounds cool, but that applet looks
pretty big. How small did you get it?
What I did was very simple - you have to refresh the page to get new
data, but it should do what I need.
Tim
José Vallet wrote:
> Hello Tim
>
> That is exactly what I am doing.
>
> What I have at the moment:
>
> ETHERNUT SIDE: http server + web page with an applet inside
>
> DESKTOP SIDE: web browser with Java.
>
> I am reading ADC data from Ethernut and sending it to the applet
> through a socket on real time. I use the library jchart2d for the
> charts http://jchart2d.sourceforge.net/
>
> I chose it because its simplicity compared to others and because it
> was exactly what I wanted.
>
> The resulting applet is packed in a .jar file with all the needed
> classes, and after that optimized and obfuscated for optimal code size
> using proguard (this step shrinks the applet size in about 30%!). That
> has proved to be the best for me, although it took me a while to make
> it work (I am a Java beginner).
>
> As the size of the applet is growing, I use the serial memory for
> storing it (xflash from Michael Fischer), and it works nicely for me.
> That gives me up to 512 Kbytes for the GUI, which is a lot!!
>
> Hope it helps. If you have any further question, don't hesitate
> asking! I am not an expert but that is what I am doing.
>
> If you want an example I could send you some code, although a bit
> messy (but working).
>
> Regards
> José
>
> Tim Tait wrote:
>
>>
>> Has anbody done anything with serving dynamic data charts from
>> ethernut? I want to to display simple line graph of sensor readings
>> over time. I am thinking that a java applet is the way to go. Most of
>> the applets out there seem to big, one "tChart" seems reasonable at
>> 17kb, put you have to pay to get source. Is there another way?
>>
>> Thanks-
>>
>> Tim
>>
More information about the En-Nut-Discussion
mailing list