Announcement

Collapse
No announcement yet.

How do i change the "A:ok.gif" to "Aok.gif"

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

    How do i change the "A:ok.gif" to "Aok.gif"

    I want to show my RCS Thermostat on my floorplan. I can't because the thermostat reports the status with
    PHP Code:
    A:ok 
    . I can't save a gif with the colon in the filename.

    Where do i go to make the thermostat report anything i want it to?

    Is there a script, a file, or is it hardcoded?
    Last edited by Rupp; January 7, 2007, 06:32 PM.

    #2
    Which themostat are you using? You could always process the colon out using something like.
    Code:
    sVal = "A:Ok"
    r = replace(sval,":")
    After processing r will equal AOK
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Originally posted by Rupp View Post
      Which themostat are you using? You could always process the colon out using something like.
      Code:
      sVal = "A:Ok"
      r = replace(sval,":")
      After processing r will equal AOK

      Its a txb16. But where do i make the sVal comment. Which file?

      Comment


        #4
        I would think you could do this within the UltraStatus processing.
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          The device string processing is in a function called BuildIcon() in the C:\Program Files\HomeSeer 2\html\ultraview2\ultraview2_common.txt file. Just add a new call to strip() as follows:

          PHP Code:
          '
          Remove unwanted characters
          '
          strIcon = Strip(strIcon, ":", "")
          strIcon = Strip(strIcon, "°.*|degrees|\s", "")
          strIcon = Strip(strIcon, "\([^\)]*\)", "") 
          You could also do a replace a Rupp indicated in that same function instead of using the Strip function.

          Regards,
          Ultrajones
          Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR

          Comment


            #6
            Originally posted by Ultrajones View Post
            The device string processing is in a function called BuildIcon() in the C:\Program Files\HomeSeer 2\html\ultraview2\ultraview2_common.txt file. Just add a new call to strip() as follows:

            PHP Code:
            '
            Remove unwanted characters
            '
            strIcon = Strip(strIcon, ":", "")
            strIcon = Strip(strIcon, ".*|degrees|\s", "")
            strIcon = Strip(strIcon, "\([^\)]*\)", "") 
            You could also do a replace a Rupp indicated in that same function instead of using the Strip function.

            Regards,
            Ultrajones
            That did it Ultra. Thanks again!

            Comment

            Working...
            X