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/bash | |
| # Set the source directory containing the files | |
| SOURCE_DIR="ORIGIN DIRECTORY" | |
| # Set the destination base directory | |
| DEST_DIR="TARGET DIRECTORY" | |
| # Process each file in the source directory | |
| for file in "$SOURCE_DIR"/motion_*.jpg; do |
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
| /** | |
| * Lego (Powered Up) train control from Home Assistant / MQTT with BellRing | |
| * | |
| * Licence: GPLv3 | |
| * | |
| * needed libraries: | |
| * legoino https://github.com/corneliusmunz/legoino | |
| * > 1.1.0, tested with commit 4daae4f683b087b8c443a4c813934e3dfff41d69 | |
| * home-assistant-integration https://github.com/dawidchyrzynski/arduino-home-assistant | |
| * 1.3.0 |
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 sys | |
| if not sys.version.startswith('3'): | |
| print('\n[-] This script will only work with Python3. Sorry!\n') | |
| exit() | |
| import subprocess | |
| import os |