Options on storing data

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
colinpartridge
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9
Joined: Sat Jan 28, 2012 1:25 pm

Options on storing data

Post by colinpartridge » Fri Feb 17, 2012 1:41 pm

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

Klaus
Posts: 14196
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Options on storing data

Post by Klaus » Fri Feb 17, 2012 1:49 pm

Hi Colin,

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


Best

Klaus

colinpartridge
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9
Joined: Sat Jan 28, 2012 1:25 pm

Re: Options on storing data

Post by colinpartridge » Fri Feb 17, 2012 2:07 pm

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
Last edited by colinpartridge on Fri Feb 17, 2012 2:29 pm, edited 1 time in total.

Klaus
Posts: 14196
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Options on storing data

Post by Klaus » Fri Feb 17, 2012 2:22 pm

Hi Colin,

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


Best

Klaus

Post Reply