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

0 Members and 1 Guest are viewing this topic.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • 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
  • Sr. Member
  • *****
  • Posts: 499
  • 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
  • Sr. Member
  • *****
  • Posts: 499
  • 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
  • Sr. Member
  • *****
  • Posts: 499
  • 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
  • Sr. Member
  • *****
  • Posts: 499
  • 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
  • Sr. Member
  • *****
  • Posts: 499
  • 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
  • Sr. Member
  • *****
  • Posts: 499
  • 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?

ddl

  • Sr. Member
  • ****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Reminders with a Memory
« Reply #15 on: March 21, 2015, 01:27:12 AM »
reminders log2

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #16 on: March 21, 2015, 01:45:16 AM »
Okay,

I just tested both of the copies that I posted in the forum and I'm not able to recreate that issue,

you could try a couple different things

you could delete the entire group and log file and then re-download the xml file and follow the instructions and then try it again to see if that helps

or you could try and delete the "payloadDictation: Regular" at the bottom of the "Remind me" Command and replace it with a payload list and add in a couple of phrases like:

walk the dog, take out the trash, feed the dog

and then save it and try those phrases to see if that takes care of the problem


ddl

  • Sr. Member
  • ****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Reminders with a Memory
« Reply #17 on: March 21, 2015, 02:05:15 AM »
deleted and re installed the file.  I had to delete the "payloadDictation: Regular" and add a new payload list with the phrases that you suggested.  Seems to be working that way.  Thanks for all your help.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #18 on: March 21, 2015, 02:11:57 AM »
that is odd,

using the Payload list should work well, you just have to create your own list of things that you would set reminders for

and I'm glad to here it is working for you :D
« Last Edit: March 21, 2015, 03:34:49 AM by PegLegTV »

ddl

  • Sr. Member
  • ****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Reminders with a Memory
« Reply #19 on: March 21, 2015, 02:49:40 AM »
Is there a way to pause or softmute the volume if xbmc is playing before the reminder is spoken?  I tried changing the "0" to "1" but that didnt work.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #20 on: March 21, 2015, 03:02:04 AM »
Is there a way to pause or softmute the volume if xbmc is playing before the reminder is spoken?  I tried changing the "0" to "1" but that didnt work.

in the commands I upload there are xjson actions to pause and unpause what ever is playing in XBMC/KODI and OSD popups for XBMC/KODI in the "Reminder is done" command you should have 4 disabled actions



in order for the pause function to work you need to enable the first 3 actions

if you want the popup window in XBMC/KODI you need to enable the 4th action down from the top


nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Reminders with a Memory
« Reply #21 on: March 21, 2015, 03:13:18 AM »
that is odd, I think I saw on here a while ago that payloadDictation: Regular only works with English as the primary language but I couldn't find that post so I thought I was wrong

Hi PegLeg,

Nice to see you on the boards again.  :)

payloadDictation works with the SAPI 5 engine (voxcommando.exe) in all of the 6-ish  languages supported.

It's not supported in the alternate Speech Platform 11 engine (voxcommandoSP.exe) -- in English or any other language.

When SP users import commands that use payload dictation, that payload is highlighted in bright yellow in their command tree and a rollover alerts them that dictation is not supported in SP.

http://voxcommando.com/mediawiki/index.php?title=Version_2#Choice_of_speech_engines
« Last Edit: March 21, 2015, 03:16:19 AM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #22 on: March 21, 2015, 03:30:37 AM »
thanks for the correction, I wasn't 100% sure on that, I'll try and add a note to the first post about using the SP version tomorrow (later this morning after some sleep ::zzz)

and its nice to be back, we moved last week, we bought a forclosure so we didn't have internet for over a week (I was going through withdaw  :bonk) I'll try and get on every day but now that I have another house to fix up it might be hard at times

RickyD333

  • Contributor
  • ***
  • Posts: 71
  • Karma: 2
    • View Profile
Re: Reminders with a Memory
« Reply #23 on: May 05, 2015, 03:39:35 PM »
I feel like a bloody idiot. I keeping getting "invalid xml" whenever I try to paste it into my editor.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #24 on: May 05, 2015, 04:03:26 PM »
Have you tried dragging it on to your command tree instead of copy and paste

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Reminders with a Memory
« Reply #25 on: May 05, 2015, 05:08:18 PM »
Follow exact these steps: https://m.youtube.com/watch?v=L6NNvKGtbOU


