Skip to content

Instantly share code, notes, and snippets.

View adotagarwal's full-sized avatar

adotagarwal

View GitHub Profile
@EleotleCram
EleotleCram / aprintf
Last active April 16, 2023 05:14
Simple arduino formatted printf
int aprintf(char *str, ...) {
int i, j, count = 0;
va_list argv;
va_start(argv, str);
for(i = 0, j = 0; str[i] != '\0'; i++) {
if (str[i] == '%') {
count++;
Serial.write(reinterpret_cast<const uint8_t*>(str+j), i-j);
@mbernson
mbernson / camera.yaml
Last active March 9, 2024 23:45
esphome configuration for the TTGO T-Camera ESP32-WROVER-B
# esphome configuration for the TTGO T-Camera ESP32-WROVER-B
# https://www.aliexpress.com/item/TTGO-T-Camera-ESP32-WROVER-B-PSRAM-Camera-Module-ESP32-WROVER-OV2640-Camera-Module-0-96/32966036489.html
# I use this 3D-printed case for the device:
# https://www.thingiverse.com/thing:3540059
esphome:
name: woonkamer
platform: ESP32
board: esp32dev
substitutions:
devicename: ttgocam
friendly_name: test esp32cam
ip_address: 192.168.1.230
esphome:
name: $devicename
platform: ESP32
board: esp-wrover-kit
@jdeluyck
jdeluyck / gist:cafb5fff57a823639b3bdb0a8a6b667d
Created July 9, 2020 18:44
Script to decrypt Home Assistant encrypted SecureTar snapshots.
#!/usr/bin/env python3
import sys
import getopt
import hashlib
import tarfile
import glob
import os
import shutil
@Bazmundi
Bazmundi / t-camera.yaml
Last active May 26, 2024 04:14
LilyGo TTGO T-Camera V1.6.2 yaml for ESPHome
esphome:
name: t_camv162
platform: ESP32
board: esp-wrover-kit
wifi:
ssid: "xxxx-xxxx"
password: "xxxxxxxx"
manual_ip:
static_ip: xxx.xxx.xxx.xxx
@TheGroundZero
TheGroundZero / esp32_tcam.yaml
Created July 16, 2021 20:08
ESPHome config for LILYGO® TTGO T-Camera ESP32
# https://s.click.aliexpress.com/e/_9y4QA5
# Based on https://gist.github.com/Snipercaine/d8345571563536e9661422c3509d1119
# And https://community.home-assistant.io/t/working-esphome-config-for-ttgo-esp32-camera-board-with-microphone/126231
# Note: pins are not the same as in the docs above and even the picture on AE differs from the picture in the box
#
# Folder structure based on Frenck's config
# https://github.com/frenck/home-assistant-config/tree/master/config/esphome
substitutions:
slug: esp32_tcam
@junalmeida
junalmeida / configuration.yaml
Last active May 14, 2023 13:16
Wyze Lock Quirkz for Home Assistant
zha:
enable_quirks: true
custom_quirks_path: /config/zigbee/quirks