Announcement
Collapse
No announcement yet.
'Rule reference not defined in this grammar' error
Collapse
X
-
Originally posted by kenrad View PostI am getting the same error as Hozer when trying to get kinect to work with WeatherXML. is there a way to fix this. would reallly love to get this working. when I remove the event for weatherXML all is back to normal
Cheers Ken
Leave a comment:
-
looks like this error is due to a bug in Microsoft grammar parsing code. I have implemented an easy workaround to avoid it.
Please test version 3.0.0.35 available here:
http://board.homeseer.com/showthread...18#post1082218
in this new version there is a new checkbox called "Save spoken choices to global variables". Leave it unticked.
the only case where you need to tick this checkbox is for events where you have a script that use kinectvar0, kinectvar1, etc... global variables.
Leave a comment:
-
I can replicate the 'Rule reference not defined in this grammar' error if I use both WeatherXML strings, if I only use one of them it seems ok.
I'm not sure what the problem is yet, I'm working on it. In the meantime, delete your WeatherXML events or at least use only one of the command string.
Leave a comment:
-
I am getting the same error as Hozer when trying to get kinect to work with WeatherXML. is there a way to fix this. would reallly love to get this working. when I remove the event for weatherXML all is back to normal
Cheers Ken
Leave a comment:
-
Hi Spud/CFGuy!
I guess I'm not surprised they're related....it was just too coincidental.
Spud is right, the last part of the string is dynamically created. Here is what the WeatherXML plugin generates in my specific case:
<get|tell|check|whats|what is> [<me|the|this>] <todays|tonights|tomorrows|sundays|mondays|tuesdays|wednesda ys|thursdays|fridays|saturdays|next> [<two|three|four|five> days] <temperature|weather|forecast> [<for|in>] [<Livonia|Redford Township>]
<get|tell|check|whats|what is> [<me|the>] <temperature|weather|forecast> [<on|for>] [the] <today|tonight|tomorrow|sunday|monday|tuesday|wednesday|thur sday|friday|saturday|next> [<two|three|four|five> days] [<for|in>] [<Livonia|Redford Township>]
Let me guess, it's the space in the 'Redford Township' part of the string that's causing the problem (i.e., when it's parsed)?
Thanks again for all of the help guys!
Hozer
*** UPDATE ***
FYI, I deleted the WeatherXML VR events. I don't see the rule error anymore, but I still can't seem to get the Kinect VR working again.
Not sure if this is relevant or not, but when I stop/restart the Kinect plugin, (among other things) it warns me about not being able to find some devices (not sure what that is about), initializes the VR, builds grammars, runs through a bunch of rules, etc., starts VR and then immediately stops it again. It ends with the Kinect initalized message (after having presumably left VR stopped? Please see below). Should it be leaving off at this point?
Uncertain where I should go from here...thanks!
Leave a comment:
-
Originally posted by CFGuy View PostHere are the 2 VR strings that I display on the screen so the phrases can be copied to the event.
In my instructions I have them create 2 events.
PHP Code:
<get|tell|check|whats|what is> [<me|the|this>] <todays|tonights|tomorrows|sundays|mondays|tuesdays|wednesdays|thursdays|fridays|saturdays|next> [<two|three|four|five> days] <temperature|weather|forecast> [<for|in>] [<Lawrence|Follow Me Note 3|Branson>]
<get|tell|check|whats|what is> [<me|the>] <temperature|weather|forecast> [<on|for>] [the] <today|tonight|tomorrow|sunday|monday|tuesday|wednesday|thursday|friday|saturday|next> [<two|three|four|five> days] [<for|in>] [<Lawrence|Follow Me Note 3|Branson>]
that's why I asked Hozer the exact command he entered.
Leave a comment:
-
Here are the 2 VR strings that I display on the screen so the phrases can be copied to the event.
In my instructions I have them create 2 events.
PHP Code:
<get|tell|check|whats|what is> [<me|the|this>] <todays|tonights|tomorrows|sundays|mondays|tuesdays|wednesdays|thursdays|fridays|saturdays|next> [<two|three|four|five> days] <temperature|weather|forecast> [<for|in>] [<Lawrence|Follow Me Note 3|Branson>]
<get|tell|check|whats|what is> [<me|the>] <temperature|weather|forecast> [<on|for>] [the] <today|tonight|tomorrow|sunday|monday|tuesday|wednesday|thursday|friday|saturday|next> [<two|three|four|five> days] [<for|in>] [<Lawrence|Follow Me Note 3|Branson>]
Leave a comment:
-
there is a problem with one of your Kinect VR command, it's probably the one you entered for the WeatherXML plugin. Could you paste here what you entered?
disabling the WeatherXML events is not enough, the Kinect plugin will still try to parse the commands. So, try to change the trigger to something else than a "Kinect trigger > A phrase was recognized", then restart the plugin and see if you still get the same error.
Leave a comment:
-
'Rule reference not defined in this grammar' error
Hi,
Has anyone seen this error before? It appeared after I tried to set up WeatherXML to work with the Kinect Plugin. All I did was add the suggested events for the WeatherXML plugin (i.e., I didn't edit any grammars or anything in the Kinect plugin). Now the Kinect doesn't appear to recognize any VR commands (i.e., it doesn't even show any attempts at recognition in the log file, just the person recognition tracking).
I have since disabled the WeatherXML events, tried to stop/restart both plugins, HS, etc., but I get the same results.
A screen capture of the error in my log file is attached.
I'm running version 3.0.0.34 of the Kinect plugin and version 3.0.0.29 of WeatherXML.
If anyone has any suggestions for a fix (or other things I can check) I would really appreciate it. TIA.
HozerTags: None
Leave a comment: