I use a cheap Tapo C100 webcam to monitor my 3D prints. It supports RTSP.
- Go to the Cameras section at https://connect.prusa3d.com
- Add a new camera.
- Click the QR code link
- Click "Start Camera"
| type: custom:stack-in-card | |
| card_mod: | |
| style: "ha-card * {--ha-card-border-width: 0; --vertical-stack-card-gap: 0px; }" | |
| cards: | |
| - type: grid | |
| columns: 2 | |
| square: false | |
| cards: | |
| - type: custom:mushroom-template-card | |
| primary: Prusa MK4 |
I use a cheap Tapo C100 webcam to monitor my 3D prints. It supports RTSP.
Based on this blogpost.
To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.
Install with Homebrew:
$ brew install gpg| MOVED HERE: | |
| https://gist.github.com/naveenkrdy/26760ac5135deed6d0bb8902f6ceb6bd |
| #!/usr/bin/env python | |
| import sys | |
| import json | |
| import datetime | |
| # Feed me with output of: | |
| # ffprobe -f lavfi -i movie=INPUT.mov,ocr -show_entries frame=pkt_dts_time:frame_tags=lavfi.ocr.text -of json | |
| input= sys.argv[1] | |
| id = 0 | |
| old_time = '00:00:00,000' |
| According to all known laws of aviation, there is no way a bee should be able to fly. | |
| Its wings are too small to get its fat little body off the ground. | |
| The bee, of course, flies anyway because bees don't care what humans think is impossible. | |
| Yellow, black. Yellow, black. Yellow, black. Yellow, black. | |
| Ooh, black and yellow! | |
| Let's shake it up a little. | |
| Barry! Breakfast is ready! | |
| Coming! | |
| Hang on a second. | |
| Hello? |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
| import subprocess | |
| import os | |
| import re | |
| import pycountry | |
| class RemuxingFilestoMKV: | |
| """ | |
| This python script combines videos and their subtitles into mkv container without loosing quality. |
| import glob, os | |
| # point path to directory containing the shows | |
| # load episode titles into `ep.txt` | |
| path = r"I:\Videos\show" | |
| new_filenames = [] | |
| with open(path + '\\ep.txt', 'r') as f: | |
| for line in f: | |
| new_filenames.append(line) |
| #!/bin/bash | |
| OIFS="$IFS" | |
| IFS=$'\n' | |
| find ./ -name "*.srt" -type f | | |
| while read file | |
| do | |
| if ! [[ `file -bi "$file"` =~ utf-8$ ]] | |
| then |