Announcement

Collapse
No announcement yet.

Entering date into a string

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

    Entering date into a string

    Spud another great plugin that I found very useful.
    Quick question, I'm trying to update a device with the $date variable, unfortunately the $date is giving me the full date, would it be possible to format it as 03/04/2020 instead of Wednesday, March 04 2020?

    On the same subject, how would I update a device string by taking the "Last update" field from another device?

    Thanks

    #2
    unfortunately this is not something I control at the level plugin, it is handled by HS as any other replacement variable, see https://help.homeseer.com/help/HS3/s...ment_variables

    underneath it may use your windows regional settings to format the date string, so you may try to change these to see if they have any effect.

    Regarding updating a device string by taking the "Last update" field from another device, I don't think it is possible without any scripting.

    Comment


      #3
      Thank you Spud

      Comment


        #4
        Originally posted by alphatech View Post

        On the same subject, how would I update a device string by taking the "Last update" field from another device?
        You could do it like this using the replacement variables $time and $date:

        Click image for larger version

Name:	change_string.png
Views:	126
Size:	23.7 KB
ID:	1368028

        That will display your device string like this:

        Click image for larger version

Name:	string_example.png
Views:	100
Size:	9.5 KB
ID:	1368029

        That what you're looking for??

        --Barry

        Comment


          #5
          If you know anything about Node-RED and the plugin Big5, I can show you how to format the string to look like any of these using a Date/Time Formatter Node:

          Click image for larger version

Name:	I.png
Views:	136
Size:	8.3 KB
ID:	1368046
          Click image for larger version

Name:	II.png
Views:	104
Size:	8.3 KB
ID:	1368047
          Click image for larger version

Name:	III.png
Views:	102
Size:	8.3 KB
ID:	1368048
          Click image for larger version

Name:	IIII.png
Views:	103
Size:	8.5 KB
ID:	1368049
          Click image for larger version

Name:	date.png
Views:	109
Size:	11.4 KB
ID:	1368050
          Click image for larger version

Name:	FromNow.png
Views:	104
Size:	8.6 KB
ID:	1368051
          Click image for larger version

Name:	human.png
Views:	110
Size:	8.4 KB
ID:	1368052

          --Barry

          Comment


            #6
            Originally posted by logman View Post
            If you know anything about Node-RED and the plugin Big5, I can show you how to format the string to look like any of these using a Date/Time Formatter Node:

            Click image for larger version

Name:	I.png
Views:	136
Size:	8.3 KB
ID:	1368046
            Click image for larger version

Name:	II.png
Views:	104
Size:	8.3 KB
ID:	1368047
            Click image for larger version

Name:	III.png
Views:	102
Size:	8.3 KB
ID:	1368048
            Click image for larger version

Name:	IIII.png
Views:	103
Size:	8.5 KB
ID:	1368049
            Click image for larger version

Name:	date.png
Views:	109
Size:	11.4 KB
ID:	1368050
            Click image for larger version

Name:	FromNow.png
Views:	104
Size:	8.6 KB
ID:	1368051
            Click image for larger version

Name:	human.png
Views:	110
Size:	8.4 KB
ID:	1368052

            --Barry
            Barry, very nice of you, thank you for your help offering. I wanted the date but the time was the important part of it so I only used the $time field

            Sent from my SM-G935V using Tapatalk

            Comment


              #7
              Originally posted by logman View Post
              If you know anything about Node-RED and the plugin Big5, I can show you how to format the string to look like any of these using a Date/Time Formatter Node:


              --Barry
              Could you post what the Big5 Get looks like? Thanks

              Comment

              Working...
              X