Skip to content

Instantly share code, notes, and snippets.

View jnyryan's full-sized avatar
💭
Working on Search... and guess what - search is hard

John Ryan jnyryan

💭
Working on Search... and guess what - search is hard
View GitHub Profile
@jnyryan
jnyryan / RPiSetup-IOTStack.md
Last active November 15, 2020 23:12
Homehub

Installs to get the Rpi up and running for IOT Stack

Basics

sudo apt-get -y install git vim curl make zsh screen
sudo apt-get -y install matchbox-keyboard

Manual

  • raspi-config to set hostname
import time
import zmq
from multiprocessing import Process
def ventilator():
context = zmq.Context()
ventilator_send = context.socket(zmq.PUSH)
ventilator_send.bind("tcp://127.0.0.1:5557")
# Give everything a second to spin up and connect
time.sleep(1)