Skip to content

Instantly share code, notes, and snippets.

{ config, lib, pkgs, fetchPypi, ... }:
let
py = pkgs.python2;
pypkgs = py.pkgs;
log = pkgs.writeScript "log.sh" ''
#!${pkgs.runtimeShell}
set -euo pipefail
@mbernson
mbernson / README.md
Created December 2, 2015 11:36
Publish openwrt log contents to MQTT

Router logging to MQTT

This configuration sends all (or part of) your OpenWRT logs to a MQTT broker. I'm writing it up here for future reference.

I made this so I can keep track of wireless clients as they associate and disassociate with my home network. This way, my home automation setup can make decisions based on that information. :)

Installation