Skip to content

Instantly share code, notes, and snippets.

@waldheinz
waldheinz / prometheus.cgi
Created September 30, 2017 09:20
Prometheus Exporter for Homematic CCU
#!/bin/tclsh
load tclrega.so
source [file join $env(DOCUMENT_ROOT) once.tcl]
source [file join $env(DOCUMENT_ROOT) cgi.tcl]
cgi_eval {
cgi_input
cgi_content_type "text/plain; charset=iso-8859-1; version=0.0.4"