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
Options on storing data
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 9
- Joined: Sat Jan 28, 2012 1:25 pm
Re: Options on storing data
Hi Colin,
you could just write to a file on disk!?
But this depends on the file format of the RRD file.
Best
Klaus
you could just write to a file on disk!?
But this depends on the file format of the RRD file.
Best
Klaus
-
- Livecode Opensource Backer
- Posts: 9
- Joined: Sat Jan 28, 2012 1:25 pm
Re: Options on storing data
Hi KlausKlaus wrote:Hi Colin,
you could just write to a file on disk!?
But this depends on the file format of the RRD file.
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
Last edited by colinpartridge on Fri Feb 17, 2012 2:29 pm, edited 1 time in total.
Re: Options on storing data
Hi Colin,
ah, I see, sorry, looks like I misunderstood this completely...
Best
Klaus
ah, I see, sorry, looks like I misunderstood this completely...

Best
Klaus