Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: gavinmc42 on October 31, 2014, 12:34:28 AM

Title: Generating plotted images
Post by: gavinmc42 on October 31, 2014, 12:34:28 AM
Anyone know if there is anything in the tcz's that can take data and make plots.

I have a time and temperature csv file and want to plot the data into a image file to attach to an email.

Been using gnuplot with python on Raspbian till now.
Have also used Nodejs with Highcharts as a webserver plotting temps but not yet on TC.
Want to try Octave one day but it's over kill for this application.

Simplest, lowest memory footprint?
Title: Re: Generating plotted images
Post by: gavinmc42 on November 04, 2014, 01:15:37 AM
Been looking at plotting stuff.

Turns out SVG files are text and quite easy to do.
Take CSV data from file, add a simple header etc and formatting and write it as a xxx.svg

RPi videocore tiger demo is SVG so plotting could be accelerated by the GPU.
SVG is browser friendly, so easy to add to a web-server version.

Also found out i2c-tools.tcz does not need Perl5.tcz, saving 13.6MB

One step closer to having sensor monitoring in a 20MB OS.

Title: Re: Generating plotted images
Post by: bmarkus on November 04, 2014, 01:49:01 AM

Also found out i2c-tools.tcz does not need Perl5.tcz, saving 13.6MB


Sounds great.

Just a notice, i2c-tools.tcz contains binaries and Perl scripts. If you are using only the binaries, you can omit perl5.tcz
Title: Re: Generating plotted images
Post by: gavinmc42 on November 04, 2014, 08:31:11 PM
Yep, I wondered why need Perl5 after I had a look at the i2c-tools source code.

Lots of extra baggage in Linux, also lots stuff unknown (to me) or not used.
Was just cruising file system to understand what comes in standard Picore-SSH.
No bc but did find dc in busybox( see previous command line calculator post).

Spend nights reading Linux books etc from here.
http://it-ebooks.info/