Tuicemen.com

Advanced search  

News:

Share your Automated House and Ideas in the Members Section! :0~

Pages: [1]

Author Topic: Putting a Delay in a user command[Resolved]  (Read 720 times)

HA MACK

  • Full Member
  • **
  • Helpful Rating: 0
  • Offline Offline
  • Posts: 26
Putting a Delay in a user command[Resolved]
« on: March 23, 2015, 07:10:17 am »

I am using a USB relay. I trigger it from a command line argument.  -c:3 -r:4#1   Where -c:3 is com port 3, -r:4 is relay 4, #1 turns on the relay and #0 turns it off. That all works fine. When I enter -c:3 -r:4#1, -c:3 -r:4#0  The relay turns on then off in a quarter of a second. I need a 1 second delay between on and off. I tried -c:3 -r:4#1, timeout /t 1, -c:3 -r:4#0  With this the command doesn't fire at all. Can you tell me how to get a delay?

Thanks
« Last Edit: November 29, 2015, 09:18:51 am by Tuicemen »
Logged

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 24
  • Offline Offline
  • Posts: 3118
  • Making Home Automation Fun!
    • Tuicemen.com
Re: Putting a Delay in a user command
« Reply #1 on: March 23, 2015, 02:07:13 pm »

I never programed delays into PCC user commands that I recall.
Is this a batch file which your triggering with a PCC user command?
try replacing timeout/t1 with sleep 60
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 24
  • Offline Offline
  • Posts: 3118
  • Making Home Automation Fun!
    • Tuicemen.com
Re: Putting a Delay in a user command
« Reply #2 on: November 29, 2015, 09:18:34 am »

I've marked this as resolved as assume this is since no feed back as been posted.
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!
Pages: [1]