Skip to content

Instantly share code, notes, and snippets.

View 877dev's full-sized avatar

877dev 877dev

View GitHub Profile
@877dev
877dev / 877_example_flow.json
Last active March 18, 2021 15:38
Setting up APC UPS monitoring with 'Dockerised' Node Red
[{"id":"e9f6057b.583898","type":"exec","z":"42f852c3.941c8c","command":"ssh [email protected] /sbin/apcaccess","addpay":false,"append":"","useSpawn":"false","timer":"","name":"apcaccess","x":330,"y":1080,"wires":[["fdf663d5.5d4a9","73e4509a.7bd2e","7727397d.4c9bb8"],[],[]]},{"id":"2bdb7bf1.6e87d4","type":"inject","z":"42f852c3.941c8c","name":"every 30 seconds","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"30","crontab":"","once":true,"onceDelay":"","topic":"","payload":"","payloadType":"str","x":140,"y":1080,"wires":[["e9f6057b.583898"]]},{"id":"3c80b3fe.1ed81c","type":"comment","z":"42f852c3.941c8c","name":"Extract data from a connected APC UPS via apcupsd and post to mqtt","info":"","x":610,"y":980,"wires":[]},{"id":"fdf663d5.5d4a9","type":"change","z":"42f852c3.941c8c","name":"$stats/$updated","rules":[{"t":"change","p":"topic","pt":"msg","from":"^(.*)$","fromt":"re","to":"$1/$stats/$updated","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"$now()\t","tot":"jsonata"}],"action":"","prope
@877dev
877dev / daemon.log
Created April 7, 2021 19:14
Pi 4 daemon.log (crash time 19:25:36)
Apr 7 19:21:45 raspberrypi systemd[683]: run-docker-runtime\x2drunc-moby-394ace4c80ec8e9a16a9bf2bb820e3f03449376b7b2873c2b09a6bb2fd48d344-runc.AUhPcc.mount: Succeeded.
Apr 7 19:21:45 raspberrypi systemd[1]: run-docker-runtime\x2drunc-moby-394ace4c80ec8e9a16a9bf2bb820e3f03449376b7b2873c2b09a6bb2fd48d344-runc.AUhPcc.mount: Succeeded.
Apr 7 19:21:54 raspberrypi systemd[1]: Started Session 18300 of user pi.
Apr 7 19:21:55 raspberrypi systemd[1]: session-18300.scope: Succeeded.
Apr 7 19:21:58 raspberrypi systemd[683]: run-docker-runtime\x2drunc-moby-9a365823d704a7b0401a66613fe5fe7eca14529c993810b4ed65c73ec91edcef-runc.WPL92g.mount: Succeeded.
Apr 7 19:21:59 raspberrypi systemd[1]: run-docker-runtime\x2drunc-moby-9a365823d704a7b0401a66613fe5fe7eca14529c993810b4ed65c73ec91edcef-runc.WPL92g.mount: Succeeded.
Apr 7 19:22:15 raspberrypi systemd[683]: run-docker-runtime\x2drunc-moby-394ace4c80ec8e9a16a9bf2bb820e3f03449376b7b2873c2b09a6bb2fd48d344-runc.nV7Car.mount: Succeeded.
Apr 7 19:22:24 raspberrypi systemd[1
@877dev
877dev / Installation instructions.md
Last active April 21, 2021 19:32
Attaching BME280 sensor to a Pi4 and sending to MQTT broker

How I installed the script:

Note this is from a while back so please check for errors as you go!

Update packages:
sudo apt-get update

Check python version:
python --version - need 2.7

@877dev
877dev / 2022-02-13 SKR Mini E3 v2.0 & Neopixels, BL Touch.md
Last active April 13, 2023 12:55
2023-02-15 SKR Mini E3 v2.0 & Neopixels, BL Touch (updated version)

(2023-02-15 version) - rewrite of older guide, this includes BLTouch and Neopixel stick firmware changes, start/end g-code and troubleshooting.

DESCRIPTION:

This is my process of compiling Marlin firmware for the following configuration:

Hardware:
Ender 3 Pro