Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Gregg Liming <gregg@li...> - 2007-11-27 22:51:00
|
Quoting Scott Crawford (11/27/07 5:15 PM): > Gregg, > Thanks for your help. > Details details...I moved stuff around in different paths until I saw > how everyone seems to want the structure to be. > I fixed my ini spec'd lib_dir, now pointing to > /autmation/misterhouse/mh/lib. This is the lib directory from the mh > distribution, not a private dir. Is the lib_dir in my mh.private.ini > (the only ini file I'm using) necessary, only if you--for some reason--need to have an ability to separate libs that you are personally developing/working on from the main mh lib (tree). > or does MH know where it's libs > are? It does. Given your question, I would comment out that ini entry until you discover a need to keep things separate. > Still looks the same. That's not good. Let's confirm a few things... > [root@... bin]# ./mh [... snip ...] > Error in file_dir_read, can not open directory: ./../code_common. No > such file or directory I doubt it's related, but you should resolve the above at some point. > Tuesday, 11/27/07 05:15 PM Reading 1 .mht table files: insteon.mht > Tuesday, 11/27/07 05:15 PM Translating insteon.mht -> > /automation/misterhouse/scott/insteon.mhp > Tuesday, 11/27/07 05:15 PM Initialized read_table_A.pl > Reading code_dirs: /automation/misterhouse/scott ./../code_common > > > Error, can not open directory ./../code_common. > > Tuesday, 11/27/07 05:15 PM Reading 6 code files > Tuesday, 11/27/07 05:15 PM Evaluating user code > Tuesday, 11/27/07 05:15 PM [Insteon_PLM] setting default xmit delay to: > 0.25 > Tuesday, 11/27/07 05:15 PM [Insteon_PLM] setting x10 xmit delay to: 0.5 > > Error in user code file /automation/misterhouse/data/mh_temp.user_code > > Tuesday, 11/27/07 05:15 PM: Can't locate object method "new" via > package "Insteon_Device" at (eval 440) line 14. > Line 9: > Line 10: # List of Insteon_Device objects > Line 11: use vars qw($desk_lamp); > Line 12: > Line 13: $myPLM = new > Insteon_PLM('Insteon_PLM'); So, it's fully happy with your "myPLM" reference in insteon.mht. However, it doesn't like the following. Is $desk_lamp also defined in insteon.mht? If so, can you provide the portion of insteon.mht that includes both myPLM and desk_lamp? > Line 14: $desk_lamp = new Insteon_Device($myPLM,"0A.96.98"); FWIW: My items.mhp contains the Insteon device wrapped by single quotes vice double quotes--that's making me suspicious of how desk_lamp is being created. If it is outside of one of your *.mht files and is separately defined, they you *must* have the following line in the *.pl file (toward the top) since the automatic "use" only occurs when parsing mht files: use Insteon_Device; Gregg |