From: Joel D. <jr...@io...> - 2005-12-15 18:28:34
|
Chuck- Thanks for the pointer to that web page. It explains a few things, though when I tried moving some stuff around this morning I wasn't successful in making the error go away. If you comment out the calls to both display and set_time, the code starts with no errors, so for now I'd suggest you do that, and then add the display call to the if startup/reload/new_day clause that I'm using. That should resolve the issue for now, even if it's not real pretty. I'll keep working on trying to understand what else needs to be changed. If you'd like, for now keep sending me your changes and I'll try to incorporate them into the code and before the next release we can get an updated and cleaned up copy to Bruce. Joel On Wed, 14 Dec 2005, it would appear that Chuck wrote: > Joel, > > In my last note I said the following was working: > > >I did some investigation and got the following to work: if ($mode == >"0x03") instead of if ($mode == 3). There's probably a better solution, but this >worked. This change is needed for the $mode and $fan tests. > > Well, I thought it worked, guess I should have tested further. The following pattern works for $mode, $fan, and $hold: > if ($mode =~ /0$/) { $mode = 'off'; } > if ($mode =~ /1$/) { $mode = 'off'; } > etc... > > My thermostat status page now shows the same values as the stat, and I can change heat temp, cool temp, mode, and fan. > > I looked at the addressing problem in your new code. I found the following reference: http://www.troubleshooters.com/codecorn/littperl/perlfuncorder.htm > which describes the problem I think we see in your code. It seems to be saying that the order of the subroutines needs to be changed, but I don't know enough yet to figure out the right order. It's got me stumped, but considering I have a total of about 1 week of Perl experience, that's saying very little. I think I'll move on to the web interface for the setback schedule while we wait for an answer on the addressing problem. > > Chuck > > -- Joel Davidson Austin, TX jr...@io... |