Get sure that you insert the group on a free place and not over the top of a other command group.
Do not edit this payload in a editor like notepad or similar.
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Reminders with a Memory
« Reply #26 on: May 05, 2015, 06:48:06 PM »
I really wish I knew what people were doing to generate this error.  If someone could create a video showing all the steps they are taking I would appreciate it.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #27 on: May 05, 2015, 07:00:00 PM »
if I try and copy and paste a downloaded group I don't get "invalid xml" but I get "Empty xml" if you need a video of that let me know and i can take a quick video for you
« Last Edit: May 08, 2015, 12:58:25 AM by PegLegTV »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Reminders with a Memory
« Reply #28 on: May 05, 2015, 08:36:21 PM »
Not necessary Pegleg, thanks.

Instructions  in the wiki and videos are clear.

Either:
- Copy and paste XML from a code box
- or for a file attachment,  download it and then drag it into your tree.

You can't copy and paste a file.  If you try to the error you get will depend on what text is already on your clipboard.

RickyD333

  • Contributor
  • ***
  • Posts: 71
  • Karma: 2
    • View Profile
Re: Reminders with a Memory
« Reply #29 on: May 07, 2015, 02:30:56 AM »
Oh I see. If it's in a code box you can copy and past but if it isn't you have to drag it in. I was just downloading it, selecting all text, copy and paste, then I would get the error. I see the mess up now. Why would it be different? Sorry, I don't know how xml's or any sort of code really works.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Reminders with a Memory
« Reply #30 on: May 07, 2015, 08:10:58 AM »
Oh I see. If it's in a code box you can copy and past but if it isn't you have to drag it in. I was just downloading it, selecting all text, copy and paste, then I would get the error. I see the mess up now. Why would it be different? Sorry, I don't know how xml's or any sort of code really works.

If you compare the structure of the file you downloaded to a command group posted in a code box on the forum, you'll see a slight difference.

There's another hierarchical level in the exported file above the group level in order to accommodate the export of multiple groups of commands.

You could have actually copied/pasted the group xml into your tree by opening the file, but you would have had to copy just the command group xml rather than copying all the text.

But that method would be less efficient and is more prone to error than just dragging the file into the tree directly as per the instructions. So I would stick to the drag'n'drop method for exported command xml files.
« Last Edit: August 05, 2015, 09:19:58 AM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

outlaw

  • Jr. Member
  • **
  • Posts: 21
  • Karma: -1
    • View Profile
Re: Reminders with a Memory
« Reply #31 on: July 30, 2015, 11:54:23 AM »
have a quick question ....this xml is working great other than it will only remind me in hours...like if I say remind me in 1 minute to take out the dinner, and when I ask what reminders do I have it replys ....in 11 hours take out the dinner, ive deleted the reminders log.txt and told vc to cancel all reminders so it will create a new log file, however it still does the same thing....any idea on whats goin on??

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 499
  • Karma: 43
    • View Profile
Re: Reminders with a Memory
« Reply #32 on: July 30, 2015, 01:15:38 PM »
have a quick question ....this xml is working great other than it will only remind me in hours...like if I say remind me in 1 minute to take out the dinner, and when I ask what reminders do I have it replys ....in 11 hours take out the dinner, ive deleted the reminders log.txt and told vc to cancel all reminders so it will create a new log file, however it still does the same thing....any idea on whats goin on??

hey outlaw,

which version of the reminders are you using? the updated version (bottom of 1st post) should be using Reminders log2.txt,

also "what reminders do I have" only does math for the remaining minutes and hours, it doesn't count the seconds,

this command can have some trouble with one minute reminders, try testing with 2 minutes reminders


outlaw

  • Jr. Member
  • **
  • Posts: 21
  • Karma: -1
    • View Profile
Re: Reminders with a Memory
« Reply #33 on: July 30, 2015, 01:37:14 PM »
hi pegleg. thanks for the response I figured it out  :bonk when I was saying like to remind me in one minute it doesn't like that, but as long as its 2 minutes or more it works fine :) thanks again for your response :)

JonPeyton

  • $upporter
  • Jr. Member
  • *****
  • Posts: 36
  • Karma: 3
    • View Profile
Re: Reminders with a Memory
« Reply #34 on: October 20, 2015, 10:57:05 PM »
Very very useful , thanks ever so much! :)