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 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 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 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; |
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 sds011.php
<?php | |
if($argc != 2) { | |
echo 'Usage: '.$argv[0].' Port'."\n"; | |
echo 'example: '.$argv[0].' /dev/ttyUSB0'."\n"; | |
exit(2); | |
} | |
$port = @fopen($argv[1], 'r+'); | |
if(!$port) { |
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 ina-config.php
<?php | |
$mysql_serv = 'localhost'; | |
$mysql_user = 'usblogger'; | |
$mysql_pass = 'usblogger'; | |
$mysql_datb = 'volkszaehler'; | |
$uuid_v = 1; | |
$uuid_a = 2; | |
?> |
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 |
NewerOlder