tlapse 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +26 -11
- data/exe/tlapse +12 -0
- data/lib/tlapse/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5324eb4dc3078f4ce71933e39fadba6b168243606f404a4fac865f081981dd3
|
4
|
+
data.tar.gz: aeecbd51f6052e1106bb1429e29b0d8db8bf7e3b0907a48a769924825322ca75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 918714a48a19b48ebbd9618346d9ef0ba81d3564d7156334721262b79568c74e32b491b726b6ba8e66e6a8b7d2a96961ef27db0b89bde9bc4a564056d2727a4e
|
7
|
+
data.tar.gz: 345676c5fe6a67c88e2729c02873a6070f972f41f49c4b11d5474d6529855eb68aba6f5c138a8a8c907cf3ef7764dd82011acd5534c2d7fc1a2ff2779973efb5
|
data/README.md
CHANGED
@@ -1,26 +1,41 @@
|
|
1
1
|
# Tlapse
|
2
2
|
|
3
|
-
Automated
|
3
|
+
Automated time lapse photography using gphoto2.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
1. Install gphoto2
|
8
8
|
|
9
|
-
*
|
9
|
+
* macOS: `brew install gphoto2`
|
10
|
+
* Debian/Ubuntu: `sudo apt install gphoto2`
|
10
11
|
|
11
|
-
|
12
|
-
brew install gphoto2
|
13
|
-
```
|
12
|
+
2. `gem install tlapse` or add `gem 'tlapse'` to your `Gemfile`.
|
14
13
|
|
15
|
-
|
14
|
+
## CLI
|
16
15
|
|
17
|
-
|
18
|
-
sudo apt-get install gphoto2
|
19
|
-
```
|
16
|
+
Find better documentation by running `tlapse help` or `tlapse help SUBCOMMAND`
|
20
17
|
|
21
|
-
|
18
|
+
* `tlapse capture` - Capture an image using the tethered camera
|
19
|
+
|
20
|
+
## API
|
21
|
+
|
22
|
+
Mostly useful for cronjobs and the like.
|
23
|
+
|
24
|
+
* Capture images between given hours
|
25
|
+
```ruby
|
26
|
+
Tlapse::Capture.timelapse_command({
|
27
|
+
from: Time.now,
|
28
|
+
to: Time.now + 6.hours,
|
29
|
+
interval: 30.minutes
|
30
|
+
}) # => "gphoto2 --capture-image-and-download -I 1800 -F 12 --filename \"%Y-%m-%d_%H-%M-%S.jpg\""
|
31
|
+
```
|
32
|
+
|
33
|
+
* Capture images from sunset to sunrise
|
34
|
+
```ruby
|
35
|
+
Tlapse::Capture.timelapse_command_while_sun_is_up(interval: 30.minutes)
|
36
|
+
# => "gphoto2 --capture-image-and-download -I 1800 -F -9"
|
37
|
+
```
|
22
38
|
|
23
39
|
## License
|
24
40
|
|
25
41
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
26
|
-
|
data/exe/tlapse
CHANGED
@@ -75,5 +75,17 @@ command :compile do |c|
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
+
desc "Generate a gphoto2 command which captures photos from now until the sun sets (useful for cronjobs)"
|
79
|
+
command :until_sunset do |c|
|
80
|
+
c.flag :i, :interval,
|
81
|
+
desc: "The interval (in minutes) at which pictures will be taken",
|
82
|
+
default_value: "5"
|
83
|
+
|
84
|
+
c.action do |global_options, options, args|
|
85
|
+
interval = options[:interval].to_i.minutes
|
86
|
+
puts Tlapse::Capture.timelapse_command_while_sun_is_up(interval: interval)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
78
90
|
exit run(ARGV)
|
79
91
|
|
data/lib/tlapse/version.rb
CHANGED