Re: [mh] misterhouse-users Digest, Vol 160, Issue 6

Richard F <[email protected]>
Newsgroups gmane.comp.misc.misterhouse.user
Organization Keynet Technology
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.