On Sun, Aug 28, 2011 at 12:27:03PM -0500, Joel Davidson wrote:
> On Sun, 28 Aug 2011, it would appear that Marc MERLIN wrote:
> > On Sun, Aug 28, 2011 at 09:54:14AM -0700, Marc MERLIN wrote:
> >> Problem is that hashes I have defined in my code, including %Weather,
> >> seem to get garbage or at least other values in them.
> > Ok, maybe it's not that simple.
> > Ignore what I said for now, I need to look into the code some more.
> > Sorry for the premature post.
> > Marc
> No worries. Sometimes talking about an issue is the best way to
> see the solution. Sometimes...
I usually catch it before I hit send though :)
> With respect to the Omnistat code crashing, perhaps when it gets
> the error you mentioned, rather than dying it ought to flush the
> receive buffer and resend the command? When I originally got it
> working I think I put some retries in but it's been a while since
> then and I know the code has been changed and cleaned up alot since
> then. I haven't seen the same problem here, but then I'm just
> running with 1 rc-80 and don't talk to the thermostat very often.
Basically the code would need a fair amount of work to deal with all unexpected
For instance if I get a temperature of -40 which I know is wrong, the code
Not dying would mean having a different interface that returns a
success/fail and modifying every single caller to deal with it.
That's just one of them but basically die was the easiest way to deal with
the unexpected issues without changing a lot of calling code in multiple
In my case, I do talk to both my stats every minute, so it's a lot more
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/