more G-Labs products

Author Topic: WebserviceCallReceived  (Read 1240 times)

February 11, 2015, 09:37:23 PM
Read 1240 times

DutchHans

  • **
  • Information
  • Jr. Member
  • Posts: 39
I have tasker on my Android and I want to query  all door and window sensors if they are closed.
I want to activate a program that checks them and then send a notification to my phone. I read about WebserviceCallReceived to start a HG-program with Tasker.

But how?

I read about it in the Helper Class Reference, but the examplecode comes with an error when its compiled.. I have read the code from other programs.. like the alarm system, but thats not what I want... No Control.On, Control.Off or Toggle... just an execution  from a very simple program..

Can anybody put me on the right track?

Thanks in advance.
Hans

February 11, 2015, 11:38:06 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
You could check the state of the sensors and use one of the push scripts to send the notification to your phone.  You don't need to use your phone to schedule a check, use the script on your HG system instead.

March 12, 2015, 02:41:50 AM
Reply #2

NickP

  • *
  • Information
  • Newbie
  • Posts: 24
I agree with bkenobi; drive the door and window checking with a program in HG and have it send an email to you.

Take a look at the alarm program again, you basically need the  while (Program.IsEnabled)loop. Change the logic to check the door and window modules and modify the send email section as appropriate.