Skip to content

Instantly share code, notes, and snippets.

@robbi5
robbi5 / README.md
Last active June 19, 2023 22:25
Nuki Opener, but as ESPHome device

ESP based door buzzer (for intercoms, like nuki opener)

  • Create a new device in ESPHome, use the contents from esphome.yml as template
  • Create a new automation in your homeassistant, use buzz-open.automation.yml as template

Device

Connect a transistor / relais controlling your intercom buzzer line to GPIO D2 of your esp.

Webhook

Look into https://www.home-assistant.io/docs/automation/trigger/#webhook-trigger for documentation.

@robbi5
robbi5 / README.md
Last active May 27, 2023 00:27
epson pos printer firmware

Download and extract epson pos printer firmware

Note: you may need to append -A or -B to your ProductName, based on which wifi adapter you use. If you don't, try -A.

Get Firmware List

curl -X "POST" "https://www.epson-biz.com/api/firm/" \
     -H 'Content-Type: application/json' \
     -d $'{
  "Rev": "2",
@robbi5
robbi5 / mi.md
Last active January 4, 2020 17:12
mobility inside api documentation

mobility inside is a new app, built by mobimeo, currently in its beta phase, that wants to solve the hassle of booking tickets for german public transport. the app - other than its competitors - is build on a relatively nice api that enables booking tickets even without using the app itself.

this is an unofficatial documentation for this api. feedback and improvements welcome.

hosts:

tenant URL
DING https://ding-mi.mobimeo.io
AVG https://avg-mi.mobimeo.io
MVG https://mvg-mi.mobimeo.io
@robbi5
robbi5 / jiaotong-kiosk.service
Created September 25, 2019 12:56
jiaōtōng Kiosk Mode
[Unit]
Description=Jiaotong Kiosk
Requires=jiaotong.service
After=jiaotong.service
[Service]
WorkingDirectory=/home/pi
ExecStart=/usr/bin/chromium-browser --kiosk --no-first-run http://localhost:4200
[Install]
@robbi5
robbi5 / elasticsearch.conf
Created August 12, 2018 10:01
elasticsearch upstart config
description "elasticsearch"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
respawn limit 10 5
@robbi5
robbi5 / main.cpp
Created August 5, 2018 09:55
esphomeyaml mh-z19
// Auto generated code by esphomeyaml
#include "esphomelib/application.h"
#include <MHZ19_uart.h>
using namespace esphomelib;
class MHZ19Sensor : public sensor::PollingSensorComponent {
protected:
GPIOPin *pin_rx_;
timestamp ble wifi pax
2018-07-21T18:32:06Z 1 4 5
2018-07-21T18:45:13Z 4 106 110
2018-07-21T18:49:13Z 2 106 108
2018-07-21T18:53:13Z 3 131 134
2018-07-21T18:57:13Z 3 105 108
2018-07-21T19:01:13Z 2 111 113
2018-07-21T19:05:13Z 2 122 124
2018-07-21T19:09:13Z 2 119 121
2018-07-21T19:13:13Z 3 108 111
@robbi5
robbi5 / chunk-hpgl.js
Created July 20, 2018 09:08
Chunk long PD (pen down) lines in hpgl into small blocks. This should help with plotters w/ little memory
process.stdin.setEncoding('utf8');
let commands = [];
let current = '';
const flatten = (arr) => {
return Array.prototype.concat(...arr);
}
const collectChunk = (chunk) => {
current = current + chunk;
@robbi5
robbi5 / readme.md
Last active July 13, 2018 09:39
chrome headless on uberspace7

chrome headless on uberspace7

cd ~/tmp

download and extract chrome

wget -O chrome-linux.zip https://download-chromium.appspot.com/dl/Linux_x64?type=snapshots
unzip chrome-linux.zip
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 49 columns, instead of 8. in line 3.
ISO 3166-2,2013-01,2013-02,2013-03,2013-04,2013-05,2013-06,2013-07,2013-08,2013-09,2013-10,2013-11,2013-12,2014-01,2014-02,2014-03,2014-04,2014-05,2014-06,2014-07,2014-08,2014-09,2014-10,2014-11,2014-12,2015-01,2015-02,2015-03,2015-04,2015-05,2015-06,2015-07,2015-08,2015-09,2015-10,2015-11,2015-12,2016-01,2016-02,2016-03,2016-04,2016-05,2016-06,2016-07,2016-08,2016-09,2016-10,2016-11,2016-12
n/a,29255,27000,30116,30324,30435,31435,35194,32878,32261,31907,27792,29806,30832,27159,26868,25248,25935,25722,28138,26607,25677,26893,21858,23310,24628,21762,27083,24850,26555,25906,27912,26969,25595,25833,23913,25149,26171,25187,26619,25653,26254,26190,27846,29390,27469,22671,22862,22964
DE-BW,10783,11309,12836,14924,14016,14425,18235,15755,17043,17848,16418,14936,17544,15703,19329,19452,19353,17839,20420,17190,19221,21014,19573,19251,25795,23139,27499,23252,20503,24413,30248,24027,25059,28349,26264,24977,31405,31487,33522,33653,30893,34449,33283,32250,33565,32385,33570,31590
DE-BY,10502,8929,9097,10182,9580,10054,1238