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: Windows10 Pro - Work Station
    HS Version: HS4 Pro Edition 4.2.19.0

    Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, 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: Windows10 Pro - Work Station
        HS Version: HS4 Pro Edition 4.2.19.0

        Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, 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: Windows10 Pro - Work Station
            HS Version: HS4 Pro Edition 4.2.19.0

            Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, 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: Windows10 Pro - Work Station
                HS Version: HS4 Pro Edition 4.2.19.0

                Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.

                Comment

                Working...
                X