Skip to content

Instantly share code, notes, and snippets.

import paho.mqtt.client as mqtt
from sty import fg, bg, rs
width = height = 5
mqtt_server = ""
mqtt_topic = "matrixflut"
def on_connect(client, userdata, flags, rc):
print("Connected (rc={})".format(rc))
Kartoffel / M5_IR_MQTT.ino
Created Apr 11, 2020
M5 Atom MQTT to IR bridge for controlling Edifier speakers
View M5_IR_MQTT.ino
// Compile for ESP32 Pico Kit, upload rate 115200 baud
#include <Arduino.h>
#include <WiFi.h>
#include <PubSubClient.h>
#include <IRremoteESP8266.h>
#include <IRsend.h>
#define MQTT_SERVER ""
#define MQTT_TOPIC_DEBUG "niek/debug/"
#define MQTT_TOPIC_BASE "niek/speakers/"

Keybase proof

I hereby claim:

  • I am kartoffel on github.
  • I am kartoffel ( on keybase.
  • I have a public key ASCbsREMOHC4s_x6f_Wlhu7POwV519nIJoc2Fv1b4vW_qgo

To claim this, I am signing this object:

Kartoffel /
Created Oct 17, 2017
Backup etherpad pads, starting from one pad that contains the URLs of the other pads to backup
curl -o badge
for i in $(cat badge | grep -Po '(?<\/p\/)(.*)'); do curl -o $i "$i/export/txt"; done
You can’t perform that action at this time.