Re: [mh] misterhouse-users Digest, Vol 160, Issue 6
Dean Junk <[email protected]>
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <DM6PR15MB341723D84EE3591F0EF2E6A1D1240@DM6PR15MB3417.namprd15.prod.outlook.com> |
Thanks for the reply, but it wasn't that line that caused the issue. I
used that line to debug the issue so it was the only code being read
from my user code. It worked OK. The actual issue is the MHT definition:
X10A, K6, Sunup_Sunset, Time, PLM
I think it having a group named Time that was causing it. By leaving
that line in the MHT file, the time in misterhouse never changed.
Thanks again.
On 12/29/19 7:16 AM, Richard F wrote:
> A couple of observations...
>
> new_minute expects a parameter, newer versions of Perl may be stricter.
> Though mh code for new_minute looks OK, may behave differently because
> code is in an mht file so gets pre-processed at startup.
>
> I fixed several issues throwing warnings with Perl 5.26, most commonly
> "defined" not required in lines like this
>
> elsif (defined %{$key}) {
>
> NOW elsif ( %{$key}) {
>
> Run MH in a terminal to see the warnings/errors, and search your
> codebase for the above construct, I found 4 or 5. But FYI with above
> fixes my ancient 2.104 mh runs fine (in fact best ever / lowest CPU) on
> my Leap 15.1 system (Perl 5.26). One day I will sync it to git, but
> that's a bit of a project given my customisations...
>
> Richard
>
>
> On 28/12/2019 12:34, [email protected] wrote:
>> Figured it out after eliminating everything from my user directories
>> and narrowed it down to my mht file. The following line is causing the
>> issue:
>>
>> X10A, K6, Sunup_Sunset,
>> Time, PLM
>>
>> The only user file I left contained one line -> print_log("*** Dean
>> *** A new minute!") if new_minute;
>>
>> Comment the line out and everything works as expected.
>>
>> The other thing I saw when debugging this issue is that if you clean
>> everything out of the data directory, the initial scan of insteon
>> items is skipped.
>>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users