Skip to content

Instantly share code, notes, and snippets.

esphome:
name: ws2812
platform: ESP8266
board: d1_mini
wifi:
ssid: ''
password: ''
mqtt:
@mplinuxgeek
mplinuxgeek / not_a_real_script.sh
Created October 21, 2019 11:57
Installing hassio on Fedora
$ sudo dnf install jq curl avahi dbus-daemon docker cockpit-docker
$ sudo systemctl enable docker
$ sudo systemctl start docker
$ sudo firewall-cmd --permanent --add-port=8123/tcp
$ sudo firewall-cmd --permanent --add-port=1883/tcp
$ sudo firewall-cmd --reload
$ sudo curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | bash -s
@mplinuxgeek
mplinuxgeek / iperf.service
Last active November 18, 2019 09:48
/etc/systemd/system/iperf.service
[Unit]
Description=iperf server
After=syslog.target network.target auditd.service
[Service]
ExecStart=/usr/bin/iperf -s
[Install]
WantedBy=multi-user.target
esphome:
name: magic_home_01
platform: ESP8266
board: esp01_1m
wifi:
ssid: ""
password: ""
# Change wifi output power (added in 1.14.3)
#output_power: 15dB
esphome:
name: bedroom_light
platform: ESP8266
board: d1_mini
wifi:
ssid: ''
password: ''
web_server:
esphome:
name: wsleaf
platform: ESP8266
board: d1_mini
wifi:
ssid: ''
password: ''
mqtt:
esphome:
name: alarm
platform: ESP8266
board: d1_mini
wifi:
ssid: ''
password: ''
web_server:
#include "Keyboard.h"
const int buttonPin = 4; // input pin for pushbutton
const int timePin = 10; // input pin for pushbutton
const int time_Ground = 16; // input pin for pushbutton
const int LED_Ground = 8; // input pin for pushbutton
const int LED = 9; // input pin for pushbutton
int previousButtonState = HIGH; // for checking the state of a pushButton
void setup() {
@mplinuxgeek
mplinuxgeek / not_a_real_file
Last active March 21, 2020 09:03
Home Assistant Python Virtual environment on Fedora 31
dnf update
reboot
firewall-cmd --add-port=8123/tcp --permanent
firewall-cmd --reload
sudo useradd -rm homeassistant -G dialout
cd /srv
sudo mkdir homeassistant
sudo chown homeassistant:homeassistant homeassistant
@mplinuxgeek
mplinuxgeek / Shell
Created April 28, 2020 14:46
Nemo enable copy/move to right click menu
gsettings set org.nemo.preferences context-menus-show-all-actions true