News:

VoxCommando works with Amazon Echo, Domoticz, EventGhost, Google Assistant, IFTTT, iTunes, J.River Media Center, Kodi, MediaMonkey, Nest, Philips Hue, Vera, Wemo, and the list keeps growing!

Main Menu

Another time telling script

Started by bobsj2000, January 28, 2015, 03:03:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bobsj2000

This is my first script in VoxCommando, so please be gentle. This is a really simple script that will report the time and date with a respectful human reaction flare.

Enjoy

<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.3.6-->
<groupCollection open="True" name="Time">
  <commandGroup open="True" name="The time and date" enabled="True" prefix="" priority="0" requiredProcess="" description="">
    <command id="442" name="time" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="80" loop="False" loopDelay="0" loopMax="0" description="Simple command to retrieve time and date and announce with a respective flare.">
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <params>
          <param>Please wait sir as I access that information from the world time servers. </param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <loop>
        <loopParams>
          <from>1</from>
          <to>4000</to>
        </loopParams>
        <loopActions />
      </loop>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>I have that information for you now sir.</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <loop>
        <loopParams>
          <from>1</from>
          <to>2000</to>
        </loopParams>
        <loopActions />
      </loop>
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <params>
          <param>The current time is {DtCustom.h:mmtt} and today's current date is {DtCustom.MMMM dd yyyy}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>OSD.ShowText</cmdType>
        <params>
          <param>The current time is {DtCustom.h:mmtt} -- Current date is {DtCustom.MMMM dd yyyy}</param>
          <param>8000</param>
          <param>200</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType />
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
      <phrase>What is the time</phrase>
    </command>
  </commandGroup>
</groupCollection>

SteveB69

Thanks for that, am a total noob, gave me something to twiddle & learn on :-)
Chances are I've searched the forum, searched the wiki & scoured You Tube but I'm just to thick to work it out without help!