im Git Tips&Tricks ist ein neues Beispiel
ich habe das gemäss Beispiel ein Item angelegt und im Transfomations ordender die Datei mqttitude-maps.js folgenden Inhalt angelegt.
Das Item zeigt aber nichts an.
Was soll da eigentlich passieren bekomme eine Map mit Possiton angezeigt oder einfach einen Link.
Wo her weiss ich weis ich wer diesen Artikel im Git erstellt hat und wie ich Ihn konntaktieren kann.
How to format a Google Maps URL from a Mqttitude Mqtt message
First, create a MQTT entry in your items file that subscribes to the Mqttitude push:
The transform is a javascript file in the configuration/Transform directory (mqttitude-maps.js). This file is very simple:
The value of your item (Map_Dan_Phone) will be set to the result value.
First, create a MQTT entry in your items file that subscribes to the Mqttitude push:
Code:
String Map_Dan_Phone {mqtt="<[home:mqttitude/dan/iphone5s:state:JS(mqttitude-maps.js)]"}
Code:
var location = eval('(' + input + ')'); result = "http://maps.google.com/maps?z=12&t=m&q=loc:" + location.lat + "+" + location.lon;
Code:
var location = eval('(' + input + ')'); result = "http://maps.google.com/maps?z=12&t=m&q=loc:" + location.lat + "+" + location.lon;
Was soll da eigentlich passieren bekomme eine Map mit Possiton angezeigt oder einfach einen Link.
Wo her weiss ich weis ich wer diesen Artikel im Git erstellt hat und wie ich Ihn konntaktieren kann.
Kommentar