These instructions have moved to https://github.com/emporia-vue-local/esphome
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
# Gitignore settings for ESPHome | |
# This is an example and may include too much for your use-case. | |
# You can modify this file to suit your needs. | |
/.esphome/ | |
/secrets.yaml | |
/wifi.yaml |
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
# Gitignore settings for ESPHome | |
# This is an example and may include too much for your use-case. | |
# You can modify this file to suit your needs. | |
/.esphome/ | |
/secrets.yaml | |
/wifi.yaml |
- Video by MetalMusings https://www.youtube.com/watch?v=NQ-HnrusGJo
- Linked LinuxCNC Forum Post https://forum.linuxcnc.org/10-advanced-configuration/42048-notes-from-installation-of-ethercat-on-raspberry-pi-4
The folowing is a writup from Hakans forum post!
- Download & Write image to SD card: www.linuxcnc.org/iso/linuxcnc-2.8.1-pi4.zip
- Configure Wifi via
wpa_supplicant.conf
- Put SD card into RPi and verify that RT-PREEMT Kernel is running:
uname -a
- Update everything and reboot:
sudo apt update && sudo apt upgrade && sudo reboot
I'm using debian 10 as my daily so these are *nix commands. Mac should work with these too but you're on your own if you're using Windows. Goal for me is to make a headless raspberry pi I can SSH into and connect to my network using Ethernet. You should be comfortable in command line if you choose to follow this guide.
- Go to https://www.raspberrypi.org/downloads/raspbian and download Raspbian lite archive
unzip
the image- Plug in sdcard. Run
lsblk
to see drives and mount points. Likely, the sdcard will show up in/dev/sda
or /dev/sdb and may have some partitions like/dev/sda1
and/dev/sda2
. - If partitions are mounted, unmount all of them. Ex:
umount /dev/sda1
andumount /dev/sda2
- Copy the raspbian image to the sdcard with
sudo dd if=RASPBIAN_IMAGE_FILE.img of=/dev/sda bs=4M
- Run
sync
to ensure the written contents are flushed - OPTIONAL: To start ssh server on boot, Unplug sdcard and reinsert to remount new partitions. You'll have two with raspbian.
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
import serial | |
import datetime | |
from pymongo import MongoClient | |
port = serial.Serial('/dev/ttyAMA0', baudrate=9600, timeout=2.0) | |
client = MongoClient('172.31.150.230') | |
def read_pm_line(_port): | |
rv = b'' |