Skip to content

Instantly share code, notes, and snippets.

Florian Knodt adlerweb

Block or report user

Report or block adlerweb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View irFerraris.ino
/***************************************************************************
IR Ferraris Reader
2019 Adlerweb//Bitbastelei
Florian Knodt - www.adlerweb.info
Note: Just a few minutes of coding, not heavily tested, etc
***************************************************************************/
#include <Arduino.h>
View vzapi.php
<?php
/*
Usage:
- platform: command_line
name: foo
command: "php -f /home/homeassistant/vzapi.php 1"
unit_of_measurement: "W"
Todo:
- Rewrite in Python
View ledmatrix.ino
#include <LEDMatrixDriver.hpp>
extern "C" {
#include "user_interface.h"
}
// This sketch draw marquee text on your LED matrix using the hardware SPI driver Library by Bartosz Bielawski.
// https://github.com/bartoszbielawski/LEDMatrixDriver
// Example written 16.06.2017 by Marko Oette, www.oette.info
View EFTPOS-TestKbdLCD.ino
#include <Arduino.h>
#include <SPI.h>
#include <MCP23S17.h>
#include <Wire.h>
#include <LiquidCrystal_PCF8574.h>
extern "C" {
#include "user_interface.h"
}
@adlerweb
adlerweb / vz.md
Created Sep 12, 2018
Grafana MySQL query to visualize Volkszähler-Data
View vz.md

Using Channel-IDs (that's not UUID)

SELECT
  timestamp/1000 as time_sec, 
  data.value as value, 
  properties.value as metric
FROM data
  LEFT JOIN properties ON (properties.entity_id = data.channel_id)
  LEFT JOIN entities ON (entities.id = data.channel_id)
View mqtt-test.ino
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <PubSubClient.h>
const char* cfg_wifi_ssid = "freifunk-myk.de";
const char* cfg_wifi_pwd = "";
const char* mqtt_server = "deinserver.local";
const unsigned int mqtt_port = 1883;
@adlerweb
adlerweb / LCDWiFi.ino
Created Jun 10, 2018
ESP8266 HD44780 WiFi
View LCDWiFi.ino
#include <LiquidCrystal.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
const char *ssid = "freifunk-myk.de";
const char *password = "";
const char *netname = "esp-lcd";
View gpstest2.ino
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <NMEAGPS.h>
#include <SoftwareSerial.h>
/**
* Required libs (see manager):
* - SoftwareSerial
* - NeoGPS
*/
View geomag.php
<?php
$port = STDIN;
$out = array();
$b=0;
$dlc = -1;
$buffer = array();
while(!feof($port)) {
$curByte = ord(fread($port, 1));
@adlerweb
adlerweb / vref.ino
Created Jul 28, 2017
Voltage reference hack
View vref.ino
#include <Bounce2.h>
//Pin mapping
const byte LED[] = {2,4,3,5}; //Jepp, I screwed up while soldering ;)
const byte SW = 6;
const byte SYSLED = LED_BUILTIN;
//ATT: When powering on or switching voltages the output may provide +10V for a brief moment
const String volt[] = {
You can’t perform that action at this time.