Skip to content

Instantly share code, notes, and snippets.

View lasitha-sparrow's full-sized avatar
🏠
Working from home

Lasitha Wijethilaka lasitha-sparrow

🏠
Working from home
View GitHub Profile
esphome:
name: display_hall
platform: ESP8266
board: nodemcuv2
wifi:
manual_ip:
static_ip: 192.168.XX.XX
gateway: 192.168.XX.1
subnet: 255.255.255.0
esphome:
name: m5cam_esp32_camera
platform: ESP32
board: m5stack-core-esp32
wifi:
ssid: !secret wifi
password: !secret wifi_pw
# Enable logging
@lasitha-sparrow
lasitha-sparrow / README.md
Created March 15, 2020 13:19 — forked from willprice/README.md
Install OpenCV 4.1.2 for Raspberry Pi 3 or 4 (Raspbian Buster)

Install OpenCV 4.1.2 on Raspbian Buster

$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.2/build
$ sudo make install
import os
import time
def measure_temp():
temp = os.popen("vcgencmd measure_temp").readline()
return (temp.replace("temp=",""))
while True:
print(measure_temp())
time.sleep(1)
@lasitha-sparrow
lasitha-sparrow / powerMon.fzz
Created April 11, 2019 07:08 — forked from ItKindaWorks/powerMon.fzz
A simple arduino and ESP8266 program to read and average 2 current transformers and a voltage transformer for monitoring whole house power usage.