Skip to content

Instantly share code, notes, and snippets.

@hugokernel
hugokernel / openalarm.yaml
Last active September 30, 2015 13:52
Fichier de configuration d'un OpenAlarm Node
devices:
/dev/toto:
config: default
/dev/tty.usbmodemfd131:
config: default
configs:
default:
group: 210
@hugokernel
hugokernel / pled.py
Created March 3, 2016 14:42
pled.py
import time
import serial
import contextlib
DEVICE = '/dev/tty.usbmodemFD131'
DELAY = 0.01
class Serial:
@hugokernel
hugokernel / test.py
Last active June 15, 2018 07:05
Test fit file
from fitparse import FitFile
from collections import OrderedDict
import datetime
UTC_REFERENCE = 631065600
fitfile = FitFile('lagny_fim.fit')
data = {}
for _, msg in enumerate(fitfile.get_messages('hr')):
@hugokernel
hugokernel / ratelimit.py
Last active December 2, 2021 19:24
Async rate limit call
def ratelimit(seconds=0, minutes=None, hours=None, days=None):
"""Rate limit call to a function"""
for var, delay in (
('minutes', 60),
('hours', 60 * 60),
('days', 60 * 60 * 24),
):
if locals()[var] is not None:
seconds += locals()[var] * delay
@hugokernel
hugokernel / dreammachineha.md
Last active September 6, 2023 08:08
Using a Dreammachine as a Doorbell with Home Assistant
@hugokernel
hugokernel / muino-water-meter-esp32.yaml
Last active February 27, 2025 08:33
ESPHome version of muino water meter
substitutions:
name: watermeter
friendly_name: "WaterMeter"
esphome:
name: $name
on_boot:
priority: -10
then:
- script.execute:
@hugokernel
hugokernel / eviciv-asm160qc-disable-no-signal-animation.md
Last active June 25, 2026 14:58
Disable the EVICIV / ASM-160QC "No Signal" Flashing Color Animation (Factory Menu Guide)

EVICIV / CYS ASM-160QC – Disable the annoying "No Signal" color animation

If your EVICIV portable monitor displays an endless flashing color pattern instead of going to sleep when the video signal is lost, this may help.

This was tested on a monitor identified as:

  • Brand: EVICIV
  • OEM: CYS
  • EDID Product Name: ASM-160QC
  • Controller: SVN3102