Domotica

Xeoma Software

Moderators: Admin_N, Administrator, Admin_P, Admin_K

Domotica

Postby TANE » Sun Jul 14, 2013 9:41 pm

It will be great to have a new module that will make possible to use the motion triggers for sending commands to domotica software

Example:

Fibaro HC2 command (Will turn on the device 140)
http://user:password@<IP>/api/callAction?deviceID=140&name=turnOn

Mios Vera (Rune scene)
http://ip_address:3480/data_request?id= ... SceneNum=3
TANE
 
Posts: 13
Joined: Sun Jul 14, 2013 9:08 pm

Re: Domotica

Postby bretzle » Tue Jul 16, 2013 9:37 am

I'm running mine on ubuntu and have just finished setting it up to send a http request to my camera to look at my front door during the day, and to watch the cars in the driveway at night. I did it using curl and the scheduler module with the application runner module. I think you can run curl on windows. I'd suppose you'd be able to send a command if there was a motion event too. Let me know if you need any help.
bretzle
 
Posts: 25
Joined: Fri Jun 21, 2013 2:37 pm

Re: Domotica

Postby Admin_N » Tue Jul 16, 2013 9:57 am

TANE Wrote:It will be great to have a new module that will make possible to use the motion triggers for sending commands to domotica software


bretzle Wrote:I did it using curl and the scheduler module with the application runner module.


Using WGet as an application run by "Application Runner" module is another great option here
Admin_N
 
Posts: 797
Joined: Thu Mar 01, 2012 4:43 pm

Re: Domotica

Postby TANE » Tue Jul 16, 2013 10:49 am

Hi Thanks,
Wget will not work because of the authentication.
Wget http://user:password@<IP>/api/callAction?deviceID=140&name=turnOn
Result is authentication error at the end
I think Wget is using windows Internet explore and in Explore is since version 6 not longer allowed to use the usernaam password in the url


Like on the Axis server something like this will be super
Send email notification / Send HTTP notification to / Send TCP notification
TANE
 
Posts: 13
Joined: Sun Jul 14, 2013 9:08 pm

Re: Domotica

Postby bretzle » Tue Jul 16, 2013 11:10 am

I just checked and cURL does have a windows client.

On linux I can run it with: curl --user username:password http://my camera ip/decoder_control.cgi?command=33

command 33 is a preset position for my PTZ camera. You seem to know what you need to send.
bretzle
 
Posts: 25
Joined: Fri Jun 21, 2013 2:37 pm

Re: Domotica

Postby TANE » Tue Jul 16, 2013 1:16 pm

thanks

Downloaded cURL


this is the correct command for sending url
curl --user name:password http://www.example.com

in my case ?
curl --user myname:password mypassword 192.168.1.211/api/callAction?deviceID=54&name=turnOff

or
curl --user myname:mypassword 192.168.1.211/api/callAction?deviceID=54&name=turnOff

both are not connecting.
TANE
 
Posts: 13
Joined: Sun Jul 14, 2013 9:08 pm

Re: Domotica

Postby bretzle » Tue Jul 16, 2013 1:31 pm

The second one seems like the right one. Maybe try http:// before the ip? I'm not familiar with Domotica myself. I figured mine out by using the web interface to my camera after clicking inspect element in chrome. That allowed me to see exactly what my browser was sending my camera. Also curl --help might be helpful.
bretzle
 
Posts: 25
Joined: Fri Jun 21, 2013 2:37 pm

Re: Domotica

Postby TANE » Tue Jul 16, 2013 1:42 pm

almost there...


C:\curl>curl --user admin:pass http://192.168.1.211/api/callAction?dev ... me=turnOff

{"type":"ERROR","reason":"MISSING_PARAMETER","message":"name: missing required parameter"}name wordt niet herkend als een interne of externe opdracht, programma of batchbestand.
TANE
 
Posts: 13
Joined: Sun Jul 14, 2013 9:08 pm

Re: Domotica

Postby Admin_N » Wed Jul 17, 2013 11:34 am

Try to experiment with other formats of API.
Admin_N
 
Posts: 797
Joined: Thu Mar 01, 2012 4:43 pm

Re: Domotica

Postby TANE » Wed Jul 17, 2013 9:42 pm

Correct command is:

Full path
c:\curl\curl.exe

Parameters (Fibaro HC2) You have to run few times and except the security popups
"http://admin:pass@192.168.1.211/api/callAction?deviceID=145&name=turnOn"


145 is de Device ID
turnOff/turnOn is command

Works great

Thanks for the help and the tips.
TANE
 
Posts: 13
Joined: Sun Jul 14, 2013 9:08 pm

Re: Domotica

Postby bretzle » Thu Jul 18, 2013 4:22 am

Excellent. No worries. I'll have to look into this domotica myself. I've already tinkered with Arduino a little.
bretzle
 
Posts: 25
Joined: Fri Jun 21, 2013 2:37 pm

Re: Domotica

Postby Admin_N » Fri Apr 15, 2016 1:46 pm

Xeoma is getting constantly improved - now you can use it in combination with your home automation systems with the Application Runner and HTTP Switcher and HTTP Sender modules. See more in http://felenasoft.com/xeoma/en/descript ... stinations
Admin_N
 
Posts: 797
Joined: Thu Mar 01, 2012 4:43 pm


Return to Xeoma - General discussion

Who is online

Users browsing this forum: No registered users and 16 guests

cron