-
Notifications
You must be signed in to change notification settings - Fork 102
Utilities
There are several utilities included with pi-timolo
This bash script automates the install of pi-timolo files and permissions. It will perform
a RPI raspbian system apt-get update and upgrade so if these have not been run for a while it may take some time.
For Easy install of PI-TIMOLO onto a raspbian RPI.
From a computer logged into the RPI via ssh(Putty) session use mouse to highlight command below, right click, copy. Then
Select ssh(Putty) window then mouse right click, paste. The command should download and execute the GitHub pi-timolo-install.sh script for pi-timolo.
curl -L https://raw.github.com/pageauc/pi-timolo/master/source/install.sh | bash
For Details See GitHub Wiki Here How to Install or Upgrade pi-timolo
This is a bash script that launches pi-timolo.py as a background task. It can be run from a ssh session (Note once running the ssh session can be closed and pi-timolo.py will run as a background task until the process is stopped, killed or RPI is rebooted. From a logged in ssh or RPI desktop terminal session execute the following commands
cd ~/pi-timolo
./pi-timolo.sh start
To stop the background pi-timolo.py program. At a logged in ssh or terminal session
cd ~/pi-timolo
./pi-timolo.sh stop
or to check status
./pi-timolo.sh
Alternatively pi-timolo.sh can be setup to automatically run when the RPI is booted up. This is done by using nano editor to add an entry in the /etc/rc.local file per the following
sudo nano /etc/rc.local
Use nano editor to add a new entry just before the exit 0 per the following. Then ctrl-x y to save changes
To run as pi user
#
# By default this script does nothing.
su pi -c "nohup /home/pi/pi-timolo/pi-timolo.sh start >/dev/null 2>&1 &"
exit 0
TIP To record verbose logging information to a file, change /dev/null to a file location (config.py verbose must be set to verbose=True). Note this may slow processing due to additional writing of information and is not recommended on a long term basis.
For Details See GitHub Wiki Here How To Run on Boot
This is a single file stand alone webserver that needs minimal or no setup. This webserver can be used to remotely view images, video, document, Etc. files from other (LAN) network connected computers using a web browse. Directory links to files and subfolders are dynamically created and displayed in a right side listing that can be arranged and sorted via variables. Variables are contained in the script and allow customization of webserver display and configuration settings.
For Details See GitHub Wiki Here How to View Files via webserver
GitHub Code Here webserver.py
Uses gdrive to push (sync) local files to a folder on the users google drive. This script can also be re purposed to sync files other than pi-timolo images.
For Details See GitHub Wiki Here How to Setup gdrive Sync
GitHub Code Here sync.sh
This utility will automate conversion of h264 files to mp4 format. It uses the MP4Box utility that is installed as part of gpac (per pi-timolo-install.sh script). Default is to process h264 files in the /home/pi/pi-timolo/motion folder.
For Details See GitHub Wiki Here How to Convert h264 video to MP4
GitHub Code Here convid.sh
This bash script creates a timelapse video from motion or timelapse images. avconv is used to create an mp4 or avi timelapse video from the source jpg files in source folder (default is /home/pi/pi-timolo/timelapse). A temporary working folder is created since avconv requires consecutively numbered filenames. I often cull small images (very black or very white) so there will be gaps in the numbering. The soft links created in the working folder are created with consecutive numbering thus eliminating the need for the source folder files to have consecutive numbering.
Note This script replaces makemovie.sh and makedailymovie.sh.
For Details See GitHub Wiki Here How to Create a Timelapse Video
Github Code Here makevideo.sh
Displays active ip addresses of the Raspberry pi wlan and eth (needed if you access webserver.py). Note you can also use the raspbian ifconfig command. Usage from ssh or terminal shell
./myip.sh
- Wiki Home
- Introduction
- Prerequisites
- Install or Upgrade
- Run pi-timolo from a drive mnt
- Customize config.py
- Panoramic Images
- user_motion_code.py
- Align Camera Motion Area
- Schedule StartAt
- Basic Troubleshooting
- Tuning Variable Settings
- menubox.sh
- Web Server View Files
- Make Timelapse Video
- Join or Convert h264 to MP4
- Run on Boot
- Setup & Run shutdown.py
- Rclone Media Sync
- watch-app.sh Usage
- Plugins Usage
- Mount USB Storage
- Mount Network Share
- Auto SubFolder Creation
- Manage Disk Space
- Utilities Summary
- GitHub Repo
gdrive is no longer default.