Skip to content

Instantly share code, notes, and snippets.

View stritti's full-sized avatar
👨‍🏫

Stephan Strittmatter stritti

👨‍🏫
View GitHub Profile
@stritti
stritti / js-exif-rotate.html
Created December 12, 2019 19:34 — forked from runeb/js-exif-rotate.html
Auto-rotate images locally in the browser by parsing exif data
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<input id="file" type="file" accept="image/*" />
<br/>
<h2>As read:</h2>
<img id="placeholder1" width=300/><br/>
<h2>Rotated by exif data:</h2>
<img id="placeholder2" width=300/>
<script>
@stritti
stritti / script.js
Last active June 21, 2023 06:03
Script to upload Kostal Plenticore Data from openHAB to PVoutput
var { QuantityType } = require("@runtime");
var HttpUtil = Java.type("org.openhab.core.io.net.http.HttpUtil");
var logger = Java.type('org.slf4j.LoggerFactory').getLogger('org.openhab.rule.' + ctx.ruleUID);
var headerProperty = Java.type("java.util.Properties");
var pvoutputApiKey = "[xxx]";
var pvoutputSystemId = "[xxx]";
var itemName = "KOSTALPLENTICOREPlus85withBattery";