This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import time | |
import os | |
import sys | |
import locale | |
import mpv | |
import gi | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk, GLib, Gdk | |
import logging |
OlderNewer