This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: est-poe-32 | |
friendly_name: EST-PoE-32 | |
esp32: | |
board: esp32dev | |
framework: | |
type: esp-idf | |
# Enable logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Notification Commands - The useful commands are for Android only. | |
# See this documentation for more information: https://companion.home-assistant.io/docs/notifications/notification-commands | |
# Pause YouTube | |
service: notify.mobile_app_marc_phone | |
data: | |
message: command_media | |
data: | |
media_package_name: com.google.android.youtube | |
media_command: pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Samba | |
sudo apt install samba | |
# Add Share to Samba configuration file | |
sudo nano /etc/samba/smb.conf | |
#At the bottom of the file add share details, e.g. | |
[isos] | |
comment = PXE Boot ISOs | |
path = /home/pxe/iventoy-1.0.19/iso |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start iVentoy web interface for first time | |
sudo bash iventoy.sh start | |
# Start iVentoy Web interface and service (no need to press green button) | |
sudo bash iventoy.sh -R start | |
# Transfer ISO image from local machine to PXE Boot Server | |
scp thefilename.iso username@ipaddress:/isopath | |
# Create symbolic link so that ISOs can be saved somewhere else but seen by iVentoy | |
# iVentoy needs to see ISOs in the "iso" folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Always good to update things first | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Install SSH | |
sudo apt-get install openssh-server | |
# Enable Service | |
sudo systemctl enable ssh | |
# Allow through Firewall | |
sudo ufw allow ssh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: water-sensor-1 | |
friendly_name: Water Sensor 1 | |
esp8266: | |
board: d1_mini | |
# Enable logging | |
logger: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
variable1: "test1" | |
esphome: | |
name: ${variable1} | |
friendly_name: Test1 | |
esp8266: | |
board: d1_mini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add module called 'crypto' | |
const token = msg.token; | |
const secret = msg.secret; | |
const t = Date.now(); | |
const nonce = msg.payload; | |
const data = token + t + nonce; | |
const signTerm = crypto.createHmac('sha256', secret) | |
.update(Buffer.from(data, 'utf-8')) |
NewerOlder