Skip to content

Instantly share code, notes, and snippets.

View NathanAdhitya's full-sized avatar

Nathan Adhitya NathanAdhitya

View GitHub Profile
@NathanAdhitya
NathanAdhitya / lldpd-quick-setup.sh
Last active February 22, 2025 06:53
Debian (and derivatives) quick lldpd idempotent setup script. Set interfaces to en* only and enable other protocols. Tested on Proxmox VE 8.3.
#!/bin/bash
# Credits: https://github.com/abdellbar1/ProxLLDPConfig
apt-get update
apt-get install -y lldpd
echo 'DAEMON_ARGS="-c -s -e"' > /etc/default/lldpd
echo 'configure system interface pattern en*' > /etc/lldpd.d/if.conf
systemctl restart lldpd
systemctl enable lldpd
@NathanAdhitya
NathanAdhitya / eliwell-modbus-esphome.yml
Last active August 18, 2025 15:07
ESPHome YAML snippet for Eliwell EWPlus 974 EO Modbus interface
# This snippet is incomplete, make sure to fill the rest to your needs
# This snippet is made with the assumption:
# - You are using the ESP32-C3 SuperMini
# - You have a 5V <-> 3.3V TTL converter hooked up on GPIO0 and GPIO1
# - GPIO1 (converted) is attached to the RX pin of the EWPlus (TX side of ESP32)
# - GPIO0 (converted) is attached to the TX pin of the EWPlus (RX side of ESP32)
# - Your EWPlus 974 EO is set to use Modbus with device address of 1 (check your device settings)
# By github.com/NathanAdhitya
# Author note:
# - The datasheet parameter table addresses seems to be accurate