Page 3 of 4

Re: Vocal command for Domoticz

Posted: Friday 04 January 2019 20:16
by renerene
I have been using Jarvis for a week now on my Teclast wall tablet, that also runs Dashticz.
Because of bad voice interpretation, buggy/freezing response, I cannot have it replace my Alexa. I guess it has a 20% succes range for understanding my phrases, where Alexa is 90% correct.

Question:
What is you experience in buying a microphone upgrade?

see also https://www.domoticz.com/forum/viewtop ... 56#p160092

Re: Vocal command for Domoticz

Posted: Friday 04 January 2019 23:36
by welby
zak45 wrote: Friday 04 January 2019 16:48
welby wrote: Friday 04 January 2019 3:57 How do i make it just read the data from the sensor and not everything that it receives?
this should do the trick for Domoticz:
[url]http://192.168.1.xx:xxxx/json.htm?type=devices&rid=<YOUR IDX>[/url]
<YOUR IDX> = Domoticz device IDX

and this for jarvis

SetVariable: Data to value: system.jsonParse(system.httpGetResult().at("/result/0/Data").asText()
Thanks zak but i'm still unsure of what to do with the set variable part? I've been reading the docs and API but i can't get my head around it.

Re: Vocal command for Domoticz

Posted: Saturday 05 January 2019 1:15
by zak45
welby wrote: Friday 04 January 2019 23:36 Thanks zak but i'm still unsure of what to do with the set variable part? I've been reading the docs and API but i can't get my head around it.
Yep, understand.. same for me, take some time.

This is why I decided to create a python plugin for automatic config generation, just to make this soft more accessible for begginer
for the moment, on/off, dimmer, temperature, sensors status, scene, thermostat are running...so you will be able to learn from them.

available soon ... need some more time ;-)

Re: Vocal command for Domoticz

Posted: Saturday 05 January 2019 1:17
by zak45
renerene wrote: Friday 04 January 2019 20:16 Question:
What is you experience in buying a microphone upgrade?

see also https://www.domoticz.com/forum/viewtop ... 56#p160092
Do not have trouble with microphone. this run on samsung galaxy tablet.
You can increase drastically recognition by setting right synonyms

Re: Vocal command for Domoticz

Posted: Sunday 06 January 2019 22:34
by renerene
can someone please explain the 'stop' functionality?
I have programmed a dummy device that stops the screen movement. I call this device in the stop action, using JSON.
But, how to activate this stop command? After 'Jarvis, close screens' and 'stop' nothing happens

Re: Vocal command for Domoticz

Posted: Sunday 06 January 2019 23:28
by zak45
renerene wrote: Sunday 06 January 2019 22:34 can someone please explain the 'stop' functionality?
I have programmed a dummy device that stops the screen movement. I call this device in the stop action, using JSON.
But, how to activate this stop command? After 'Jarvis, close screens' and 'stop' nothing happens
Attached example of the configuration generated by the plugin for On/Off action on one device;
This should give you overview of the possibility;
you need to unzip the file and upload the three configuration files into jarvis@home.
Go to Domoticz Net config and put your domoticz IP and port.
Go to Domoticz OnOff and replace /update / adapt the configuration for one of your device IDX number.
no so hard to understand (hope so).
test.zip
(6.11 KiB) Downloaded 66 times

Re: Vocal command for Domoticz

Posted: Monday 07 January 2019 19:50
by kniazio
Is this the plugin we are waiting for?

Re: Vocal command for Domoticz

Posted: Monday 07 January 2019 20:28
by zak45
kniazio wrote: Monday 07 January 2019 19:50 Is this the plugin we are waiting for?
Nope..; a small part just to show structure/possibility

Re: Vocal command for Domoticz

Posted: Tuesday 08 January 2019 20:46
by renerene
zak45 wrote: Sunday 06 January 2019 23:28 no so hard to understand (hope so).

test.zip
Guess not.
it is french.
i have modified the variables in on/off configuration. Now what?
Three configurations x 9 tabs = 27 places to edit variables (discussion, recogition, sentence....variable) --> Which, what, why?
do I have to edit SWITCH_URL? Or this is automaticly filled?
Do you call switches by IDx number?

Re: Vocal command for Domoticz

