Announcement

Collapse
No announcement yet.

Speak Time?

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

  • Speak Time?

    So I use the following script for BLGData which works great, but the problem I now have is that when I added ev.StartTime, it speaks the event time in military format instead of standard format (e.g. AM/PM). I've tried adding 12:00 = 12pm in BLSpeach, but it still speaks in military. Anyway around this?

    Code:
    Sub Main(parms As Object)
    Dim allEvents As Object()
    Dim Office, source, volume, speaker
    allEvents = hs.PluginFunction("BLGData", "", "GetCalendarEvents", new Object(){"user@domain.com","user@domain.com","Today"})
    
        For Each ev As Object In allEvents
        hs.Speak("{speaker=Office,source=2,volume=60}" & ev.StartTime & ev.Name)
    Next
    End Sub

  • #2
    @Sireone, were you successful in getting your HS3 to speak time? If so could you be so kind and share your solution. thanxs in advance Mike
    Computer: CUK Intel NUC7i7BNH
    Op System: Windows 10 Pro - Work Station
    HS Version: HS3 Pro Edition 3.0.0.435

    Plug-Ins: BLBackup, BLGData, BLRoombaWifi, Device History, EasyTrigger, ImperiHome, Nest, PHLocation, Pushover 3P, Restart, Sonos, UltraCID3, UltraWeatherWU3, Z-Wave, and Jon00 scripts.

    Comment


    • #3
      Originally posted by MNB View Post
      @Sireone, were you successful in getting your HS3 to speak time? If so could you be so kind and share your solution. thanxs in advance Mike
      Not at all. I think there would have to be some interpretation in the BLGData plugin for this.

      Comment


      • #4
        @Sireone, I was successful in getting my HS3 to say time on an hourly basis.
        I created an recurring event that will automatically trigger from the top of the hour every hour, for the action I inserted Speak Something and in the text to be spoken field I entered the following "The time is $$time" (excluding the quotes). Works like a champ! and it's simple. And it doesn't say the time in military format but rather AM/PM times. Mike
        Computer: CUK Intel NUC7i7BNH
        Op System: Windows 10 Pro - Work Station
        HS Version: HS3 Pro Edition 3.0.0.435

        Plug-Ins: BLBackup, BLGData, BLRoombaWifi, Device History, EasyTrigger, ImperiHome, Nest, PHLocation, Pushover 3P, Restart, Sonos, UltraCID3, UltraWeatherWU3, Z-Wave, and Jon00 scripts.

        Comment


        • #5
          Originally posted by MNB View Post
          @Sireone, I was successful in getting my HS3 to say time on an hourly basis.
          I created an recurring event that will automatically trigger from the top of the hour every hour, for the action I inserted Speak Something and in the text to be spoken field I entered the following "The time is $$time" (excluding the quotes). Works like a champ! and it's simple. And it doesn't say the time in military format but rather AM/PM times. Mike
          I know that works. My issue with the time was when using the BLGdata plugin. It would speak calendar event times in military.

          Comment


          • #6
            My bad , I did not pickup on that you were wanting to use BLGData, albeit that we're in the BLGData thread. I'm finding out that there seems to be multiple ways of getting various process of getting plug-in's to communicate. In regards to this plug-in I would have thought that Bob (Blade) could answer this issue real quick like?
            Computer: CUK Intel NUC7i7BNH
            Op System: Windows 10 Pro - Work Station
            HS Version: HS3 Pro Edition 3.0.0.435

            Plug-Ins: BLBackup, BLGData, BLRoombaWifi, Device History, EasyTrigger, ImperiHome, Nest, PHLocation, Pushover 3P, Restart, Sonos, UltraCID3, UltraWeatherWU3, Z-Wave, and Jon00 scripts.

            Comment


            • #7
              I am helpless right now as a water leak in my basement has put my office out of commission as well as access to my development computer. I will re-visit all these threads once I get my basement back up and running. I am waiting on the builder to come and put it back together. Sorry about this.
              Cheers,
              Bob
              Web site | Help Desk | Feature Requests | Message Board

              Comment


              • #8
                Bob, there's "nodin" that important take care of your domestics and we'll read you later, hopefully your not too under water. Mike
                Computer: CUK Intel NUC7i7BNH
                Op System: Windows 10 Pro - Work Station
                HS Version: HS3 Pro Edition 3.0.0.435

                Plug-Ins: BLBackup, BLGData, BLRoombaWifi, Device History, EasyTrigger, ImperiHome, Nest, PHLocation, Pushover 3P, Restart, Sonos, UltraCID3, UltraWeatherWU3, Z-Wave, and Jon00 scripts.

                Comment

                Working...
                X