Announcement

Collapse
No announcement yet.

Shutdown script doesn't run

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

    Shutdown script doesn't run

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

    Thanks
    Marcel

    #2
    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.

    Comment


      #3
      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.
      💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

      Comment


        #4
        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

        Comment


          #5
          What's in HomeseerShutdown.txt?
          💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

          Comment


            #6
            sub main()

            dim hsg

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


            end sub

            Comment


              #7
              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"
              💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

              Comment


                #8
                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

                Comment


                  #9
                  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

                  Comment


                    #10
                    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

                    Comment


                      #11
                      The speaking needs to be the first thing if you want it spoken.
                      💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                      Comment


                        #12
                        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.
                        sigpic
                        A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"

                        Comment

                        Working...
                        X