Re: [ALUG] Best way to code a linux comms daemon
On 09/01/13 09:30:13, Mark Rogers wrote:
On 8 January 2013 09:43, Barry Samuels <bjsamuels@beenthere-donethat.org.uk>wrote:
I also use the Python-based interface written by Dale Lane. I have to run that 3 times every 24 hours to store data for the bar graphs and don't understand Python enough to be able to modify it to run unattended. Yes I know that there is an option to 'stay connected' but I don't want it running all the time just long enough to collect 24 hours worth of data.
Cheers, I'll take a look at Dale's code, I've been using "measureit": http://code.google.com/p/measureit/
I thought that I would, at least, express an interest.
Thanks, it was awful quiet out there!
Measureit looks interesting but appears to be for the Envi and Envir models only and mine is older than that. Pity. Some of my posts haven't appeared on the list and I haven't had a copy back but I've just realised why. I think I've been clicking 'Reply' instead of 'Reply to group' so some posts went directly to the poster instead of to the group. Apologies to those affected and old age means it can only get worse. :(( -- Barry Samuels http://www.beenthere-donethat.org.uk The Unofficial Guide to Great Britain
On 9 January 2013 10:17, Barry Samuels <bjsamuels@beenthere-donethat.org.uk> wrote:
Measureit looks interesting but appears to be for the Envi and Envir models only and mine is older than that. Pity.
From my limited investigations I don't think they're actually that different. They both present data in XML chunks over a serial connection, but there are differences between versions in baud rates and possibly XML schema. One of the issues of all the code I've looked at is that the XML is not treated as XML but as a string to be pattern matched using regular expressions, which is fine but not very robust when something gets added to the XML or swapped around, even if the bit you want is still there with the same name it always had before. So it might be that a bit of regex tweaking will be needed as well.
Some of my posts haven't appeared on the list and I haven't had a copy back but I've just realised why. I think I've been clicking 'Reply' instead of 'Reply to group' so some posts went directly to the poster instead of to the group. Apologies to those affected and old age means it can only get worse. :((
That might be partly my fault: I think I may have done a reply-all but had my reply to the list blocked for suspicious headers (damn Gmail and it's inability to set the default to plain text for certain recipients). -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG
participants (2)
-
Barry Samuels -
Mark Rogers