This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"4559289f.b3b438","type":"tab","label":"Assistant Relay","disabled":false,"info":""},{"id":"a87f10d7.69ca1","type":"delay","z":"4559289f.b3b438","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"20","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":340,"y":140,"wires":[["e4181900.7ce448"]]},{"id":"cc5745c5.422758","type":"http request","z":"4559289f.b3b438","name":"post","method":"POST","ret":"obj","paytoqs":false,"url":"http://localhost:3000/assistant","tls":"","persist":false,"proxy":"","authType":"","x":770,"y":140,"wires":[["613a534a.7da58c"]]},{"id":"e4181900.7ce448","type":"function","z":"4559289f.b3b438","name":"set payload and headers","func":"msg.message = msg.payload;\nmsg.payload = {\n \"name\": \"Jon\",\n \"command\": msg.message,\n \"broadcast\": false\n};\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nreturn msg;","outputs":1,"noerr":0,"x":570,"y":140,"wires":[["cc574 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Query Kind="Program"> | |
<Reference><RuntimeDirectory>\System.Dynamic.dll</Reference> | |
<Reference><RuntimeDirectory>\System.Globalization.dll</Reference> | |
<Reference><RuntimeDirectory>\System.Text.RegularExpressions.dll</Reference> | |
<NuGetReference>Humanizer.Core</NuGetReference> | |
<NuGetReference>Newtonsoft.Json</NuGetReference> | |
<Namespace>Humanizer</Namespace> | |
<Namespace>Newtonsoft.Json</Namespace> | |
<Namespace>Newtonsoft.Json.Converters</Namespace> | |
<Namespace>System.Dynamic</Namespace> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I found a gist for InfluxDB here: | |
https://gist.github.com/boseji/bb71910d43283a1b84ab200bcce43c26 | |
I followed that but replaced jessie with stretch. | |
Thanks to @fg2it we have a build of Grafana for the Pi complete with instruction to install here: | |
https://github.com/fg2it/grafana-on-raspberry/wiki | |
I went for the Bintray option so I'll get updates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hook in App.OnStartup | |
AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException; | |
private static void CurrentDomainOnUnhandledException(object sender, UnhandledExceptionEventArgs e) | |
{ | |
if (!e.IsTerminating) | |
{ | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino | |
#include <DNSServer.h> | |
#include <ESP8266WebServer.h> | |
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager | |
#include <DHT.h> | |
#include <DHT_U.h> | |
#include <PubSubClient.h> //https://github.com/knolleary/pubsubclient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<root> | |
<!-- | |
Microsoft ResX Schema | |
Version 2.0 | |
The primary goals of this format is to allow a simple XML format | |
that is mostly human readable. The generation and parsing of the | |
various data types are done through the TypeConverter classes |