Author Topic: Trigger an HTTP Post URL, is it possible?  (Read 287 times)

Offline djrakso

  • Sr. Newbie
  • *
  • Posts: 41
  • Karma: +1/-0
Trigger an HTTP Post URL, is it possible?
« on: January 08, 2019, 04:56:11 pm »
Hi all,

I was thinking how to make a simple process that when a temperature falls below 15C that it executes an HTTP POST URL.
Is this possible?

Offline jswim788

  • Hero Member
  • *****
  • Posts: 809
  • Karma: +58/-2
Re: Trigger an HTTP Post URL, is it possible?
« Reply #1 on: January 08, 2019, 06:06:26 pm »
You can set up a scene that is triggered as you desire, then run some Lua code to do the POST.  See this for a code sample:

http://forum.micasaverde.com/index.php?topic=32035.0

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: Trigger an HTTP Post URL, is it possible?
« Reply #2 on: January 09, 2019, 11:11:10 am »
A simple os.execute would do it, I guess

C