Delay with automation BIND call

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
ecoeco
Posts: 2
Joined: 27 Aug 2013 11:52

Delay with automation BIND call

Post by ecoeco »

Hi

I'm getting a strange delay when binding to a SwitchBinary.Set call.

I have bound a php script to a switch. The php script can be executed from a web browser or the command line. The phpscript has one line - a curl command to call Razberry to effect a different switch. I can call this script from the command line and the second switch is effected immediately.

Everything works with the BIND and I can call my script on the server when first switch state changes, however there is a delay of about 8 seconds from the time that my script sends the curl command to Razberry to the time Razberry excutes the command.

Can anyone explain why there is a difference here? Any idea why a script called from a BIND is 8 seconds slower than the same script called from a web browser or the command line?

I assume something in Razberry's automation engine is slowing it down.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

This is a problem of your dns

Post by PoltoS »

This is a problem of your dns settings. please check /etc/resolv.conf or other place in your system.

Also check reverse DNS records.
ecoeco
Posts: 2
Joined: 27 Aug 2013 11:52

Still a problem

Post by ecoeco »

Thanks for this - I don't think it is a DNS problem. The bind method just calls a local script "/opt/TVSwitch.sh" while the TVSwitch.sh script calls SET command using the IP address of my Razberry. Its not using DNS at all.

Just in case I've checked /etc/resolv.conf and its fine.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Excuse, for me BIND is always

Post by PoltoS »

Excuse, for me BIND is always the most popular DNS server, not bind() call ;)

Now re-reading you post...

Please paste your scripts here, so we can get a better understanding. Also the log at the time of execution will be good to get more info about what happened in between.
Post Reply