Announcement

Collapse
No announcement yet.

Loto Script feature request

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

    Loto Script feature request

    Hi Jon

    Just a wee rquest here, which is a nice to have - nothing deadly!

    Could your next update of the script (whenever that may be) include setting the last change field?

    Ta

    DJ

    PS - hope you like your well deserved new home!
    ---------------------------------------------------http://weather.penicuik.org

    #2
    Hi David,

    I have not gone into Jon's script, but to get it to update the last change from memory all that is required is
    Code:
    ,true
    after it updates the device.

    Just wondering why you wish this as it tells you the date of the result?

    Take care,
    sigpic
    A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"

    Comment


      #3
      Hi Gogs.... good to hear from you!

      Where did you "stick" the ,true?

      Is it in the event parameters?

      DJ
      ---------------------------------------------------http://weather.penicuik.org

      Comment


        #4
        Hi David,

        the normal syntax in a script would be something like this,
        Code:
        [COLOR=#000000][COLOR=black]hs.SetDeviceString "A1", "Motion Detected", True[/COLOR][/COLOR]

        The line in Jon's VB script is about 10 from the end .
        Code:
        hs.SetDeviceString (HC, HTMLString)

        However, I tried altering that string and could not get it to work.

        I think we have to wait for Jon to respond on this one.
        sigpic
        A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"

        Comment


          #5
          Hi Gogs...

          I had assumed it was a parameter to be passed to the script, not within it.

          Lets see what Jon says....

          OOI, does your update the last ran detail?

          DJ
          ---------------------------------------------------http://weather.penicuik.org

          Comment


            #6
            Sorry for the delay.

            Find:

            hs.SetDeviceString (HC, HTMLString)

            After this line just add:

            hs.SetDeviceLastChange (HC,now())

            Happy New Year to all!
            Jon

            Comment


              #7
              Thanks Jon,

              I would never have got worked that one out.

              There you go David.

              Have a good New Year, all of you.
              sigpic
              A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"

              Comment


                #8
                Thanks Jon.... much appreciated.

                Gogs - you are right!

                DJ
                ---------------------------------------------------http://weather.penicuik.org

                Comment

                Working...
                X