Announcement

Collapse
No announcement yet.

Shutdown script doesn't run

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Gogs
    replied
    I don't have anything of interest in my shutdown script, homeseer just says a couple of things, but I did play about with it a while back. One thing I noticed was that HS would process the script and could shutdown before all the commands in the script had finnished running.

    Leave a comment:


  • Rupp
    replied
    The speaking needs to be the first thing if you want it spoken.

    Leave a comment:


  • MdeMan
    replied
    Homeseer is calling the script, see below:

    5/19/2005 4:17:55 PM~!~Info~!~Application shutdown now...
    5/19/2005 4:17:55 PM~!~shutdown script~!~Im in the shutdown script
    5/19/2005 4:17:56 PM~!~hsGirder~!~TCP Server Shutdown complete 1050
    5/19/2005 4:17:56 PM~!~hsGirder~!~hsGirder Shutdown complete
    5/19/2005 4:17:56 PM~!~Is Speaking~!~Is Speaking Plugin Shutting Down. Goodbye.
    5/19/2005 4:17:56 PM~!~Info~!~Web Server stopped

    Thanks for you help, I had a typo in my ccf file so it never updated my status field. For speaking I guess that the homeseer is speaking plugin is already shutdown before homeseer speaks.

    Best Regards
    Marcel

    Leave a comment:


  • George
    replied
    Marcel,

    Just to make sure, because you didn't specify. It is called 'shutdown.txt' and in the scripts directory?

    Did you try putting a:

    hs.writelog "shutdown script", "Im in the shutdown script"

    statement at the top to see if it's even getting called. If it is not then I'd say it's an HS bug.

    George

    Leave a comment:


  • MdeMan
    replied
    Tried it, sorry but still the same:

    5/19/2005 3:15:18 PM~!~Info~!~Application shutdown now...
    5/19/2005 3:15:19 PM~!~hsGirder~!~TCP Server Shutdown complete 1050
    5/19/2005 3:15:19 PM~!~hsGirder~!~hsGirder Shutdown complete
    5/19/2005 3:15:19 PM~!~Is Speaking~!~Is Speaking Plugin Shutting Down. Goodbye.
    5/19/2005 3:15:19 PM~!~Info~!~Web Server stopped

    Any other suggestions?

    Marcel

    Leave a comment:


  • Rupp
    replied
    Try putting this directly in the shutdown script rather than in a script.

    Set hsg = hs.GetPlugins("hsGirder") ' get addressability to the plugin
    hsg.NetRemote_Send "Set","HS.LinkActive","0"

    Leave a comment:


  • MdeMan
    replied
    sub main()

    dim hsg

    Set hsg = hs.GetPlugins("hsGirder") ' get addressability to the plugin
    hsg.NetRemote_Send "Set","HS.LinkActive","0"


    end sub

    Leave a comment:


  • Rupp
    replied
    What's in HomeseerShutdown.txt?

    Leave a comment:


  • MdeMan
    replied
    This is the first time I'm trying to use the shutdown script.
    The ah.log file says:

    5/19/2005 11:35:45 AM~!~Info~!~Device update complete
    5/19/2005 11:36:58 AM~!~Info~!~Application shutdown now...
    5/19/2005 11:36:58 AM~!~hsGirder~!~TCP Server Shutdown complete 1050
    5/19/2005 11:36:58 AM~!~hsGirder~!~hsGirder Shutdown complete
    5/19/2005 11:36:58 AM~!~Is Speaking~!~Is Speaking Plugin Shutting Down. Goodbye.
    5/19/2005 11:36:58 AM~!~Info~!~Web Server stopped

    My script:

    sub main()

    hs.run "HomeseerShutdown.txt"
    hs.speak "Homeseer is shutting down", TRUE

    end sub

    Leave a comment:


  • Rupp
    replied
    Are any errors being written to the HS log file? My guess is there's invalid code in the file which makes it apper not to run.

    Leave a comment:


  • Kyham
    Guest replied
    Has it ever worked?

    Is this something that just started to fail or has it never worked?

    If it was working and stopped, did you update HS?

    I have a script that has been running for a long time and now it fails. Only thing I did was to upgrade HS.

    Leave a comment:


  • MdeMan
    started a topic Shutdown script doesn't run

    Shutdown script doesn't run

    I noticed that my shutdown script doesn't run when I shutdown HS.
    Anyone any suggestions why??

    Thanks
    Marcel
Working...
X