Extract values from Senec JSON with string-hex-floats and push them to InfluxDB
SENEC_URL=http://senec.local/lala.cgi INFLUX_URL=https://influx.yourserver.net/ INFLUX_ORG=your_org INFLUX_TOKEN=your_token ./senec-to-influx.py
{ a: 7, b: 2, c: 5, d: 4, e: 1, f: 3, g: 8, h: 6 } |
# alle Dateien, deren Name auf _B endet … | |
find . -name "*_B" -print0 | xargs -0 ./reduce.py > processed.csv | |
# erster Versuch mit Pipes | |
cat 20181011_06-04-51_B \ | |
| awk 'NR == 1 || NR == 2 || NR % 100 == 0' \ | |
| sed -e 's/ \+/ /g' \ | |
| cut -d ' ' -f 1-10 \ |
package net.earthlingsoft.uritest; | |
import java.net.URI; | |
import java.net.URISyntaxException; | |
import java.util.Arrays; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import java.util.stream.IntStream; | |
import java.util.stream.Stream; |
#!/usr/bin/env sh | |
# | |
# Script to clone gitx from github and build it using | |
# the scripts provided by the project. | |
# | |
# Sven-S. Porst @ssp <[email protected]> | |
# | |
git clone https://github.com/ssp/gitx.git | |
cd gitx |
SELECT ?color ?label (lang(?label) AS ?language) ?rgb WHERE { | |
?color wdt:P31/wdt:P279* wd:Q1075. # instance or subclass of »colour« | |
?color wdt:P465 ?rgb. # store sRGB value in ?rgb | |
?color rdfs:label ?label. # store label in ?label | |
FILTER (lang(?label)="de" || lang(?label) = "en" || lang(?label) = "fr" || lang(?label) = "tr") | |
} | |
ORDER BY ASC(?rgb) | |
#!/usr/bin/env sh | |
ps aux | cut -b 16-22 | sed -e "s/\s*//" | grep -v PID | sort -n | xargs -n 1 -IA sh -c "codesign --verify --deep A" |
👒 | |
👀 | |
🐽 | |
👅 | |
👕 | |
👖 |
iterate = function (e, level) { | |
var message = ''; | |
e.children().each( function() { | |
var logString = ''; | |
for (var i = 0; i < level; i++) { logString += '>'; } | |
logString += this.nodeName + ' '; | |
if (this.id) { logString+= '#' + this.id + ' '; } | |
if (typeof this.className === 'string') { logString += '.' + this.className.split(' ').join(' .'); } | |
message += logString + "\n"; | |
message += iterate($(this), level + 1); |
I hereby claim:
To claim this, I am signing this object: