This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <esp_camera.h> | |
#include <FastLED.h> | |
#include <SPI.h> | |
#include <SD.h> | |
#include <M5Unified.h> | |
#define KEY_PIN 1 | |
#define LED_PIN 2 | |
#define POWER_GPIO_NUM 18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# sorry this is Python 2 -- the bootloader trigger breaks with Python 3 and I was too lazy to debug | |
import usb, time, struct | |
# Logitech Unifying dongle | |
class unifying_dongle: | |
# constructor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# Author: ceres-c 2019-12-29 | |
# Authenticate to ICODE SLI tags | |
import hid | |
# Global defines & commands | |
password = [0x00, 0x00, 0x00, 0x00] # You have to find it yourself, try to search online in german ;-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Moved to https://github.com/markusressel/ESPHome-Analog-Clock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: plant_moisture | |
platform: ESP32 | |
board: esp32dev | |
wifi: | |
ssid: "spam" | |
password: "eggs" | |
# Enable logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Arduino.h" | |
#include "Wire.h" | |
/* | |
** IP5306 Power Module | |
*/ | |
/* M5 Defaults | |
KeyOff: Enabled | |
BoostOutput: Disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# prerequisites: | |
## install software | |
apt install mariadb-server libmariadbclient-dev sqlite3 | |
## install mysqlclient in virtualenv | |
su -c 'homeassistant/bin/pip3 install mysqlclient --upgrade' -l homeassistant | |
## create database | |
mysql -e 'CREATE SCHEMA IF NOT EXISTS `hass_db` DEFAULT CHARACTER SET utf8' | |
## create user (use a safe password please) | |
mysql -e "CREATE USER 'hass_user'@'localhost' IDENTIFIED BY 'hass_pw'" | |
mysql -e "GRANT ALL PRIVILEGES ON hass_db.* TO 'hass_user'@'localhost'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sonoff RF Bridge 433 / ESPurna and Brennenstuhl RCS 1000 N | |
Taken from | |
http://tinkerman.cat/decoding-433mhz-rf-data-from-wireless-switches-the-data | |
and | |
https://www.itead.cc/wiki/images/5/5e/RF_Universal_Transeceive_Module_Serial_Protocol_v1.0.pdf | |
and | |
https://github.com/pimatic/rfcontroljs/blob/master/src/protocols/switch2.coffee | |
Protocol 'switch2' (Elro) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.demo.app</groupId> | |
<artifactId>demo-app</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<properties> | |
<version.maven-install-plugin>2.5.2</version.maven-install-plugin> | |
<version.non-maven1>1.0.0</version.non-maven1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
extern "C" { | |
#include "user_interface.h" | |
} | |
byte channel; | |
int maxssids=10; /* how much SSIDs we have */ | |
char *ssids[] = { |
NewerOlder