Skip to content

Instantly share code, notes, and snippets.

View awfulwoman's full-sized avatar
🏠
Working from home

Charlie O'Hara awfulwoman

🏠
Working from home
View GitHub Profile
@rikka0w0
rikka0w0 / dell.c
Last active April 19, 2025 20:34
Emulate Dell chargers with ESP-01 module
/*
* Example-Code that emulates a DS2502 - 1kbit EEPROM as a dell power supply
*
* Tested with
* - dell notebook https://forum.pjrc.com/threads/33640-Teensy-2-OneWire-Slave
* - DS9490R-Master, atmega328@16MHz as Slave
* - Arduino ProMini clone
* - esp8266
*
* OneWire messaging starts when AC adapter is plugged to notebook,
@skrobul
skrobul / convert.py
Created April 5, 2022 09:05
convert google timeline location history into owntracks
#!/usr/bin/env python
import json
from datetime import datetime
print("Parsing input data...")
records = json.load(open("./Takeout/Location History/Records.json"))['locations']
print("Done.")
def convert_conn(record):
alias: "[Washing] Done"
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.washing_machine_power
for:
hours: 0
minutes: 0
seconds: 0
above: "500"
@mharsch
mharsch / mt_viki_remote
Created February 18, 2023 18:32
Arduino replaces MT-VIKI KVM remote module for changing / polling selected KVM input
#include <math.h>
// connected to 'D+' pin on mini USB
const int input_pin = 11;
// connected to 'D-' pin on mini USB
const int output_pin = 12;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
substitutions:
name: esphome-web-1dbf28
friendly_name: c3pico-therm-1dbf28
remote_sensor_entity_id: sensor.average_of_temperature_sensors
esphome:
name: ${name}
friendly_name: ${friendly_name}
min_version: 2024.6.0
name_add_mac_suffix: false