There are certainly packages for Mongo, Redis and BDB in the 14.04 repositories (haven't checked earlier). And something called WhiteDB which claims to be a lightweight NoSQL library.
YAML might also work for you as a self describing data format
On 29 September 2014 15:06, Chris Green cl@isbd.net wrote:
On Mon, Sep 29, 2014 at 02:44:58PM +0100, Ewan Slater wrote:
Hi Chris,
Would the data have any value to you if it wasn't timestamped?
No, not really, it's the trends in battery voltage etc. which are important.
Is there any way of getting the file created with a self describing format like JSON or XML, so you know by looking at the file what each value represents?
I can create it in whatever format I want as it's a Python (just my preferred language) script that creates it. I prefer something as human readable as possible though so I'm not all *that* keen on XML, it does seem to be flavour of the moment though.
I've just had a harder look at JSON (I've never really investigated it before) and that actually looks quite sensible, I can understand it without having to think too hard so writing my data in JSON format seems like a good idea to me. Thanks for that suggestion.
I'd be tempted to look at a NoSQL database since these have a more flexible schema and are a lot less bothered about some records having different structure to others.
There's not much in the way of lightweight (or any!) NoSQL databases in the Ubuntu repositories, I'm not keen on going outside if I can avoid it.
I think in reality just using JSON to transfer the data will give me the structure I need.
-- Chris Green
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!