-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from geraldoramos/develop
V0.2 release
- Loading branch information
Showing
9 changed files
with
80 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
# CHANGELOG | ||
|
||
**v0.2-alpha** | ||
* Included option to change streaming server port during installation | ||
* Major refactoring: created a module system to simplify creation of new modules and make it more maintainable. Modules are now organized and self-contained. | ||
* Improved the installation script code |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Pigeon Module system | ||
|
||
Each module should have a folder that includes the following scripts: | ||
|
||
**install.sh** | ||
Called during Pigeon installation | ||
|
||
**on_movie_end.sh** | ||
Called when a new motion recording video is finalized. The full path to the movie file is available through variable $1. | ||
|
||
**on_picture_save** | ||
Called when a new motion picture is taken. The full path to the picture file is available through variable $1. | ||
|
||
It should also include a "binaries" folder, where any external bundled script should be stored. | ||
|
||
More options will be available soon. |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Define the installation routine for this module | ||
echo "Installing Dropbox" | ||
sudo ./modules/dropbox/binaries/dropbox_uploader.sh |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
#Define on_movie_end routine for this module. Path to file is available through variable $1 | ||
|
||
echo "on_movie_end routine for Dropbox" | ||
sudo /home/pi/pigeon/modules/dropbox/binaries/dropbox_uploader.sh upload $1 /detections/ && rm -rf $1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
#Define on_picture_save routine for this module. Path to file is available through variable $1 | ||
|
||
echo "on_picture_save routine for Dropbox" | ||
sudo /home/pi/pigeon/modules/dropbox/binaries/dropbox_uploader.sh upload $1 /detections/ && rm -rf $1 |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This will run module-specific routines | ||
# Receives the type of argument to run (ex: install, on_movie_end or on_picture_save). | ||
|
||
echo "Starting Modules script" | ||
|
||
for d in modules/*/ ; do | ||
chmod +x '/home/pi/pigeon/'$d$1'.sh' | ||
sudo '/home/pi/pigeon/'$d$1'.sh' $2 | ||
done |