What does - “Http Post” do?

V3 help and support questions

What does - “Http Post” do?

Postby lar282 on Thu Mar 18, 2010 12:42 pm

Hi
Has anybody used(or can explain) what this does?
- 0000793: [triggers] new “Http Post” trigger added (stevenhanna6) – resolved.


I'm really looking for a way to push a refresh to a web client when certain things happen on the server. Example:
When an overlay is opened on the server I wanna push a refresh to the webserver to refresh the client so the web client can see the overlay and doesn't have to wait for the default time when the web server syncs.

//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Re: What does - “Http Post” do?

Postby samsonlov on Wed Mar 31, 2010 8:08 pm

Sorry if this reply is incomplete, but I just spent over 45 minutes typing-up a full tutorial on the HTTP Post, but because the stupid (Read: "VERY SHORT") auto-forum-log-out time kicked me out - and Without Any Notification, when I tried to upload the photos I lost everything I typed. :mad: :mad: :mad:

So here's the short version:
HTTP Post triggers are just another way to control XLobby.
You send a command to XLobby via HTTP, and that command is interpreted as a "trigger" (which you have already created), and then you execute whatever event you want. The possibilities are endless - off-site remote control, iphone apps, etc. - If a device can send a "post" command, it can control XLobby. I'm sure the guys on the forum will do WAY cooler stuff than my silly door state interface, but hey, it's a start. :lol:

I use the DSP ports on Aroura Multimedia's WACI NX+ to sense the state of 4 relays connected to my alarm panel, and for example: when the WACI detects a "high" (+5V) state on DSP1, it sends the command "door1open" using 192.168.1.120:8002/post. When the WACI detects a "low" (<+2V) state on DSP1, it sends the post command "door1close" using 192.168.1.120:8002/post. I set-up the corresponding triggers in XLobby to show or hide button IDs that correspond to the appropriate doors.

HTTP Post Image 1 - Event.JPG
This is how you create HTTP Post "Triggers".


HTTP Post Image 2 WACI Event.JPG
These are the events that I use for Post Triggers.


HTTP Post Image 3 WACI Output.JPG
This is a sample of a post trigger with the relevant info.


Hope that helps.
:)
samsonlov
 
Posts: 220
Joined: Thu Sep 25, 2008 1:39 am
Location: Los Angeles, CA

Re: What does - “Http Post” do?

Postby wesblack on Thu Apr 01, 2010 9:45 pm

Samson.........Thanks for posting this. Don't forget my monster energy drinks.....! :D

1388174207_s.gif
1388174207_s.gif (6.61 KiB) Viewed 7274 times





Wes Black \ Calrad
wesblack
 
Posts: 852
Joined: Mon Mar 05, 2007 5:02 pm
Location: Valencia, Ca

Re: What does - “Http Post” do?

Postby lar282 on Fri Apr 02, 2010 7:26 am

Thank u for posting it. Now I understand.

//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Re: What does - “Http Post” do?

Postby samsonlov on Wed Apr 07, 2010 3:55 am

I hear Monster's will be appearing during the xLobby dealer day.
:)
samsonlov
 
Posts: 220
Joined: Thu Sep 25, 2008 1:39 am
Location: Los Angeles, CA

Re: What does - “Http Post” do?

Postby samsonlov on Fri Apr 09, 2010 7:24 am

Hey Wes,
I saw 24 monsters in your office.

:mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen:
:mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen:
:mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen:
:mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen:
samsonlov
 
Posts: 220
Joined: Thu Sep 25, 2008 1:39 am
Location: Los Angeles, CA

Re: What does - “Http Post” do?

Postby billberet on Fri Apr 09, 2010 4:58 pm

don't get that bloated feeling, try 5hr energy !!!!
:lol:
billberet
 
Posts: 666
Joined: Mon Sep 29, 2008 9:26 pm
Location: NYC

Re: What does - “Http Post” do?

Postby samsonlov on Fri Apr 09, 2010 6:50 pm

Wes loves those Monsters.
samsonlov
 
Posts: 220
Joined: Thu Sep 25, 2008 1:39 am
Location: Los Angeles, CA

Re: What does - “Http Post” do?

Postby smarty on Wed Aug 04, 2010 7:46 pm

lar282 wrote:Hi
Has anybody used(or can explain) what this does?
- 0000793: [triggers] new “Http Post” trigger added (stevenhanna6) – resolved.


I'm really looking for a way to push a refresh to a web client when certain things happen on the server. Example:
When an overlay is opened on the server I wanna push a refresh to the webserver to refresh the client so the web client can see the overlay and doesn't have to wait for the default time when the web server syncs.

//Lasse


I read the whole thread, but ....does this (can this) refresh the web client or not???
smarty
 
Posts: 179
Joined: Thu Jul 27, 2006 12:04 am
Location: San Antonio, TX USA

Re: What does - “Http Post” do?

Postby CaM on Sun Aug 08, 2010 6:49 pm

hi, does this mean that xlobby can now be controlled via tcp/ip?

thanks

CaM
CaM
 
Posts: 75
Joined: Tue Apr 06, 2004 11:05 am
Location: NZ - living in France

Re: What does - “Http Post” do?

Postby samsonlov on Mon Aug 09, 2010 7:19 am

CaM wrote:hi, does this mean that xlobby can now be controlled via tcp/ip?

thanks

CaM


yup.
:)
samsonlov
 
Posts: 220
Joined: Thu Sep 25, 2008 1:39 am
Location: Los Angeles, CA