Skip to content

Instantly share code, notes, and snippets.

View boop5's full-sized avatar
🏠
Working from home

LSC boop5

🏠
Working from home
View GitHub Profile
@bfritscher
bfritscher / sendToHA.js
Created September 14, 2022 13:08
node.js script to upload external data to home assistant via the websocket api
const W3CWebSocket = require("websocket").w3cwebsocket; // npm install websocket
const host = "127.0.0.1";
const port = 8123;
const protocol = "ws"; // ws or wss if ssl
// long lived access token from profile > Create Token
const access_token ="";
const entityName = "Energy Consumption";
const entityId = "energy_consumption_kwh";
@krobertson
krobertson / parts.md
Last active March 8, 2023 05:43
Voron 2.4 Printed Parts List

Voron 2.4 Printed Parts List

Parts for: Electronics_Compartment/DIN_Brackets

  [ ] [ ]     duet_duex_bracket_x2.stl
  [ ]         lrs_psu_bracket_clip.stl
  [ ] [ ] [ ] pcb_din_clip_x3.stl
  [ ] [ ]     ramps_bracket_x2.stl
@fernandoaleman
fernandoaleman / Linux Static IP
Created March 23, 2012 16:20
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static