Page 1 of 1

Options on storing data

Posted: Fri Feb 17, 2012 1:41 pm
by colinpartridge
I am trying to build a stack which uses serial data from a Current Cost Meter which gives you Power consumption and temperature data. The device spits out data every 6 secs. I have succeeded in parsing out the the relevant data to display in my stack. My next challenge is to be able to store this data so that graphs can be created of power usage over time etc. I already have another system in place using a perl scripted solution which stores the data in a RRD file and enables you to generate historical usage graphs. I would link to an example page but as a new user I am unable to.( see current cost page on my excuse for a website in my sig.)

I would like to do a similar thing within Livecode, so the question is, which method of data storage would be appropriate for this type of application or should I get Livecode to talk an existing RRD file. any thoughts or ideas would be appreciated. Also what is the etiquette for acknowledging where your code has been derived from? I'm very conscious that in the learning process I have been merrily cut and pasting code from other peoples stacks.

Cheers

Colin

Re: Options on storing data

Posted: Fri Feb 17, 2012 1:49 pm
by Klaus
Hi Colin,

you could just write to a file on disk!?
But this depends on the file format of the RRD file.


Best

Klaus

Re: Options on storing data

Posted: Fri Feb 17, 2012 2:07 pm
by colinpartridge
Klaus wrote:Hi Colin,

you could just write to a file on disk!?
But this depends on the file format of the RRD file.

Klaus
Hi Klaus
I'm already doing that with the Perl/RRD solution, which is fine, but I want to translate what the Perl Script does into a Livecode application and I guess I want to know the best way of doing this so that I can analyse the data at a later date

Re: Options on storing data

Posted: Fri Feb 17, 2012 2:22 pm
by Klaus
Hi Colin,

ah, I see, sorry, looks like I misunderstood this completely... 8)


Best

Klaus