Page 2 of 2
Re: Domoticz voice recognition with Jasper
Posted: Sunday 21 February 2016 23:32
by nlooije
Derik wrote:What do you mean 'where do i go wrong'? what problem are you experiencing?
Jasper is not talking back...
You can also specify a duration: arecord -d 10 temp.wav
And how can i play this simple ..
I just read your PM, I cant reply for some reason....
Re: Domoticz voice recognition with Jasper
Posted: Tuesday 01 March 2016 19:23
by Thomasdc
hi!
I am trying to install jasper on a RPI 2 but ive ran in to some problems..
i followed this explanation:
when i start following this:
after a moment i get the error:
Could not open requirements file: [Errno 2] No such file or directory: '/root/jasper/client/requirements.txt'
Storing debug log for failure in /root/.pip/pip.log
when i look i see the file
"root/jasper/client/requirements.txt" is there...
is there someone who can help me? or explain how ik can jasper get installed on a RPI 2 (that isnt to complicated)?
thanks!
Re: Domoticz voice recognition with Jasper
Posted: Wednesday 02 March 2016 0:45
by sanderinozie
Maybe a stupid question, but I am kinda new to Domoticz and Raspberry.
Is it possible to run Jasper on the same Raspberry Pi as I run Domoticz on?
My CPU load and RAM load are low, so I would think that won't be the problem, only I cannot find any installation guide which wont format my SD card...
Re: Domoticz voice recognition with Jasper
Posted: Wednesday 02 March 2016 17:31
by nlooije
when i start following this:
after a moment i get the error:
Could not open requirements file: [Errno 2] No such file or directory: '/root/jasper/client/requirements.txt'
Storing debug log for failure in /root/.pip/pip.log
when i look i see the file
"root/jasper/client/requirements.txt" is there...
Perhaps you need to run the command as root? I believe it says to run: 'sudo su' before the 'chmod +x' part. You can try: 'sudo ~/jasper-installer.sh'
I haven't installed it on a rpi2 (just running on rpi1 which works fine) and I don't want to get into troubleshooting Jasper installation and/or configuration problems here. I suggest you post your issue at the Jasper
support forums. There is already a
rpi2 poststhere which may be useful.
Re: Domoticz voice recognition with Jasper
Posted: Wednesday 02 March 2016 17:36
by nlooije
sanderinozie wrote:Maybe a stupid question, but I am kinda new to Domoticz and Raspberry.
Is it possible to run Jasper on the same Raspberry Pi as I run Domoticz on?
My CPU load and RAM load are low, so I would think that won't be the problem, only I cannot find any installation guide which wont format my SD card...
Yes, it is exactly what i do on my rpi1; It increases the load somewhat but it works well for me.
You can compile Jasper from source, this takes some time but it allows you to use a Domoticz image on the SD card and install Jasper along side it. You can follow the manual installation
here. If you have the Domoticz image on the SD card you don't need to the 'burn Raspbian image onto SD card' part and you can continue with
'configure Raspbian'.
Re: Domoticz voice recognition with Jasper
Posted: Friday 04 March 2016 11:41
by Thomasdc
Hi,
I installed jasper on a RPI B and now its working.. but the domoticz integration isnt working
in the 'profile.yml' file i entered this:
domoticz:
server: http://ip_domoticz:port/
username:
password:
(no username/password is set)
when i try 'jasper, turn on the bed light'
i see:
INFO:client.stt:Transcribed: (u'TURN ON THE BACKLIGHT', u'TURN ON THE BED LIGHT', u'TURN ON THE BACK LIGHT', u'TURN ON THE RED LIGHT', u'TURN ON THE BAT LIGHT')
so i presume it recognized what i said..
but nothing is happening
in domoticz the switch is named 'bed light'
am i missing something?
Thanks!
Re: Domoticz voice recognition with Jasper
Posted: Friday 04 March 2016 12:11
by nlooije
Jasper will always transcribe what you say but that doesn't mean that the Domoticz module recognized the transcription or that the module is working at all.
Several things which you can try:
1. Remove the trailing '/' in the server_ip, i see that it is incorrect in the documentation, i will fix that (thx)
2. Do you see anything in the terminal about skipping the Domoticz module? If not then in the transcribtion as above if the module didn't understand what you meant you should get something along the lines of 'That specific light is not defined'.
3. 'Bed light' as a name for a light switch may not work well yet because of the way the module checks for the devices; try for now either to define:
a. a light switch just called 'Bed' (so no 'light' included)
b. (to make it easier for the module) a Roomplan such as 'Bed' with a light switch 'Bed'.
I understand point 3 is a bit convoluted and it would be nice to just say 'turn on bed light'. I am working on it getting fixed. You could really help, if you could make a list of phrases which currently don't work as you expect them to and what their result should be. Any help will ofcourse be credited on the GH page.
Re: Domoticz voice recognition with Jasper
Posted: Friday 04 March 2016 13:01
by Thomasdc
Hi!
Thanks for the reply,
I don't see anything in the terminal about the domoticz module.
Can i test if its working?
i changed the device name from 'Bed light' into 'Bed'
But it made no difference,
i also added a roomplan 'bed' and added the switch to it, but that didnt help neither,
this is the feedback i get from the terminal:
INFO:client.stt:Transcribed: (u'TURN ON BED LIGHT', u'TURN ON BACKLIGHT', u'TURN ON RED LIGHT', u'TURN ON THAT LIGHT', u'TURN ON THE LIGHT')
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see
https://urllib3.readthedocs.org/en/late ... ormwarning.
InsecurePlatformWarning
When i watch in the modules:
pi@raspberrypi ~/jasper/client/modules $ ls
Birthday.py HN.pyc Joke.pyc News.py Time.pyc
Birthday.pyc __init__.py Life.py News.pyc Unclear.py
Gmail.py __init__.pyc Life.pyc Notifications.py Unclear.pyc
Gmail.pyc Jasper-Domoticz MPDControl.py Notifications.pyc Weather.py
HN.py Joke.py MPDControl.pyc Time.py Weather.pyc
i see that "Jasper-Domoticz" is there..
I am probably still missing something or did something wrong
Re: Domoticz voice recognition with Jasper
Posted: Friday 04 March 2016 13:10
by nlooije
In the steps in the documentation where:
you probably forgot to include the '.' This downloads the contents of Jasper-Domoticz folder into <path to jasper/client/modules>. If you omit the '.' then it downloads it into its own folder 'Jasper-Domoticz' but since there is no '__init__.py' file included Jasper fails to recognize the folder as a module. Solution; copy 'Domoticz.py' from the Jasper-Domoticz folder into where all the other modules are (<path to jasper/client/modules>) or make a file '__init__.py' in the Jasper-Domoticz folder. (perhaps i will add this to the repo anyway to forestall these situations in the future.
Re: Domoticz voice recognition with Jasper
Posted: Saturday 05 March 2016 9:44
by Thomasdc
nlooije wrote:In the steps in the documentation where:
you probably forgot to include the '.' This downloads the contents of Jasper-Domoticz folder into <path to jasper/client/modules>. If you omit the '.' then it downloads it into its own folder 'Jasper-Domoticz' but since there is no '__init__.py' file included Jasper fails to recognize the folder as a module. Solution; copy 'Domoticz.py' from the Jasper-Domoticz folder into where all the other modules are (<path to jasper/client/modules>) or make a file '__init__.py' in the Jasper-Domoticz folder. (perhaps i will add this to the repo anyway to forestall these situations in the future.
That was the problem indeed!
Thanks!!
But i copied the "Domoticz.py" into the modules folder, because when there is another "'__init__.py'" file in the Jasper-Domoticz folder, Jasper was answering 2 times.. i dont know if that was the reason or if it was running 2 times..
But for now its working, i will gently experiment with it.
one thing that would be nice to integrat is to be able to set dimmer values by voice
if you dont have dimmers in your domoticz (you can maybe add an dummy dimmer to experiment, or if i can i want to give it a try to test it out for you.
Big thanks!
Re: Domoticz voice recognition with Jasper
Posted: Saturday 05 March 2016 11:29
by nlooije
Thats weird
I will need to check that out...
You did not by any chance have both Domoticz.py in the modules folder and in its own Jasper-Domoticz folder with an __init__.py?
Because then Jasper would load the module twice, which would explain why you hear Jasper answer twice.
i will have a look tonight if i can integrate dimming values. Do you want specific percentages like "set bed light to 10%" (for some romantic lighting
) or do you mean values like "reduce bed light by half" or something?
Re: Domoticz voice recognition with Jasper
Posted: Saturday 05 March 2016 13:49
by Thomasdc
By Percentages its easier to use (and to implement) i think.
Re: Domoticz voice recognition with Jasper
Posted: Sunday 06 March 2016 0:43
by nlooije
Thomasdc wrote:By Percentages its easier to use (and to implement) i think.
I have a
dev version ready for the dimming feature.
Using this version you should be able to dim a light switch using a phrase like: 'Set bedroom light to fifty percent'
For some reason the dummy switches in Domoticz don't work well and i wasn't able to get them working, but the JSON calls succeed so i am relatively confident it works if you have working dimmers. Could you give it a field test? that would be great.
Note from the dev-tree documentation that there is a python requirement you need to install before you can use the module with dimming.
Re: Domoticz voice recognition with Jasper
Posted: Friday 10 June 2016 20:59
by heggink
Any updates recently? Testing it (really like the idea) but temperature response says "trouble with this operation, pls try again later". How does the thermometer command work> Would be nice to voice control my NEST
Re: Domoticz voice recognition with Jasper
Posted: Wednesday 15 June 2016 15:04
by toreandre
Just installed Jasper and i am trying to get it to work with Domoticz but i get this error:
Code: Select all
WARNING:client.brain:Skipped module 'Jasper-Domoticz' because it misses the WORDS constant.
EDIT: I got past this error after a reboot, but now i get "That spesific scene/group is not defined" on every command