Skip to content

Instantly share code, notes, and snippets.

View 877dev's full-sized avatar

877dev 877dev

View GitHub Profile
@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

@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 / 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 / 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 pi@192.168.1.100 /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 / Dockerfile
Last active March 15, 2021 20:46
IOTstack support for apcupsd-mqtt
FROM python:3-alpine
MAINTAINER Brandon <hey@bgulla.dev>
USER root
COPY ./src /src
RUN pip install -r /src/requirements.txt \
&& chown -R 1001:1001 /src
USER 1001
WORKDIR ["/src"]
@877dev
877dev / zigbee2mqtt-docker-compose-add-new-device
Last active April 23, 2022 14:49
Docker Compose instructions for adding new unsupported devices to Zigbee2mqtt
## Docker Compose
To setup a local copy of zigbee-herdsman-converters so that you can modify e.g. `devices.js` and from`Zigbee.js`; use the following instructions:
`cd /opt`
`git clone https://github.com/Koenkk/zigbee-herdsman-converters.git`
Now add the volumes to your `docker-compose.yml `
Example:
@877dev
877dev / Node Red Alexa temp fix.md
Last active January 29, 2021 14:08
Node Red Alexa temp fix for "failed to load routines: no body"

Info

I am using IOTstack which works with Docker, you will need to change your node-modules directory as needed.

Preparation

Stop node-red container (I used Portainer CE)
Open linux terminal/Putty

Backup the originals:

cd /home/pi/IOTstack/volumes/nodered/data/node_modules/alexa-remote2
sudo mv alexa-remote.js alexa-remote.js.BAK

@877dev
877dev / Bed levelling.md
Last active December 23, 2020 19:56
Bed levelling Ender 3 Pro, manual mesh bed & Marlin 2.0.x

My bed levelling procedure:

Hardware/software used:

Ender 3 Pro
SKR Mini E3 V2.0
Marlin 2.0.x bugfix

Set the Z axis limit switch height:

  1. Move the nozzle so it is above the top left screw, which is the wheel where the heater cable connects
@877dev
877dev / 2021-04-21 SKR Mini E3 v2.0 & Neopixels.md
Last active February 25, 2023 00:10
Marlin 2.0.x bugfix, SKR Mini E3 v2.0 and Neopixels

(2021-04-21 version)

DESCRIPTION:

This is my experience of getting a Neopixel working with the following:

Hardware:
Ender 3 Pro
SKR mini E3 V2.0