Skip to content

Instantly share code, notes, and snippets.

View natm's full-sized avatar
🐶
woof!

Nat Morris natm

🐶
woof!
View GitHub Profile
@natm
natm / dashboard.json
Created January 26, 2021 12:22
ADS-B Grafana dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
44.131.5.0/24
44.131.5.0/28 Loopbacks
44.131.5.1 router1.treffgarne.org
44.131.5.16/28 Point to points
44.131.5.64/28 Infrastructure
44.131.5.65 router1
44.131.5.66 ups1
@natm
natm / notes
Last active July 8, 2017 22:28
full screen notes
apt-get install lightdm
https://github.com/elalemanyo/raspberry-pi-kiosk-screen
@natm
natm / homie-currentcost.pde
Last active November 20, 2016 21:59
CurrentCost power usage to MQTT using Homie
#include <Homie.h>
#include <SoftwareSerial.h>
#define FW_NAME "currentcost"
#define FW_VERSION "0.0.2"
const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54" FW_NAME "\x93\x44\x6b\xa7\x75";
const char *__FLAGGED_FW_VERSION = "\x6a\x3f\x3e\x0e\xe1" FW_VERSION "\xb0\x30\x48\xd4\x1a";
#include <SoftwareSerial.h>
#define PUSHINTERVAL 10
SoftwareSerial mySerial = SoftwareSerial(4, 14);
byte readByte = 0xFF;
byte pinState = 0;
char startPattern[] = "<ch1><watts>";
char endPattern[] = "<";
@natm
natm / evohomemqtt.py
Created November 18, 2016 22:24 — forked from davesarg/evohomemqtt.py
An Evohome to MQTT bridge
#! /usr/bin/env python3
"""Uses the brilliant Evohome Client from Andrew Stock to query the status of
a Honeywell Evohome heat system and publishes the responses to an a MQTT broker.
Evohome Client available https://github.com/watchforstock/evohome-client
Run with your username and password
eventcmd = /home/pi/bin/evohomemqtt.py -u username -p password
"""
ceng NS ns-cloud-e1.googledomains.com.
ceng NS ns-cloud-e2.googledomains.com.
ceng NS ns-cloud-e3.googledomains.com.
ceng NS ns-cloud-e4.googledomains.com.
wb NS ns-cloud-e1.googledomains.com.
wb NS ns-cloud-e2.googledomains.com.
wb NS ns-cloud-e3.googledomains.com.
wb NS ns-cloud-e4.googledomains.com.
wbtest1 NS ns-cloud-e1.googledomains.com.
wbtest1 NS ns-cloud-e2.googledomains.com.
wb NS ns-cloud-e1.googledomains.com.
wb NS ns-cloud-e1.googledomains.com.
wb NS ns-cloud-e1.googledomains.com.

Keybase proof

I hereby claim:

  • I am natm on github.
  • I am nat (https://keybase.io/nat) on keybase.
  • I have a public key whose fingerprint is 61D2 21DD A630 1F00 04DF 3609 8A22 F06A 1E51 D0C8

To claim this, I am signing this object: