From: Jens T. <jen...@ya...> - 2008-11-30 01:35:18
|
I had some time this weekend to play with some more Insteon hardware that I purchased a while back. Everything installed easily and is working. Today I strung Christmas lights and plugged them all into an Insteon outlet so I could just turn them on and off automatically everyday. I have used the web interface to add triggers for my hardware in the past and so I thought I'd do that for this application as well. It didn't work out this time. Perhaps I mis-typed something, but now MH won't load. The errors it spits out are pasted in the message below. Where are the triggers stored when you add them via the web-interface? I'm happy with just going in and deleting what I tried to add today because I created an entry in insteon.pl that should take care of what I'm trying to accomplish. Thanks for your help and Happy Thanksgiving. Jens Torell ________________________________ 11/29/08 07:17:59 PM Oops1: Scalar found where operator expected at (eval 448) line 3061, near "''$Time_Sunset" 11/29/08 07:17:59 PM Oops1: (Missing operator before $Time_Sunset?) 11/29/08 07:17:59 PM Oops1: String found where operator expected at (eval 448) line 3061, near "$Time_Sunset''" 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Error in user code file ./../data/mh_temp.user_code 11/29/08 07:17:59 PM: 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. syntax error at (eval 448) line 3103, near "; }" Line 3096: # name=scan insteon link tables type=NoExpire Line 3097: if ((time_cron '00 02 * * *') and &trigger_active('scan insteon link tables')) { Line 3098: # FYI trigger code: &_get_next_linkscan(); Line 3099: &trigger_run('scan insteon link tables',1); Line 3100: } Line 3101: $Benchmark_Members{'triggers_table'} += &get_tickcount - $benchmark_tickcount if $benchmark_tickcount and $Benchmark_Members{on_off_flag}; Line 3102: Line 3103: } # End of triggers_table#----------------------------------- Line 3104: Line 3105: sub loop_code { Line 3106: |
From: Jim S. <js...@sy...> - 2008-11-30 03:20:02
|
It looks like you have entered a mismatched pair of { and missing } as part of some "if" statement - perhaps in the code you wrote? you can move the module out of your code directory and then try a restart. Or maybe you used a brace in your trigger statement? At any rate the answer to your question is the triggers are in triggers.current in your local data directory eg ~/mymisterhousedirectory/data/triggers.current -----Original Message----- From: Jens Torell [mailto:jen...@ya...] Sent: November 29, 2008 8:35 PM To: MisterHouse Subject: [mh] Messed up trigger crashing MH I had some time this weekend to play with some more Insteon hardware that I purchased a while back. Everything installed easily and is working. Today I strung Christmas lights and plugged them all into an Insteon outlet so I could just turn them on and off automatically everyday. I have used the web interface to add triggers for my hardware in the past and so I thought I'd do that for this application as well. It didn't work out this time. Perhaps I mis-typed something, but now MH won't load. The errors it spits out are pasted in the message below. Where are the triggers stored when you add them via the web-interface? I'm happy with just going in and deleting what I tried to add today because I created an entry in insteon.pl that should take care of what I'm trying to accomplish. Thanks for your help and Happy Thanksgiving. Jens Torell _____ 11/29/08 07:17:59 PM Oops1: Scalar found where operator expected at (eval 448) line 3061, near "''$Time_Sunset" 11/29/08 07:17:59 PM Oops1: (Missing operator before $Time_Sunset?) 11/29/08 07:17:59 PM Oops1: String found where operator expected at (eval 448) line 3061, near "$Time_Sunset''" 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Error in user code file ./../data/mh_temp.user_code 11/29/08 07:17:59 PM: 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. syntax error at (eval 448) line 3103, near "; }" Line 3096: # name=scan insteon link tables type=NoExpire Line 3097: if ((time_cron '00 02 * * *') and &trigger_active('scan insteon link tables')) { Line 3098: # FYI trigger code: &_get_next_linkscan(); Line 3099: &trigger_run('scan insteon link tables',1); Line 3100: } Line 3101: $Benchmark_Members{'triggers_table'} += &get_tickcount - $benchmark_tickcount if $benchmark_tickcount and $Benchmark_Members{on_off_flag}; Line 3102: Line 3103: } # End of triggers_table#----------------------------------- Line 3104: Line 3105: sub loop_code { Line 3106: |
From: Jens T. <jen...@ya...> - 2008-11-30 06:43:38
|
My triggers.current file is actually showing all the old working triggers and nothing new since MH started crashing. I tried to remove that file anyway to see what would happen and I still received the same errors. I dug around in the web directory and found that there is a triggers.pl file there, but it looks like it's just a script to generate the triggers form on the web interface. I can't find any evidence of me actually making a change in any file with "trigger" in the name, but the last thing I did before it crashed was to add a new trigger via the web interface. I hit the "create" button after filling out the form and within a couple seconds MH crashed and gave me the error I mentioned. Jens ________________________________ From: Jim Serack <js...@sy...> To: The main list for the MisterHouse home automation program <mis...@li...> Sent: Saturday, November 29, 2008 9:19:57 PM Subject: Re: [mh] Messed up trigger crashing MH Message It looks like you have entered a mismatched pair of { and missing } as part of some "if" statement - perhaps in the code you wrote? you can move the module out of your code directory and then try a restart. Or maybe you used a brace in your trigger statement? At any rate the answer to your question is the triggers are in triggers.current in your local data directory eg ~/mymisterhousedirectory/data/triggers.current -----Original Message----- From: Jens Torell [mailto:jen...@ya...] Sent: November 29, 2008 8:35 PM To: MisterHouse Subject: [mh] Messed up trigger crashing MH I had some time this weekend to play with some more Insteon hardware that I purchased a while back. Everything installed easily and is working. Today I strung Christmas lights and plugged them all into an Insteon outlet so I could just turn them on and off automatically everyday. I have used the web interface to add triggers for my hardware in the past and so I thought I'd do that for this application as well. It didn't work out this time. Perhaps I mis-typed something, but now MH won't load. The errors it spits out are pasted in the message below. Where are the triggers stored when you add them via the web-interface? I'm happy with just going in and deleting what I tried to add today because I created an entry in insteon.pl that should take care of what I'm trying to accomplish. Thanks for your help and Happy Thanksgiving. Jens Torell ________________________________ 11/29/08 07:17:59 PM Oops1: Scalar found where operator expected at (eval 448) line 3061, near "''$Time_Sunset" 11/29/08 07:17:59 PM Oops1: (Missing operator before $Time_Sunset?) 11/29/08 07:17:59 PM Oops1: String found where operator expected at (eval 448) line 3061, near "$Time_Sunset''" 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Error in user code file ./../data/mh_temp.user_code 11/29/08 07:17:59 PM: 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. syntax error at (eval 448) line 3103, near "; }" Line 3096: # name=scan insteon link tables type=NoExpire Line 3097: if ((time_cron '00 02 * * *') and &trigger_active('scan insteon link tables')) { Line 3098: # FYI trigger code: &_get_next_linkscan(); Line 3099: &trigger_run('scan insteon link tables',1); Line 3100: } Line 3101: $Benchmark_Members{'triggers_table'} += &get_tickcount - $benchmark_tickcount if $benchmark_tickcount and $Benchmark_Members{on_off_flag}; Line 3102: Line 3103: } # End of triggers_table#----------------------------------- Line 3104: Line 3105: sub loop_code { Line 3106: |
From: Jim S. <js...@sy...> - 2008-11-30 15:27:04
|
Can you search the code directories by last changed data and see if you hit something else - even by accident? Sometimes you can make a mistake and it will sit there as a fault until you do a reload of the code for some other reason (like updating the triggers through the web interface) - then you get left looking in the wrong places for problems. The log file also usually contains which files were reloaded along with the triggers so that might give you a hint. -----Original Message----- From: Jens Torell [mailto:jen...@ya...] Sent: November 30, 2008 1:44 AM To: The main list for the MisterHouse home automation program Subject: Re: [mh] Messed up trigger crashing MH My triggers.current file is actually showing all the old working triggers and nothing new since MH started crashing. I tried to remove that file anyway to see what would happen and I still received the same errors. I dug around in the web directory and found that there is a triggers.pl file there, but it looks like it's just a script to generate the triggers form on the web interface. I can't find any evidence of me actually making a change in any file with "trigger" in the name, but the last thing I did before it crashed was to add a new trigger via the web interface. I hit the "create" button after filling out the form and within a couple seconds MH crashed and gave me the error I mentioned. Jens _____ From: Jim Serack <js...@sy...> To: The main list for the MisterHouse home automation program <mis...@li...> Sent: Saturday, November 29, 2008 9:19:57 PM Subject: Re: [mh] Messed up trigger crashing MH It looks like you have entered a mismatched pair of { and missing } as part of some "if" statement - perhaps in the code you wrote? you can move the module out of your code directory and then try a restart. Or maybe you used a brace in your trigger statement? At any rate the answer to your question is the triggers are in triggers.current in your local data directory eg ~/mymisterhousedirectory/data/triggers.current -----Original Message----- From: Jens Torell [mailto:jen...@ya...] Sent: November 29, 2008 8:35 PM To: MisterHouse Subject: [mh] Messed up trigger crashing MH I had some time this weekend to play with some more Insteon hardware that I purchased a while back. Everything installed easily and is working. Today I strung Christmas lights and plugged them all into an Insteon outlet so I could just turn them on and off automatically everyday. I have used the web interface to add triggers for my hardware in the past and so I thought I'd do that for this application as well. It didn't work out this time. Perhaps I mis-typed something, but now MH won't load. The errors it spits out are pasted in the message below. Where are the triggers stored when you add them via the web-interface? I'm happy with just going in and deleting what I tried to add today because I created an entry in insteon.pl that should take care of what I'm trying to accomplish. Thanks for your help and Happy Thanksgiving. Jens Torell _____ 11/29/08 07:17:59 PM Oops1: Scalar found where operator expected at (eval 448) line 3061, near "''$Time_Sunset" 11/29/08 07:17:59 PM Oops1: (Missing operator before $Time_Sunset?) 11/29/08 07:17:59 PM Oops1: String found where operator expected at (eval 448) line 3061, near "$Time_Sunset''" 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Error in user code file ./../data/mh_temp.user_code 11/29/08 07:17:59 PM: 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. syntax error at (eval 448) line 3103, near "; }" Line 3096: # name=scan insteon link tables type=NoExpire Line 3097: if ((time_cron '00 02 * * *') and &trigger_active('scan insteon link tables')) { Line 3098: # FYI trigger code: &_get_next_linkscan(); Line 3099: &trigger_run('scan insteon link tables',1); Line 3100: } Line 3101: $Benchmark_Members{'triggers_table'} += &get_tickcount - $benchmark_tickcount if $benchmark_tickcount and $Benchmark_Members{on_off_flag}; Line 3102: Line 3103: } # End of triggers_table#----------------------------------- Line 3104: Line 3105: sub loop_code { Line 3106: |
From: Jens T. <jen...@ya...> - 2008-11-30 18:45:34
|
I finally found that my "Christmas" trigger was saved in code/triggers.mhp. The file is commented that you should not edit it, but after digging through the files it refers to I couldn't find where they were telling it to save that trigger so I went ahead and deleted the code from triggers.mhp. Everything is back up and running now! Thanks for your comments Jim. It kept me going in the right direction. Jens ________________________________ From: Jim Serack <js...@sy...> To: The main list for the MisterHouse home automation program <mis...@li...> Sent: Sunday, November 30, 2008 9:27:02 AM Subject: Re: [mh] Messed up trigger crashing MH Message Can you search the code directories by last changed data and see if you hit something else - even by accident? Sometimes you can make a mistake and it will sit there as a fault until you do a reload of the code for some other reason (like updating the triggers through the web interface) - then you get left looking in the wrong places for problems. The log file also usually contains which files were reloaded along with the triggers so that might give you a hint. -----Original Message----- From: Jens Torell [mailto:jen...@ya...] Sent: November 30, 2008 1:44 AM To: The main list for the MisterHouse home automation program Subject: Re: [mh] Messed up trigger crashing MH My triggers.current file is actually showing all the old working triggers and nothing new since MH started crashing. I tried to remove that file anyway to see what would happen and I still received the same errors. I dug around in the web directory and found that there is a triggers.pl file there, but it looks like it's just a script to generate the triggers form on the web interface. I can't find any evidence of me actually making a change in any file with "trigger" in the name, but the last thing I did before it crashed was to add a new trigger via the web interface. I hit the "create" button after filling out the form and within a couple seconds MH crashed and gave me the error I mentioned. Jens ________________________________ From: Jim Serack <js...@sy...> To: The main list for the MisterHouse home automation program <mis...@li...> Sent: Saturday, November 29, 2008 9:19:57 PM Subject: Re: [mh] Messed up trigger crashing MH It looks like you have entered a mismatched pair of { and missing } as part of some "if" statement - perhaps in the code you wrote? you can move the module out of your code directory and then try a restart. Or maybe you used a brace in your trigger statement? At any rate the answer to your question is the triggers are in triggers.current in your local data directory eg ~/mymisterhousedirectory/data/triggers.current -----Original Message----- From: Jens Torell [mailto:jen...@ya...] Sent: November 29, 2008 8:35 PM To: MisterHouse Subject: [mh] Messed up trigger crashing MH I had some time this weekend to play with some more Insteon hardware that I purchased a while back. Everything installed easily and is working. Today I strung Christmas lights and plugged them all into an Insteon outlet so I could just turn them on and off automatically everyday. I have used the web interface to add triggers for my hardware in the past and so I thought I'd do that for this application as well. It didn't work out this time. Perhaps I mis-typed something, but now MH won't load. The errors it spits out are pasted in the message below. Where are the triggers stored when you add them via the web-interface? I'm happy with just going in and deleting what I tried to add today because I created an entry in insteon.pl that should take care of what I'm trying to accomplish. Thanks for your help and Happy Thanksgiving. Jens Torell ________________________________ 11/29/08 07:17:59 PM Oops1: Scalar found where operator expected at (eval 448) line 3061, near "''$Time_Sunset" 11/29/08 07:17:59 PM Oops1: (Missing operator before $Time_Sunset?) 11/29/08 07:17:59 PM Oops1: String found where operator expected at (eval 448) line 3061, near "$Time_Sunset''" 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Error in user code file ./../data/mh_temp.user_code 11/29/08 07:17:59 PM: 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. syntax error at (eval 448) line 3103, near "; }" Line 3096: # name=scan insteon link tables type=NoExpire Line 3097: if ((time_cron '00 02 * * *') and &trigger_active('scan insteon link tables')) { Line 3098: # FYI trigger code: &_get_next_linkscan(); Line 3099: &trigger_run('scan insteon link tables',1); Line 3100: } Line 3101: $Benchmark_Members{'triggers_table'} += &get_tickcount - $benchmark_tickcount if $benchmark_tickcount and $Benchmark_Members{on_off_flag}; Line 3102: Line 3103: } # End of triggers_table#----------------------------------- Line 3104: Line 3105: sub loop_code { Line 3106: |
From: David N. <dno...@ya...> - 2009-01-12 22:30:37
|
MessageI know this thread is more than a month old, but this is a problem that has bothered me for a while and I finally did something about it. I just committed the following changes to svn: Updated the triggers facility (including changes to the triggers library file and web interface) to do an eval on the trigger, and disable it if there is a syntax error. The web interface will display the error message, so it can be easily fixed. Before this change, it was very difficult to recover from a typo entered into the web interface. One problem that remains is if a trigger event references a subroutine or variable defined elsewhere, and that definition is removed, Misterhouse will not start. This would be avoided if the triggers were all verified at startup. Please let me know if there are any other holes that could cause Misterhouse to not start. I'm sure many of you have entered a typo into the triggers web page, like Jens did, and later had to spend a long time undoing it. Hopefully, these changes will make triggers much more robust. David ----- Original Message ----- From: Jens Torell To: The main list for the MisterHouse home automation program Sent: Sunday, November 30, 2008 10:45 AM Subject: Re: [mh] Messed up trigger crashing MH I finally found that my "Christmas" trigger was saved in code/triggers.mhp. The file is commented that you should not edit it, but after digging through the files it refers to I couldn't find where they were telling it to save that trigger so I went ahead and deleted the code from triggers.mhp. Everything is back up and running now! Thanks for your comments Jim. It kept me going in the right direction. Jens ------------------------------------------------------------------------------ From: Jim Serack <js...@sy...> To: The main list for the MisterHouse home automation program <mis...@li...> Sent: Sunday, November 30, 2008 9:27:02 AM Subject: Re: [mh] Messed up trigger crashing MH Can you search the code directories by last changed data and see if you hit something else - even by accident? Sometimes you can make a mistake and it will sit there as a fault until you do a reload of the code for some other reason (like updating the triggers through the web interface) - then you get left looking in the wrong places for problems. The log file also usually contains which files were reloaded along with the triggers so that might give you a hint. -----Original Message----- From: Jens Torell [mailto:jen...@ya...] Sent: November 30, 2008 1:44 AM To: The main list for the MisterHouse home automation program Subject: Re: [mh] Messed up trigger crashing MH My triggers.current file is actually showing all the old working triggers and nothing new since MH started crashing. I tried to remove that file anyway to see what would happen and I still received the same errors. I dug around in the web directory and found that there is a triggers.pl file there, but it looks like it's just a script to generate the triggers form on the web interface. I can't find any evidence of me actually making a change in any file with "trigger" in the name, but the last thing I did before it crashed was to add a new trigger via the web interface. I hit the "create" button after filling out the form and within a couple seconds MH crashed and gave me the error I mentioned. Jens ---------------------------------------------------------------------------- From: Jim Serack <js...@sy...> To: The main list for the MisterHouse home automation program <mis...@li...> Sent: Saturday, November 29, 2008 9:19:57 PM Subject: Re: [mh] Messed up trigger crashing MH It looks like you have entered a mismatched pair of { and missing } as part of some "if" statement - perhaps in the code you wrote? you can move the module out of your code directory and then try a restart. Or maybe you used a brace in your trigger statement? At any rate the answer to your question is the triggers are in triggers.current in your local data directory eg ~/mymisterhousedirectory/data/triggers.current -----Original Message----- From: Jens Torell [mailto:jen...@ya...] Sent: November 29, 2008 8:35 PM To: MisterHouse Subject: [mh] Messed up trigger crashing MH I had some time this weekend to play with some more Insteon hardware that I purchased a while back. Everything installed easily and is working. Today I strung Christmas lights and plugged them all into an Insteon outlet so I could just turn them on and off automatically everyday. I have used the web interface to add triggers for my hardware in the past and so I thought I'd do that for this application as well. It didn't work out this time. Perhaps I mis-typed something, but now MH won't load. The errors it spits out are pasted in the message below. Where are the triggers stored when you add them via the web-interface? I'm happy with just going in and deleting what I tried to add today because I created an entry in insteon.pl that should take care of what I'm trying to accomplish. Thanks for your help and Happy Thanksgiving. Jens Torell -------------------------------------------------------------------------- 11/29/08 07:17:59 PM Oops1: Scalar found where operator expected at (eval 448) line 3061, near "''$Time_Sunset" 11/29/08 07:17:59 PM Oops1: (Missing operator before $Time_Sunset?) 11/29/08 07:17:59 PM Oops1: String found where operator expected at (eval 448) line 3061, near "$Time_Sunset''" 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Error in user code file ./../data/mh_temp.user_code 11/29/08 07:17:59 PM: 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. syntax error at (eval 448) line 3103, near "; }" Line 3096: # name=scan insteon link tables type=NoExpire Line 3097: if ((time_cron '00 02 * * *') and &trigger_active('scan insteon link tables')) { Line 3098: # FYI trigger code: &_get_next_linkscan(); Line 3099: &trigger_run('scan insteon link tables',1); Line 3100: } Line 3101: $Benchmark_Members{'triggers_table'} += &get_tickcount - $benchmark_tickcount if $benchmark_tickcount and $Benchmark_Members{on_off_flag}; Line 3102: Line 3103: } # End of triggers_table#----------------------------------- Line 3104: Line 3105: sub loop_code { Line 3106: ------------------------------------------------------------------------------ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ------------------------------------------------------------------------------ ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |
From: Jens T. <jen...@ya...> - 2009-01-12 22:45:27
|
Thank you! I'll update and play around with the triggers again. Jens ________________________________ From: David Norwood <dno...@ya...> To: The main list for the MisterHouse home automation program <mis...@li...> Sent: Monday, January 12, 2009 4:30:29 PM Subject: Re: [mh] Messed up trigger crashing MH Message I know this thread is more than a month old, but this is a problem that has bothered me for a while and I finally did something about it. I just committed the following changes to svn: Updated the triggers facility (including changes to the triggers library file and web interface) to do an eval on the trigger, and disable it if there is a syntax error. The web interface will display the error message, so it can be easily fixed. Before this change, it was very difficult to recover from a typo entered into the web interface. One problem that remains is if a trigger event references a subroutine or variable defined elsewhere, and that definition is removed, Misterhouse will not start. This would be avoided if the triggers were all verified at startup. Please let me know if there are any other holes that could cause Misterhouse to not start. I'm sure many of you have entered a typo into the triggers web page, like Jens did, and later had to spend a long time undoing it. Hopefully, these changes will make triggers much more robust. David ----- Original Message ----- From: Jens Torell To: The main list for the MisterHouse home automation program Sent: Sunday, November 30, 2008 10:45 AM Subject: Re: [mh] Messed up trigger crashing MH I finally found that my "Christmas" trigger was saved in code/triggers.mhp. The file is commented that you should not edit it, but after digging through the files it refers to I couldn't find where they were telling it to save that trigger so I went ahead and deleted the code from triggers.mhp. Everything is back up and running now! Thanks for your comments Jim. It kept me going in the right direction. Jens ________________________________ From: Jim Serack <js...@sy...> To: The main list for the MisterHouse home automation program <mis...@li...> Sent: Sunday, November 30, 2008 9:27:02 AM Subject: Re: [mh] Messed up trigger crashing MH Can you search the code directories by last changed data and see if you hit something else - even by accident? Sometimes you can make a mistake and it will sit there as a fault until you do a reload of the code for some other reason (like updating the triggers through the web interface) - then you get left looking in the wrong places for problems. The log file also usually contains which files were reloaded along with the triggers so that might give you a hint. -----Original Message----- From: Jens Torell [mailto:jen...@ya...] Sent: November 30, 2008 1:44 AM To: The main list for the MisterHouse home automation program Subject: Re: [mh] Messed up trigger crashing MH My triggers.current file is actually showing all the old working triggers and nothing new since MH started crashing. I tried to remove that file anyway to see what would happen and I still received the same errors. I dug around in the web directory and found that there is a triggers.pl file there, but it looks like it's just a script to generate the triggers form on the web interface. I can't find any evidence of me actually making a change in any file with "trigger" in the name, but the last thing I did before it crashed was to add a new trigger via the web interface. I hit the "create" button after filling out the form and within a couple seconds MH crashed and gave me the error I mentioned. Jens ________________________________ From: Jim Serack <js...@sy...> To: The main list for the MisterHouse home automation program <mis...@li...> Sent: Saturday, November 29, 2008 9:19:57 PM Subject: Re: [mh] Messed up trigger crashing MH It looks like you have entered a mismatched pair of { and missing } as part of some "if" statement - perhaps in the code you wrote? you can move the module out of your code directory and then try a restart. Or maybe you used a brace in your trigger statement? At any rate the answer to your question is the triggers are in triggers.current in your local data directory eg ~/mymisterhousedirectory/data/triggers.current -----Original Message----- From: Jens Torell [mailto:jen...@ya...] Sent: November 29, 2008 8:35 PM To: MisterHouse Subject: [mh] Messed up trigger crashing MH I had some time this weekend to play with some more Insteon hardware that I purchased a while back. Everything installed easily and is working. Today I strung Christmas lights and plugged them all into an Insteon outlet so I could just turn them on and off automatically everyday. I have used the web interface to add triggers for my hardware in the past and so I thought I'd do that for this application as well. It didn't work out this time. Perhaps I mis-typed something, but now MH won't load. The errors it spits out are pasted in the message below. Where are the triggers stored when you add them via the web-interface? I'm happy with just going in and deleting what I tried to add today because I created an entry in insteon.pl that should take care of what I'm trying to accomplish. Thanks for your help and Happy Thanksgiving. Jens Torell ________________________________ 11/29/08 07:17:59 PM Oops1: Scalar found where operator expected at (eval 448) line 3061, near "''$Time_Sunset" 11/29/08 07:17:59 PM Oops1: (Missing operator before $Time_Sunset?) 11/29/08 07:17:59 PM Oops1: String found where operator expected at (eval 448) line 3061, near "$Time_Sunset''" 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Error in user code file ./../data/mh_temp.user_code 11/29/08 07:17:59 PM: 11/29/08 07:17:59 PM Oops1: (Missing operator before ''?) Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. Global symbol "$benchmark_tickcount" requires explicit package name at (eval 448) line 3101. syntax error at (eval 448) line 3103, near "; }" Line 3096: # name=scan insteon link tables type=NoExpire Line 3097: if ((time_cron '00 02 * * *') and &trigger_active('scan insteon link tables')) { Line 3098: # FYI trigger code: &_get_next_linkscan(); Line 3099: &trigger_run('scan insteon link tables',1); Line 3100: } Line 3101: $Benchmark_Members{'triggers_table'} += &get_tickcount - $benchmark_tickcount if $benchmark_tickcount and $Benchmark_Members{on_off_flag}; Line 3102: Line 3103: } # End of triggers_table#----------------------------------- Line 3104: Line 3105: sub loop_code { Line 3106: ________________________________ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ________________________________ ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |