Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Joachim Hummel unixweb

Block or report user

Report or block unixweb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@unixweb
unixweb / locale.tcl
Created May 10, 2019
locale.tcl für svxlink zur Deutschen Sprachausgabe von Uhrzeit
View locale.tcl
###############################################################################
#
# Locale specific functions for playing back time, numbers and spelling words.
# Often, the functions in this file are the only ones that have to be
# reimplemented for a new language pack.
#
###############################################################################
#
# Spell the specified word using a phonetic alphabet
@unixweb
unixweb / toogle.json
Created Mar 18, 2019
Node-Red Toogle Node
View toogle.json
[{"id":"3850aecb.ae7fa2","type":"function","z":"2a04a5df.aa15d2","name":"Toogle boolean","func":"/* \nif we receive a true we toogle output\nand store the new state in a local context \nwith a unique name \n*/ \nvar fname = \"toggle1\";\n\nif(msg.payload === true){\n\nif(context.get(fname) === false){\n msg.payload = true; \n}else{\n msg.payload = false;\n}\ncontext.set(fname, msg.payload);\n}\nreturn msg;","outputs":1,"noerr":0,"x":420,"y":120,"wires":[["85e80158.2a284"]]},{"id":"85e80158.2a284","type":"combine-if","z":"2a04a5df.aa15d2","topic":"","name":"","timeout":0,"x":610,"y":120,"wires":[["ebde7127.bff24"],["e169a7ad.1e1898"]]},{"id":"5fd0d0c8.9a891","type":"inject","z":"2a04a5df.aa15d2","name":"","topic":"setup","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":120,"wires":[["3850aecb.ae7fa2"]]},{"id":"ebde7127.bff24","type":"debug","z":"2a04a5df.aa15d2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false"
@unixweb
unixweb / anruf.json
Last active Mar 4, 2019
Anrufweiterleitung mit Fritzbox und Node-Red
View anruf.json
[{"id":"203a9aad.9e133e","type":"tab","label":"Fritzbox","disabled":false,"info":""},{"id":"ecf93999.3965c8","type":"inject","z":"203a9aad.9e133e","name":"Anrufweiterleitung einschalten","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":269,"y":173,"wires":[["a34a96a0.4e7208"]]},{"id":"2eef830c.6f84f4","type":"fritzbox-in","z":"203a9aad.9e133e","device":"4a125cf6.71cc64","name":"Fritz","service":"urn:dslforum-org:service:X_AVM-DE_OnTel:1","action":"SetDeflectionEnable","arguments":"{\"NewDeflectionId\":\"value\",\"NewEnable\":\"value\"}","x":813,"y":258,"wires":[[]]},{"id":"a34a96a0.4e7208","type":"function","z":"203a9aad.9e133e","name":"Anrufweiterleitung Ein","func":"var string = {\"NewDeflectionId\":\"0\",\"NewEnable\":\"1\"};\nmsg.payload = string;\nreturn msg;\n","outputs":1,"noerr":0,"x":560,"y":172,"wires":[["2eef830c.6f84f4"]]},{"id":"d107d06b.f56f68","type":"function","z":"203a9aad.9e133e","name":"Anrufweiterleitung Aus","func":"var string = {\"New
@unixweb
unixweb / button.json
Created Feb 26, 2019
Beispiel NodeRed Buttons
View button.json
[{"id":"cf86934d.b64208","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"459b119.9863df","type":"inject","z":"cf86934d.b64208","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":253,"y":143,"wires":[["488345cf.1ae6c4"]]},{"id":"488345cf.1ae6c4","type":"debug","z":"cf86934d.b64208","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":507,"y":141,"wires":[]},{"id":"41e23040.abdef","type":"ui_button","z":"cf86934d.b64208","name":"","group":"aba39e2.32562e","order":0,"width":0,"height":0,"passthru":false,"label":"button1","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":242,"y":208,"wires":[[]]},{"id":"360e61fc.15dace","type":"ui_button","z":"cf86934d.b64208","name":"","group":"331e6055.3f781","order":0,"width":0,"height":0,"passthru":false,"label":"button2","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":239,"y":258,"wires":[
@unixweb
unixweb / benzinpreis-info.json
Created Sep 3, 2018
Benzinpreis Info mit clever-tanken.de
View benzinpreis-info.json
[{"id":"de7f592f.426b4","type":"tab","label":"benzinpreise","disabled":false,"info":""},{"id":"17602fbb.76d9e","type":"html","z":"de7f592f.426b4","name":"","property":"payload","tag":"span","ret":"text","as":"single","x":610,"y":220,"wires":[["d073b7f3.18f4e","60def84f.1b22d"]]},{"id":"90a570f5.03e88","type":"inject","z":"de7f592f.426b4","name":"","topic":"tank1","payload":"","payloadType":"date","repeat":"","crontab":"00 12 * * *","once":false,"onceDelay":0.1,"x":150,"y":220,"wires":[["b2894f43.dcb4e8"]]},{"id":"b2894f43.dcb4e8","type":"http request","z":"de7f592f.426b4","name":"Bavaria Petrol - Munich","method":"GET","ret":"txt","url":"https://www.clever-tanken.de/tankstelle_details/33072","tls":"","x":390,"y":220,"wires":[["17602fbb.76d9e"]]},{"id":"d073b7f3.18f4e","type":"function","z":"de7f592f.426b4","name":"Parse Value","func":"msg.payload = msg.payload[38];\nreturn msg;","outputs":1,"noerr":0,"x":790,"y":220,"wires":[["9c0741c7.a33d58","8874821d.3c10b8"]]},{"id":"c1b8c77f.44295","type":"googlehome-no
@unixweb
unixweb / volumio.json
Last active Dec 11, 2018
Volumio Volume Control via Amazon Echo
View volumio.json
[{"id":"5f24c18e.924a48","type":"tab","label":"Radio","disabled":false,"info":"<img src=\"123\">"},{"id":"be7e3ac9.2862e","type":"http request","z":"5f24c18e.924a48","name":"Stop","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=stop","tls":"","x":650,"y":240,"wires":[[]]},{"id":"af16ca8d.3f8f9","type":"http request","z":"5f24c18e.924a48","name":"Play","method":"GET","ret":"txt","url":"http://volumio.local/api/v1/commands/?cmd=play","tls":"","x":650,"y":280,"wires":[[]]},{"id":"4da63411.d4be6c","type":"alexa-local","z":"5f24c18e.924a48","devicename":"Radio","inputtrigger":true,"x":310,"y":340,"wires":[["f4da5dcc.f65818","1b8080d0.ae3aaf","38e74a8d.5a903e"]]},{"id":"f4da5dcc.f65818","type":"switch","z":"5f24c18e.924a48","name":"Volumio","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"off","vt":"str"},{"t":"cont","v":"on","vt":"str"}],"checkall":"true","outputs":2,"x":480,"y":260,"wires":[["be7e3ac9.2862e"],["af16ca8d.3f8f9"]]},{"id":"ae7cd232.77dad8","type":"injec
@unixweb
unixweb / anycubic-nodered.json
Last active Jul 5, 2018
Ancubic i3 Mega with MQTT and Dashboard
View anycubic-nodered.json
[{"id":"d342ce12.10a86","type":"tab","label":"Anycubic","disabled":false,"info":""},{"id":"3dfc13c1.f4ceec","type":"function","z":"d342ce12.10a86","name":"","func":"msg.payload = msg.payload.actual\nreturn msg;\n","outputs":1,"noerr":0,"x":670,"y":280,"wires":[["f8a5d3f2.74807","8e3407ca.94e06"]]},{"id":"f8a5d3f2.74807","type":"debug","z":"d342ce12.10a86","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":850,"y":280,"wires":[]},{"id":"ea246b95.69218","type":"mqtt in","z":"d342ce12.10a86","name":"Tisch Temperatur","topic":"octoprint/temperature/bed","qos":"2","broker":"b73e5ba8.6c53e","x":200,"y":280,"wires":[["7b50d338.96e4fc"]]},{"id":"7b50d338.96e4fc","type":"json","z":"d342ce12.10a86","name":"","property":"payload","action":"","pretty":false,"x":470,"y":280,"wires":[["3dfc13c1.f4ceec"]]},{"id":"4a7536a9.c421b8","type":"json","z":"d342ce12.10a86","name":"","property":"payload","action":"","pretty":false,"x":470,"y":380,"wires":[["e8ac512c.27e97"]]},{"id":"c911
@unixweb
unixweb / Mytheme.js
Created May 24, 2018
/home/ubuntu/.node-red/lib/themes
View Mytheme.js
// name: MyTheme
{"theme":{"base-color":{"default":"#4B7930","value":"#4B7930","edited":false},"page-titlebar-backgroundColor":{"value":"#4B7930","edited":false},"page-backgroundColor":{"value":"#111111","edited":false},"page-sidebar-backgroundColor":{"value":"#000000","edited":false},"group-textColor":{"value":"#ffffff","edited":true},"group-borderColor":{"value":"#555555","edited":false},"group-backgroundColor":{"value":"#4b7930","edited":true},"widget-textColor":{"value":"#eeeeee","edited":false},"widget-backgroundColor":{"value":"#4b7930","edited":false},"widget-borderColor":{"value":"#333333","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":3,"py":3}}}
@unixweb
unixweb / dashboard-flow.json
Last active May 23, 2018
Beispiel Dashboard Node-Red
View dashboard-flow.json
[{"id":"75594a12.1defcc","type":"tab","label":"GUI Octopus","disabled":false,"info":""},{"id":"f0c7fba.0248308","type":"mqtt in","z":"75594a12.1defcc","name":"Temperature BME280","topic":"bme280/Temperature","qos":"2","broker":"b73e5ba8.6c53e","x":140,"y":80,"wires":[["4e8ed466.b0d774","199ff16.b22260f"]]},{"id":"86ba80c4.c4c5d","type":"ui_gauge","z":"75594a12.1defcc","name":"","group":"bff7198e.17ad98","order":1,"width":0,"height":0,"gtype":"gage","title":"Temperature BME280","label":"° Celsius","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"30","seg2":"31","x":740,"y":80,"wires":[]},{"id":"8c2038e3.88a13","type":"ui_chart","z":"75594a12.1defcc","name":"","group":"bff7198e.17ad98","order":4,"width":0,"height":0,"label":"Temperature BME280","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#
@unixweb
unixweb / doors.json
Created May 23, 2018
Node-Red Icons
View doors.json
[{"id":"29e0e77c.6d3b78","type":"ui_template","z":"ca55e714.8cafb8","group":"fe3b5a9c.4026c","name":"Türe Terrasse","order":0,"width":"3","height":"4","format":"<p> <center>Terrasse</center> </p>\n<div ng-bind-html=\"msg.payload\"></div>\n</body>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":580,"y":160,"wires":[[]]},{"id":"a4747682.28e728","type":"inject","z":"ca55e714.8cafb8","name":"Open","topic":"","payload":"<img src=\"https://node.unixweb.eu/pic/doors/door-9-128.png\">","payloadType":"str","repeat":"","crontab":"","once":false,"x":372.8833312988281,"y":227,"wires":[["29e0e77c.6d3b78"]]},{"id":"39d0caec.09b4d6","type":"inject","z":"ca55e714.8cafb8","name":"Close","topic":"","payload":"<img src=\"https://node.unixweb.eu/pic/doors/door-10-128.png\">","payloadType":"str","repeat":"","crontab":"","once":true,"x":372.8833312988281,"y":287,"wires":[["29e0e77c.6d3b78"]]},{"id":"20881627.4a9f92","type":"change","z":"ca55e714.8cafb8","name":"","rules":[{"t":"change","p":"payload","pt":
You can’t perform that action at this time.