Search found 24 matches

by Harlov
Thursday 16 March 2017 22:09
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

You are using a Harmony remote? Then you can decide which IR command play sends and which IR command pause sends. Make sure they are not the same. After this, using the Flirc configuration program you can link the IR command from "play" to a certain key (combination) and the IR command from "pause ...
by Harlov
Thursday 16 March 2017 21:37
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

Are play and pause separate buttons? It would seem that either you've linked them both to this "KEY_PLAYPAUSE@" command or they send the same IR command. You need to distinguish them somehow. The number between means: A value of 1 corresponds to pressing a key, while 2 is generated by holding it ...
by Harlov
Thursday 16 March 2017 20:54
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

I've got it working now, I had to put a @ after KEY_PLAYPAUSE@ . I also had to modify the configuration files in it's default setup, the daemon is run as user nobody and i have Changing the user to pi, and then restart and it worked :D KEY_PLAYPAUSE@ 1 curl "http://192.168.0.148:8080/json.htm?type ...
by Harlov
Thursday 16 March 2017 20:05
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

I've got it working now, I had to put a @ after KEY_PLAYPAUSE@ . I also had to modify the configuration files in it's default setup, the daemon is run as user nobody and i have Changing the user to pi, and then restart and it worked :D KEY_PLAYPAUSE@ 1 curl "http://192.168.0.148:8080/json.htm?type ...
by Harlov
Thursday 16 March 2017 19:35
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

Ok, curl is finally working. Did you already try it in the .conf file in the correct format? :) I have saved this in the conf file and make reload so it seems EV_KEY_KEY_PLAYPAUSE do not want to work it might be something wrong with the infrared usb? EV_KEY_KEY_PLAYPAUSE 1 curl "http://192.168.0 ...
by Harlov
Wednesday 15 March 2017 23:46
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

Ok, curl is finally working. Did you already try it in the .conf file in the correct format? :) I have saved this in the conf file and make reload so it seems EV_KEY_KEY_PLAYPAUSE do not want to work it might be something wrong with the infrared usb? EV_KEY_KEY_PLAYPAUSE 1 curl "http://192.168.0 ...
by Harlov
Wednesday 15 March 2017 23:31
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

Take away -s (s = silent) and you should see some output. In any case, you can check from Domoticz log (switch log) if it fired. Log file Domoticz 2017-03-15 23:27:03.632 OpenZWave: Domoticz has send a Switch command! NodeID: 4 (0x04) 2017-03-15 23:27:03.632 (Controller) Light/Switch (Wall Plug ...
by Harlov
Wednesday 15 March 2017 23:17
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

You are missing quotes around the url -> "http://192.168.0.148:8080/json.htm?type=command&param=switchlight&idx=1&switchcmd=On" then i got this pi@raspberrypi:~ $ curl -s "http://192.168.0.148:8080/json.htm?type=command&param=switchlight&idx=1&switchcmd=On" pi@raspberrypi:~ $ in the browser ...
by Harlov
Wednesday 15 March 2017 23:02
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

Hmm, strange indeed. Only couple of things left to try I think. ========== EDIT: Maybe just a typo in your post above, but after posting this I noticed the command below is still faulty, it is missing the &switchcmd part, i.e. should be : curl -s "http://192.168.0.148:8080/json.htm?type=command ...
by Harlov
Wednesday 15 March 2017 20:10
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

Is it because I use the Logitech Harmony 650 remote makes it not work No, I think it is the "key name" that is wrong. Let me give you an example. When I turn on the "dump" and press a certain key I get: EV_KEY KEY_LEFTCTRL 1 /dev/input/event1 # KEY_LEFTCTRL 1 command EV_KEY KEY_LEFTSHIFT 1 /dev ...
by Harlov
Wednesday 15 March 2017 19:42
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

I turned off Authentication: and added the Local Networks IP number 192.168.0.* And then it works as it should when I test in the browser :D :D Well, you can keep the authentication on, just keep the bypass for local network the you've set it up now. If you have opened the Domoticz port to outside ...
by Harlov
Wednesday 15 March 2017 19:39
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

I turned off Authentication: and added the Local Networks IP number 192.168.0.* And then it works as it should when I test in the browser :D :D Well, you can keep the authentication on, just keep the bypass for local network the you've set it up now. If you have opened the Domoticz port to outside ...
by Harlov
Wednesday 15 March 2017 18:26
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

Wrong of me, I'm tired so that's probably why I can not think right may try more tomorrow and see if I can get it to work, I get hope Thank you for your help is appreciated Don't worry, you are close :) For the "unauthorized", either disable authentication in local network (Domoticz settings ...
by Harlov
Wednesday 15 March 2017 0:03
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

...but when I need to type in Domoticz... This I don't quite get. You should not be typing anything in Domoticz (not sure though if I understand the sentence correctly :))... EV_KEY KEY_PLAYPAUSE 1 curl -s "http://192.168.0.???:8080/json.htm?type=command&param=switchlight&idx=1=On" EV_KEY KEY ...
by Harlov
Tuesday 14 March 2017 23:45
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

I think I have got it working with savings in /etc/triggerhappy/triggers.d/ but when I need to type in Domoticz EV_KEY KEY_PLAYPAUSE 1 curl -s "http: // url: port / json.htm? Type = Command & param = Switch light & idx = IDXofNEOplug & switchcmd = On" I get the error message in Domoticz saying ...
by Harlov
Tuesday 14 March 2017 23:21
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

I think I have got it working with savings in /etc/triggerhappy/triggers.d/ but when I need to type in Domoticz EV_KEY KEY_PLAYPAUSE 1 curl -s "http://192.168.0.???:8080/json.htm?type=command&param=switchlight&idx=1=On" EV_KEY KEY_PLAYPAUSE 1 curl -s "http://192.168.0.???:8080/json.htm?type=command ...
by Harlov
Tuesday 14 March 2017 18:38
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

I can't seem to save config files in the root system (eg: /etc/triggerhappy/triggers.d/); it just says "permission denied" or the save option is blocked in the text editor.
by Harlov
Monday 13 March 2017 23:15
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

Thanks again for your help, I appreciate it

it looks like I've gotten it to work

then I have to create a new conf file for each button?

Have tried to think of where to save (play.conf) file somewhere
in which folder, I do not know where to place the conf file so domoticz can find it
by Harlov
Monday 13 March 2017 20:33
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

I think it worked now Is this right? Play Button EV_KEY KEY_PLAYPAUSE 1 /dev/input/event0 # KEY_PLAYPAUSE 1 command EV_KEY KEY_PLAYPAUSE 0 /dev/input/event0 # KEY_PLAYPAUSE 0 command Pause Button EV_KEY KEY_PLAYPAUSE 1 /dev/input/event0 # KEY_PLAYPAUSE 1 command EV_KEY KEY_PLAYPAUSE 0 /dev/input ...
by Harlov
Monday 13 March 2017 20:13
Forum: Other questions and discussions
Topic: IR Sensor on Raspberry Pi 3
Replies: 46
Views: 8589

Re: IR Sensor on Raspberry Pi 3

I thank you very much for this :D

What I do not understand is how to start Trigger Happy (thd) .. I start it with
Example PUTTY?

Thanks again for your help