If I put this into profile:
"handle": {
"command": {
"program": "$RHASSPY_PROFILE_DIR/intentDispatcher.py"
},
"remote": {
"url": "http://x.x.x.x:80/core/api/jeeApi.php?plugin=jeerhasspy&apikey=--key--&plugin=jeerhasspy&type=jeerhasspy"
},
"system": "remote"
},
I can use either remote or command but not both.
Would it be possible to set several handles, with order ?
For example "system": "remote,command"
Actually if I do this, here is the error:
[ERROR:71284553] DialogueManager: started
Traceback (most recent call last):
File “/usr/share/rhasspy/rhasspy/actor.py”, line 159, in on_receive
self.transition(“started”)
File “/usr/share/rhasspy/rhasspy/actor.py”, line 230, in transition
getattr(self, transition_method)(from_state)
File “/usr/share/rhasspy/rhasspy/dialogue.py”, line 309, in to_started
self.transition(“loading”)
File “/usr/share/rhasspy/rhasspy/actor.py”, line 230, in transition
getattr(self, transition_method)(from_state)
File “/usr/share/rhasspy/rhasspy/dialogue.py”, line 345, in to_loading
self.load_actors()
File “/usr/share/rhasspy/rhasspy/dialogue.py”, line 874, in load_actors
self.handler_class = get_intent_handler_class(handler_system)
File “/usr/share/rhasspy/rhasspy/intent_handler.py”, line 59, in get_intent_handler_class
“Invalid intent handler system: %s” % system
AssertionError: Invalid intent handler system: remote,command
Dunno anyway if it would be easy to implement this, as it seems to ask for one service/class per task.
If it is too mush work, which seems so, can anyone could help in getting system command python file to get the intent ? Actually even a simple python file writing another file to check it is run create stderror.