Skip to content

Instantly share code, notes, and snippets.

View YoranSys's full-sized avatar

Yohann Fabri YoranSys

View GitHub Profile
@YoranSys
YoranSys / PiTInfo-heure-pleine-heure-creuse.yaml
Created February 12, 2022 07:54 — forked from haade-administrator/PiTInfo-heure-pleine-heure-creuse.yaml
configuration téléinfo esphome avec homeassistant et Pitinfo plus wemos d1 heure pleine et heure creuse
substitutions:
devicename: TELEINFO-PiTinfo
friendly_name: téléinformation home-assistant
device_description: remontée des infos compteur électrique avec PiTinfo
esphome:
name: $devicename
comment: ${device_description}
platform: ESP8266
board: d1_mini
@YoranSys
YoranSys / second-display.sh
Created October 3, 2017 09:50
Duet IDisplay alternative for linux using X11vnc, for android best client is AndroidVNC
#!/bin/bash
x=1920 # X size of second display
y=1080 # Y size of second display
X_DISPLAY=eDP1 # Your screen, found it whith xrandr
POSITION=left #right
add_modeline() {
local modeline name
modeline="$(gtf "$2" "$3" "$4" | sed -n 's/.*Modeline "\([^" ]\+\)" \(.*\)/\1 \2/p')"