Posted: Tuesday 08 January 2019 23:33
by zak45
renerene wrote: Tuesday 08 January 2019 20:46 i have modified the variables in on/off configuration. Now what?
Nothing!

Re: Vocal command for Domoticz

Posted: Wednesday 09 January 2019 7:06
by renerene
Nothing!
Haha, correct. Waste of time.

Re: Vocal command for Domoticz

Posted: Wednesday 09 January 2019 10:51
by zak45
renerene wrote: Wednesday 09 January 2019 7:06 Haha, correct. Waste of time.
Right. And as AE said :
"The only thing that interferes with my learning is my education".

Last news about the plugin:
have made some test to "try" to do Geofencing (yep, last version can retreive GPS coordinate)... but not work as expected (could be me .. need to double-check)
In process to finalize devices creation...

Re: Vocal command for Domoticz

Posted: Tuesday 29 January 2019 18:36
by kniazio
What's happening with jarvis @ home?
Will there be a plugin for Domoticz, who was promised?

Re: Vocal command for Domoticz

Posted: Tuesday 29 January 2019 23:26
by zak45
kniazio wrote: Tuesday 29 January 2019 18:36 What's happening with jarvis @ home?
Will there be a plugin for Domoticz, who was promised?
yep, but we all have life and things not always happend as we want.. still on progress/test, and need now to write the Wiki!!

Re: Vocal command for Domoticz

Posted: Saturday 23 February 2019 17:09
by zak45
for people with some py knowledge.
no support from my side for the moment (not enough time).
but should not be difficult to setup (see some help on doc folder)
this manage :
Voice command
TTS
Android Notification
Geofencing (with Automate)
MyLocation(with Automate)

https://www.dropbox.com/sh/js6a1voczrm7 ... BeUWa?dl=0

Re: Vocal command for Domoticz

Posted: Saturday 23 February 2019 19:50
by kniazio
My errors:

Code: Select all

 2019-02-23 19:49:37.849 (DomVoice) Initialized version 1.0.0, author 'zak45'
2019-02-23 19:49:37.874 (DomVoice) lang file : /home/domoticz/plugins/EZJarviz/en_en.lng
2019-02-23 19:49:37.874 Error: (DomVoice) Traceback (most recent call last):
File "/home/domoticz/plugins/EZJarviz/plugin.py", line 968, in loadLang
with open(lang_file, 'r' , encoding='utf-8') as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/home/domoticz/plugins/EZJarviz/en_en.lng'
2019-02-23 19:49:37.874 Error: (DomVoice) __Lang file not exist or to process data from : /home/domoticz/plugins/EZJarviz/en_en.lng__
2019-02-23 19:49:37.874 Error: (DomVoice) __Language file is missing for : en__
2019-02-23 19:49:37.875 Error: (DomVoice) 'onStart' failed 'AttributeError':''module' object has no attribute 'Connection''.
2019-02-23 19:49:37.875 Error: (DomVoice) ----> Line 205 in /home/domoticz/plugins/EZJarviz/plugin.py, function onStart 
configurations are different

Re: Vocal command for Domoticz

Posted: Saturday 23 February 2019 23:06
by zak45
FileNotFoundError: [Errno 2] No such file or directory: '/home/domoticz/plugins/EZJarviz/en_en.lng'

you need to take the one on the lng folder.

Re: Vocal command for Domoticz

Posted: Saturday 23 February 2019 23:22
by kniazio
there is no en_en.lng file in the lng folder
Which means:

Code: Select all

 2019-02-23 23:17:24.292 Error: (DomVoice) 'onStart' failed 'AttributeError':''module' object has no attribute 'Connection''.
2019-02-23 23:17:24.292 Error: (DomVoice) ----> Line 205 in /home/domoticz/plugins/EZJarviz/plugin.py, function onStart 
what is this

Re: Vocal command for Domoticz

Posted: Saturday 23 February 2019 23:27
by kniazio
I do not understand how it works

Re: Vocal command for Domoticz

Posted: Saturday 23 February 2019 23:53
by zak45
kniazio wrote: Saturday 23 February 2019 23:27 I do not understand how it works
All is on the dropbox.
If you do not have enough python knowledge, not simple.
And without any documentation, not easy.

Maybe better for you to wait for the WiKi.