Skip to content

Instantly share code, notes, and snippets.

View mwvent's full-sized avatar

Matthew Watts mwvent

View GitHub Profile
@mwvent
mwvent / picam.py
Last active February 10, 2022 00:57
PI Zero Bicycle Dashcam Python Service
#!/bin/python3
# Python script for using my Pi Zero as a Bicycle Dashcam which also live streams
# to an rtsp-simple-server running at home
# Recommended to start as a user systemd service
# This script requires user access to /sys/devices/platform/leds/leds /sys/class/leds
# Also recordings folder tends to corrupt very easily and should be its own filesystem
# I use NTFS to allow police/other windows 10 users to access recordings
# - DO NOT bother with vfat it is too unreliable
# I use the following commands in /etc/rc.local to prepare for running this script
@mwvent
mwvent / plotter.cfg
Created July 29, 2023 14:33
Klipper plotter LCD config and Macros
[gcode_macro PLOTTER_VARS]
variable_plotmode_on: 0
variable_xoffset: -5 ; distance from normal extruder on X axis
variable_yoffset: 18 ; distance from normal extruder on Y axis
variable_zoffset: 5
variable_zdown_offset: -1 ; match z distance gcode files use - for setup
variable_zup_offset: 10 ; distance from z home to lift
variable_zdeploy_offset: 30 ; distance from z for manual deploy
variable_plotting_mode: 0
gcode: