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
@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";
@adlerweb
adlerweb / ytwll2m3u.php
Created Apr 26, 2015
Youtube WatchLater to Playlist Script
View ytwll2m3u.php
<?php
/**
* Youtube Watch Later List To Playlist Script
*
* This script fetches your watch later list and outputs it as an M3U playlist
*
* Requirements:
* PHP enabled webserver
* Google PHP API (https://github.com/google/google-api-php-client)
@adlerweb
adlerweb / w1vz.php
Last active Jul 21, 2018
VZ/PHP/DS18B20/Raspi
View w1vz.php
<?php
if (! function_exists('pcntl_fork')) die('PCNTL functions not available on this PHP installation');
$mapping = array(
'000002386cd3' => 'da68e010-df8f-11e3-8d00-af6cb310cad1',
'0000023882e5' => 'e172e220-df8f-11e3-8e0d-7d816ca63379',
'00000238a7bd' => 'e5df5840-df8f-11e3-942a-6d89eca9798f'
);
$middleware = 'http://192.168.101.109/middleware.php';
$maxforks = 10;
@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 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"
}
View gpstest2.ino
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <NMEAGPS.h>
#include <SoftwareSerial.h>
/**
* Required libs (see manager):
* - SoftwareSerial
* - NeoGPS
*/
View espdht.ino
#include <Arduino.h>
// wenn aktiv: Meldungen per Serial
#define SERIAL
// wenn auskommentiert: delay()
// wenn aktiv: deep sleep nutzen (Hardwaremodifikation notwendig)
#define DEEP
View sds011-esp8266.ino
#include <ESP8266WiFi.h>
#define DEBUG
// Wi-Fi Settings
const char* ssid = "freifunk-myk.de"; // your wireless network name (SSID)
const char* password = ""; // your Wi-Fi network password
WiFiClient client;
// ThingSpeak Settings
View tacho.ino
unsigned long last1 = 0;
unsigned long last2 = 0;
unsigned long lasts = 0;
unsigned int dur1 = 0;
unsigned int dur2 = 0;
byte tgt1 = 128;
byte tgt2 = 128;
void setup() {
Serial.begin(115200);
You can’t perform that action at this time.