Skip to content

Instantly share code, notes, and snippets.

View mhelff's full-sized avatar

Martin Helff mhelff

View GitHub Profile
@mhelff
mhelff / flow.json
Last active December 14, 2020 10:07
Zigbee2mqtt Admin panel
[{"id":"1112a3ea.54efdc","type":"tab","label":"Z2M Admin","disabled":false,"info":""},{"id":"fe321b77.50b858","type":"function","z":"1112a3ea.54efdc","name":"Format Data","func":"var groupname = msg.groupname;\nvar device = flow.get('device');\n\nif (typeof groupname !== undefined && typeof device !== undefined) {\n var action = \"Adding \";\n var what = \" to group \";\n if(msg.payload == \"remove\") {\n action = \"Removing \";\n what = \" from group \";\n }\nvar msg1 = { payload: device, topic: \"zigbee2mqtt/bridge/group/\" + groupname + \"/\" + msg.payload};\nvar msg2 = { payload: action + \" \" + device + what + groupname };\n\nreturn [msg1, msg2];\n}","outputs":2,"noerr":0,"x":770,"y":1980,"wires":[["67f130eb.efef3","f10dea4c.a81728"],["89490386.cf438"]]},{"id":"89490386.cf438","type":"ui_toast","z":"1112a3ea.54efdc","position":"top right","displayTime":"5","highlight":"","outputs":0,"ok":"OK","cancel":"","topic":"System Notification","name":"","x":920,"y":2020,"wires":[]},{"id"
@mhelff
mhelff / flow.json
Created January 23, 2019 00:31
zigbee2mqtt admin panel
This file has been truncated, but you can view the full file.
@mhelff
mhelff / esp8266-basis.ino
Created March 30, 2016 19:12
Basic Arduino sketch for ESP8266 including WifiManager and OTA update
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ArduinoOTA.h>
#include <WiFiManager.h>
void setup() {
Serial.begin(115200);
Serial.println("Booting");
WiFiManager wifiManager;
@mhelff
mhelff / updategps.sh
Created April 21, 2015 21:28
update gps assist data for sony cameras, place on root of sd card
rm assistme.dat
rm assistme.md5
wget http://control.d-imaging.sony.co.jp/GPS/assistme.dat
wget http://control.d-imaging.sony.co.jp/GPS/assistme.md5
cp assistme.* PRIVATE/SONY/GPS