Skip to main content

Posts

Showing posts with the label webserver

A Tiny Webserver I use for icons and logging for my Hubitat Controlled ERV project

  I use this for logging from inside a rule, using an HTTP GET, for saving data from Maker API to disk on a Windows host. I will probably add emailing to this app soon so I can send the files as attachments to IFTTT and have them save the attachment to Google drive, I imagine. Here is the rule. C# Code Here And the possibility of using the maker API to run real-time graphs and gauges like in Node-Red. I'm working on a wee project 2 building an ERV system using my Hubitat, Arduino and Xiaomi. Usage HTTP call in rule machine http://192.168.1.71:82/logtempertures.svs?csv=Outside%20Climate,Hallway%20Climate,Bedroom%201,Bedroom%202,Bathroom%20Climate,Room%20Climate,Office%20Climate You can see how the above URL works ?csv=name of device 1, name of device 2 ?csv=name of device 1, name of device 2 Makes the logger log a file on the Windows host for the whole day, and return all the rows currently in the file. ?json=name of device 1, name of device 2 Makes a log for the yyyy-MM-dd-hh-m