Author Topic: Reminders with a Memory  (Read 11657 times)

0 Members and 1 Guest are viewing this topic.

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Reminders with a Memory
« on: January 03, 2015, 10:58:24 PM »
UPDATED: 7/12/15 (minor XBMC/KODI notification fix)       

                  NOTE:Python plugin is Required for this command 
                  THIS REQUIRES VC VERSION 2.1.3.8 OR HIGHER TO WORK

this group will use a log file to keep track of set timers so if you Restart VC it will reset the timers, and can tell you how much time is remaining for your timers 


"Remind me in XX Minutes(hours) to walk the dog"

when minutes or hours is used it will calculate the end time of the timer
and set the event to go off at that time, it will write the reminder to a log file (Reminders Log2.txt) in your VC folder

if you restart VC during that time, when it starts again it will read that log file and set the timers again


"Remind me at 12:10 PM(AM) to check the food"

this will set the event to the specified time and write to the log as well so it can be reset
the reminder can be set for on the hour or 5min intervals


when the reminders go off they will say

"excuse me you wanted me to remind you to walk the dog"
(XBMC/KODI OSD)OSD: Reminder: - Walk the Dog
and also deletes the log entry for that timer


"What Reminders do I have"
VC: "You have XX Reminders"
VC: "Reminder number 1 to walk the dog has 0 hours and 17 minutes remaining"

to cancel an individual timer you will first have to ask

"What Reminders do I Have"

then use the Reminder number to cancel that reminder so if you wanted to cancel reminder number 3 you would say

"cancel reminder number 3" and it will cancel that reminder and delete it from the log file so it wont be reset the next time VC Restarts

"cancel all reminders":
will delete "Reminders log2.txt and recreate it, and stop all timers.

once you have copied the command to VC say "cancel all reminders" it will create the file "Reminders log2.txt"

I also added Discrete Pause / Play for XBMC
 along with osd in XBMC if you want to use these you will need to enable them (change the "0" to a "1" at the end of each disabled command)
with XBMC actions enabled, when the reminders go off it will pause what your watching and say "excuse me....." it will not un-pause, (kind of like acknowledging the timer went off)


NOTE: if you are using voxcommandoSP.exe you will need to change the payloaddictation in the "Remind me" command to a payload list and add a list of reminders you would set like "walk the dog, take out the trash, check the food"
http://voxcommando.com/mediawiki/index.php?title=Version_2#Choice_of_speech_engines


Command was to big to post in a code box so I attached it as an xml,  How to add an XML group to VC
« Last Edit: July 12, 2015, 05:54:37 PM by PegLegTV »

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #1 on: January 03, 2015, 10:58:40 PM »
The group attached below is outdated

this version worked for VC versions before 2.1.3.8, but has not been updated or tested
« Last Edit: July 08, 2015, 11:55:45 PM by PegLegTV »

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: Reminders with a Memory
« Reply #2 on: January 04, 2015, 12:15:38 AM »
sounds great will give it a try ...

I will wait till moderators move it to XML exchange, then I will post a link to it in the Gems as well ..  8) 8)
When Voice command gets tough, use hand gestures

keithj69

  • $upporter
  • Sr. Member
  • *****
  • Posts: 113
  • Karma: 7
    • View Profile
Re: Reminders with a Memory
« Reply #3 on: January 05, 2015, 03:34:28 PM »
Nifty.  I will try this later.  Thanks for the work.

bobsj2000

  • Jr. Member
  • **
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Reminders with a Memory
« Reply #4 on: January 28, 2015, 03:46:03 AM »
Hi;

I would like to try to use this, but I can't seem to make it work.

Your xml file is empty so I copied the two sections in to a group.

I can get it to save the reminder to the log but it never does trigger the reminder.

Is there anything special that needs to be done to trigger the reminder?

Thank You, looks like a great xml!

RJ

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #5 on: January 28, 2015, 10:10:59 AM »
sorry your having trouble,

lets see if we can get this working for you,

1st thing, I noticed that i forgot to mention that you need the python plugin in order for this to work,

in order to get the python plugin,

  • Click options
  • Open options
  • click plugins
  • Click on the PY (python plugin)
  • click save and close
  • then do a full restart to make it take effect

Now that you have the python plugin,

Delete the Reminders log.txt from you VC folder

Then say "cancel all reminders"
this will recreate the file and do a Full restart of VC and add a new line of Text to the reminders log.txt

then try and add your reminders and see how things go


EDIT: ADDED NEW XML SINCE IT WAS EMPTY
« Last Edit: January 28, 2015, 08:41:51 PM by PegLegTV »

bobsj2000

  • Jr. Member
  • **
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Reminders with a Memory
« Reply #6 on: January 29, 2015, 04:11:36 PM »
Thank You, I will try it again tonight.

bobsj2000

  • Jr. Member
  • **
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Reminders with a Memory
« Reply #7 on: January 29, 2015, 10:40:48 PM »
Yep, that did it, works great. Thank You..

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #8 on: February 16, 2015, 02:36:34 PM »
UPDATE: I added in the ability to ask "what reminders do i have" and it will tell you what reminders and how much time is remaining on each reminder  http://voxcommando.com/forum/index.php?topic=1943.msg16729#msg16729

the second post is now a new version that only works with

VC 2.1.3.8 or higher 

ddl

  • Sr. Member
  • ****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Reminders with a Memory
« Reply #9 on: March 20, 2015, 11:53:10 PM »
I just loaded the xml file for the reminders.  I believe everything loaded correctly.  All I have to do now is test.  Can you describe to me how I would add a reminder to test?

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #10 on: March 21, 2015, 12:47:18 AM »
I just loaded the xml file for the reminders.  I believe everything loaded correctly.  All I have to do now is test.  Can you describe to me how I would add a reminder to test?

As long as you followed the instructions in the first post all you should have to do is create a short reminder something like:

"Remind me in 2 Minutes to walk the dog"

and it should verify that it set the timer and then you can check the Reminders log file (in your VC folder it will be called "Reminders Log2.txt" or "Reminders Log.txt" depending on which command you are using)

and then wait for the reminder to go off, and then check the log file again to make sure it deleted that reminder from the log file

you could set a longer reminder and restart VC to make sure it re-schedules the reminder when it restarts

after that you can look at the other commands that are included in the group and try them out

ddl

  • Sr. Member
  • ****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Reminders with a Memory
« Reply #11 on: March 21, 2015, 01:09:12 AM »
Ok, Thanks for the prompt reply.  It seem to work as expected accept that during the acknowlegement it confirms that the timer has been set.  However, it says "the reminder has been set in 2 minutes to {3}".  How do I replace the {3} to dog

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #12 on: March 21, 2015, 01:14:49 AM »
that is odd, what does it show in your log file when you set the reminder?
 and what does the OSD show then you set the reminder?

ddl

  • Sr. Member
  • ****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Reminders with a Memory
« Reply #13 on: March 21, 2015, 01:19:33 AM »
This is what is logged in the log file:

<timer><Set>0:13:22</Set> <Reminder>{3}</Reminder></timer>

The OSD Shows:  Reminder: {3}

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #14 on: March 21, 2015, 01:23:21 AM »
what's the name of your log file so I can test it with the commands I uploaded?