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 neoclock.ino
/**
* NeoClock
*
* Clock using 60 WS2812B/Neopixel LEDs and DS3231 RTC
*
* Libraries needed:
* * Adafruit NeoPixel (Library Manager) - Phil Burgess / Paint Your Dragon for Adafruit Industries - LGPL3
* * Rtc by Makuna (Library Manager) - Michael C. Miller
* * Arduino Timezone Library (https://github.com/JChristensen/Timezone) - Jack Christensen - CC-BY-SA
* * Time Library (https://github.com/PaulStoffregen/Time) - Paul Stoffregen, Michael Margolis - LGPL2.1
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;
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);
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 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 gpstest2.ino
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <NMEAGPS.h>
#include <SoftwareSerial.h>
/**
* Required libs (see manager):
* - SoftwareSerial
* - NeoGPS
*/
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 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
@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)
@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;
You can’t perform that action at this time.