more G-Labs products

Author Topic: Passing Variable from Trigger code to Program code  (Read 1913 times)

January 07, 2015, 01:14:34 AM
Read 1913 times

mrrrl2

  • *
  • Information
  • Newbie
  • Posts: 6
Is this possible? I want to trigger off of multiple lights turning on (different times), then pass the module (Light) name to the program code which will email with the correct name of the light that just turned on. This way I have only one program for all lights rather then one light, one program.

Can I use a case statement and pass the name via a variable or am I barking up the wrong tree in complexity and should just do a separate program for each light? Talking about 5-10 lights.

On another note, it took me several hours to get gmail to work, but ended up having to allow "Access for less secure apps" on the gmail account. I am still using SSL and port 587 but it now works.

January 07, 2015, 07:25:33 AM
Reply #1

mvdarend

  • *****
  • Information
  • Hero Member
  • Posts: 431
One option is to use the PushingBox App for this. Configure -> Automation -> Messaging and Social.

You could easily modify the PushingBox App to send emails instead of using the push service.

Here is an example of a modified PushingBox App to use another service, Pushalot. And this one uses Pushover.
« Last Edit: January 07, 2015, 07:27:06 AM by mvdarend »

January 07, 2015, 08:04:24 AM
Reply #2

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Another option could be the Messaging And Social->Alcatel One Touch app that uses checkbox instead of input box.
You can find some bit of documentation about "features" here:
http://www.homegenie.it/docs/automation_advanced.php

g.

January 07, 2015, 07:12:40 PM
Reply #3

mvdarend

  • *****
  • Information
  • Hero Member
  • Posts: 431
Another option could be the Messaging And Social->Alcatel One Touch app that uses checkbox instead of input box.
You can find some bit of documentation about "features" here:
http://www.homegenie.it/docs/automation_advanced.php

I didn't realize that. I've now changed the PushingBox code, much better. :)