-
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 install and configure files and required dependencies or upgrade an existing install. The user will be able to launch paste a curl script into the RPI ssh or terminal session and end up with a fully functional setup that can then be customized for their particular needs.
For Details See GitHub Wiki How to Install or Upgrade pi-timolo
This is a pi-timolo whiptail admin menu interface. Most common tasks can be accessed via the menu, such as
- Edit configuration files using nano or config.py menu edit system
- View configuration settings
- Convert h264, Joining mp4's or Make timelapse videos from timelapse or motion jpg files
- Checking Run Status of pi-timolo.py and webserver.py
- Starting and stopping pi-timolo.py and webserver.py
To run the menubox.sh
cd ~/pi-timolo
./menubox.sh
Note If you do not get menu box lines displayed in a putty SSH session. Open the top left putty window icon and select, Change Settings, Window, Translation, UTF-8 from pull down menu, then apply. To make this the default putty, prior to apply select session, default then apply.
You may want to consider using a console file manager like Midnight Commander. This runs in an SSH console session and can use a mouse. This makes managing folders and directories easier. To install mc (Midnight Commander). From a console session
sudo apt-get -y install mc
mc
use the function keys for bottom options and/or mouse for selecting files and top/bottom menu options. type exit or press F10 key to exit.
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). You can also set the config.py variable that also sends summary data to a file (recommend you set verbose=False to avoid dual logging)
logDataToFile = True
Note logging data to a file may slow processing due to additional writing of information and is not recommended on a long term basis.
For Details See GitHub Wiki 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 How to View Files via webserver
GitHub Code Here webserver.py
Media syncing to a variety of remote storage services uses rclone to sync specified local folders and files to a folder on a users remote storage service eg DropBox, google drive, Etc. Several sync scripts with rclone- prefix can also be copied or edited tp sync various pi-timolo media files but can also be re-purposed to sync other than pi-timolo media.
For Details See GitHub Wiki How to Setup rclone Sync
GitHub Code Here rclone-sync.sh
This utility will automate single or bulk file 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.
convid.sh can also bulk join mp4 videos into larger date/time stamped output videos per a max_join variable. This is useful for easier viewing or archiving/uploading motion videos if pi-timolo.py is set to recycle file names.
For Details See GitHub Wiki 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 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.