tlapse 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -11
  3. data/exe/tlapse +12 -0
  4. data/lib/tlapse/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ff1722b82dff58436630cbf837ef2ec23a0c1232be0b12ff6dc7505608a282f
4
- data.tar.gz: b14aa2d9ebba1d9e1a7399e4a11f6735cb16f429d5d131d7d8f8fc93d60c0c8c
3
+ metadata.gz: d5324eb4dc3078f4ce71933e39fadba6b168243606f404a4fac865f081981dd3
4
+ data.tar.gz: aeecbd51f6052e1106bb1429e29b0d8db8bf7e3b0907a48a769924825322ca75
5
5
  SHA512:
6
- metadata.gz: d12047f3681cebc003970ba2ae692f8218507b1016101e6817825452b173540b1ab1c93ed5958a85e3be2efb95d985e178c78ed7f0484ae5bac9683700c5db5b
7
- data.tar.gz: b26d6598fbd050797f60a46eda035dab194dd74d260c25eaabb3b560e0f479798ecaadaf5e50606596fc9b265a9fe021f1d678a1683c8def03ceb574bc89db18
6
+ metadata.gz: 918714a48a19b48ebbd9618346d9ef0ba81d3564d7156334721262b79568c74e32b491b726b6ba8e66e6a8b7d2a96961ef27db0b89bde9bc4a564056d2727a4e
7
+ data.tar.gz: 345676c5fe6a67c88e2729c02873a6070f972f41f49c4b11d5474d6529855eb68aba6f5c138a8a8c907cf3ef7764dd82011acd5534c2d7fc1a2ff2779973efb5
data/README.md CHANGED
@@ -1,26 +1,41 @@
1
1
  # Tlapse
2
2
 
3
- Automated your time lapse photography using gphoto2.
3
+ Automated time lapse photography using gphoto2.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  1. Install gphoto2
8
8
 
9
- * OSX
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
- * Linux
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
- 2. `gem install tlapse`
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
 
@@ -1,3 +1,3 @@
1
1
  module Tlapse
2
- VERSION = "0.3.3"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tlapse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Toniazzo