Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CQC HTTP Events?
#17
(01-09-2020, 01:31 PM)Dean Roddey Wrote: You can always write a little windows service that does the listening and the driver connects to it I guess. Otherwise it has to be a C++ driver.

Or you could use a variables driver and have the trigger driver dump data into it from the incoming posts.

Here's how I have done it with other systems.  Can you help guide with how to do this with CQC?

HomeSeer plugins are already using the HS webserver and are available at http://<hs_server>/<plugin_name>/<plugin_page_xxx> with this I can have my own page that accepts the post or get and I can parse out the data and use it for the plugin

ISY Nodeserver I used the Python http.server to listen on a high port and accept a POST and then parse and hand the data off to the nodeserver.  The http server is running in user space and high port not requiring root permissions and the thread is run from the polyglot instance so I can pass my data around.

CQC already has a webserver running and possibly maybe use the HTTP-Trigger?  But the variables are not always the same of what comes from the HTTP POST as it is only sending what has changed/updated weather wise.  So there needs to be some degree of logic/validation to variables which maybe a macro?  I'm not sure.

I suppose I could still write a python service that sits and listens for the data, processes and then writes a file and CQC read and process the file?  Or I could process and push the data to MQTT and process it in CQC that way.  There's probably other ways to do this as well, but I need some guidance on clean normal way of doing this with CQC rather than a jumbled hack.
Reply


Messages In This Thread
CQC HTTP Events? - by bjkiller - 02-09-2009, 12:15 AM
CQC HTTP Events? - by znelbok - 02-09-2009, 12:30 AM
CQC HTTP Events? - by bjkiller - 02-09-2009, 12:34 AM
CQC HTTP Events? - by znelbok - 02-09-2009, 03:51 AM
CQC HTTP Events? - by wuench - 02-09-2009, 06:48 AM
RE: CQC HTTP Events? - by simplextech - 01-07-2020, 12:03 PM
RE: CQC HTTP Events? - by Dean Roddey - 01-07-2020, 02:47 PM
RE: CQC HTTP Events? - by simplextech - 01-07-2020, 04:34 PM
RE: CQC HTTP Events? - by Dean Roddey - 01-07-2020, 04:49 PM
RE: CQC HTTP Events? - by simplextech - 01-07-2020, 05:22 PM
RE: CQC HTTP Events? - by simplextech - 01-08-2020, 03:48 PM
RE: CQC HTTP Events? - by Dean Roddey - 01-08-2020, 06:17 PM
RE: CQC HTTP Events? - by simplextech - 01-08-2020, 06:29 PM
RE: CQC HTTP Events? - by Dean Roddey - 01-09-2020, 09:23 AM
RE: CQC HTTP Events? - by simplextech - 01-09-2020, 09:39 AM
RE: CQC HTTP Events? - by Dean Roddey - 01-09-2020, 01:31 PM
RE: CQC HTTP Events? - by simplextech - 01-09-2020, 02:11 PM
RE: CQC HTTP Events? - by znelbok - 01-09-2020, 03:00 PM
RE: CQC HTTP Events? - by simplextech - 01-09-2020, 03:20 PM
RE: CQC HTTP Events? - by Dean Roddey - 01-09-2020, 06:05 PM
RE: CQC HTTP Events? - by simplextech - 01-09-2020, 06:31 PM
RE: CQC HTTP Events? - by Dean Roddey - 01-10-2020, 01:16 PM
RE: CQC HTTP Events? - by simplextech - 01-10-2020, 04:57 PM
RE: CQC HTTP Events? - by Dean Roddey - 01-11-2020, 06:43 AM
RE: CQC HTTP Events? - by simplextech - 01-11-2020, 06:48 AM
RE: CQC HTTP Events? - by Dean Roddey - 01-11-2020, 07:06 AM
RE: CQC HTTP Events? - by simplextech - 01-11-2020, 07:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error trying to edit scheduled events George M 15 2,433 09-27-2020, 09:27 AM
Last Post: George M
  Get Field Value via HTTP znelbok 3 1,201 06-11-2020, 03:43 PM
Last Post: Dean Roddey
  HTTP Trigger and Parameters znelbok 1 939 06-11-2020, 03:41 PM
Last Post: Dean Roddey
  HTTP SendPUT simplextech 3 1,480 01-21-2020, 03:05 PM
Last Post: simplextech
  Set value via HTTP Call simplextech 2 1,204 01-07-2020, 04:39 PM
Last Post: simplextech
  Scheduled Events Caseta tom 18 6,191 12-22-2019, 07:06 AM
Last Post: Dean Roddey
  Editing Triggered Events Possibly Causing Kernel Panic/Crash gReatAutomation 6 2,693 11-08-2019, 01:10 PM
Last Post: Dean Roddey
  Possible Bug with Triggered Events gReatAutomation 3 1,567 09-19-2019, 02:41 PM
Last Post: gReatAutomation
  HTTP Trigger Driver - see trained URL's? Shaky 1 1,656 09-15-2019, 12:25 PM
Last Post: Dean Roddey
  Scheduled Events - Cannot find the specified path gReatAutomation 4 1,602 08-16-2019, 12:21 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)