goprocam 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/goprocam.rb +19 -15
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22fa94046ab35fd8804747e2a7e637431d25eb8a
|
4
|
+
data.tar.gz: 86c386f68c0bc0e4951afceb68be46e4c372d24c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9062e1f9baae174c4273a67ccd9e2f820b1aa7df02ead023c0ea1ea9dd6687a86b1845d8250dd08c7856e279f1343e307863fb8d62125cd77390ee5dc85c656a
|
7
|
+
data.tar.gz: '0968cad702ec7eb042b4622c0af0612b51fa51b0f425cdec4b1372d5ef07de73515b6eeb99b62e3c17d57afd4160b0d96db104a6434536990d8bc9f9c5c17b8d'
|
data/lib/goprocam.rb
CHANGED
@@ -14,11 +14,14 @@ class Camera
|
|
14
14
|
status(Status::Status, Status::STATUS::IsConnected)
|
15
15
|
end
|
16
16
|
end
|
17
|
-
def
|
17
|
+
def gpControlSet(param,value)
|
18
18
|
response = open(GOPROCONTROL + 'setting/' + param + '/' + value).read
|
19
19
|
puts response
|
20
20
|
end
|
21
|
-
|
21
|
+
def gpControlCommand(param)
|
22
|
+
response = open(GOPROCONTROL + 'command/' + param).read
|
23
|
+
puts response
|
24
|
+
end
|
22
25
|
def status_raw()
|
23
26
|
response = open(GOPROCONTROL + 'status').read
|
24
27
|
puts response
|
@@ -172,7 +175,7 @@ class Camera
|
|
172
175
|
puts "serial number: ", " " + info_camera(Camera::SerialNumber)
|
173
176
|
end
|
174
177
|
def shutter(value)
|
175
|
-
response =
|
178
|
+
response = gpControlCommand('shutter?p=' + value)
|
176
179
|
puts response
|
177
180
|
end
|
178
181
|
def take_photo()
|
@@ -183,38 +186,38 @@ class Camera
|
|
183
186
|
shutter(Shutter::ON)
|
184
187
|
end
|
185
188
|
def camera_mode(mode, submode="0")
|
186
|
-
response =
|
189
|
+
response = gpControlCommand('sub_mode?mode=' + mode + '&sub_mode=' + submode)
|
187
190
|
puts response
|
188
191
|
end
|
189
192
|
|
190
193
|
def delete(option)
|
191
|
-
response =
|
194
|
+
response = gpControlCommand('storage/delete/' + option)
|
192
195
|
puts response
|
193
196
|
end
|
194
197
|
|
195
198
|
def delete_file(folder,file)
|
196
|
-
response =
|
199
|
+
response = gpControlCommand('storage/delete?p=' + folder + "/" + file)
|
197
200
|
puts response
|
198
201
|
end
|
199
202
|
|
200
203
|
def locate(param)
|
201
|
-
response =
|
204
|
+
response = gpControlCommand('system/locate?p=' + param)
|
202
205
|
puts response
|
203
206
|
end
|
204
207
|
|
205
208
|
def hilight()
|
206
|
-
response =
|
209
|
+
response = gpControlCommand('storage/tag_moment')
|
207
210
|
puts response
|
208
211
|
end
|
209
212
|
|
210
213
|
def power_off()
|
211
|
-
response =
|
214
|
+
response = gpControlCommand('system/sleep')
|
212
215
|
puts response
|
213
216
|
end
|
214
217
|
|
215
218
|
|
216
219
|
def ap_setting(ssid,pass)
|
217
|
-
response =
|
220
|
+
response = gpControlCommand('wireless/ap/ssid?ssid=' + ssid + "&pw=" + passwd)
|
218
221
|
puts response
|
219
222
|
end
|
220
223
|
|
@@ -223,18 +226,18 @@ class Camera
|
|
223
226
|
puts case option
|
224
227
|
when Reset::VideoPT
|
225
228
|
#reset video PT
|
226
|
-
response =
|
229
|
+
response = gpControlCommand('video/protune/reset')
|
227
230
|
puts response
|
228
231
|
when Reset::PhotoPT
|
229
232
|
#reset photo PT
|
230
|
-
response =
|
233
|
+
response = gpControlCommand('photo/protune/reset')
|
231
234
|
puts response
|
232
235
|
when Reset::MultiShotPT
|
233
236
|
#reset Ms PT
|
234
|
-
response =
|
237
|
+
response = gpControlCommand('multi_shot/protune/reset')
|
235
238
|
puts response
|
236
239
|
when Reset::CamReset
|
237
|
-
response =
|
240
|
+
response = gpControlCommand('system/factory/reset')
|
238
241
|
puts response
|
239
242
|
end
|
240
243
|
end
|
@@ -289,7 +292,7 @@ class Camera
|
|
289
292
|
datestr_min=Time.new.min.to_s(16)
|
290
293
|
datestr_sec=Time.new.sec.to_s(16)
|
291
294
|
datestr="%"+datestr_year+"%"+datestr_month+"%"+datestr_day+"%"+datestr_hour+"%"+datestr_min+"%"+datestr_sec
|
292
|
-
response =
|
295
|
+
response = gpControlCommand('setup/date_time?p=' + datestr)
|
293
296
|
puts response
|
294
297
|
end
|
295
298
|
def dl_media()
|
@@ -328,3 +331,4 @@ class Camera
|
|
328
331
|
end
|
329
332
|
end
|
330
333
|
end
|
334
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goprocam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konrad Iturbe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Control and view status from your GoPro HERO4/HERO5 camera via WiFi.
|
14
14
|
email: mail@chernowii.com
|
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
39
|
version: '0'
|
40
40
|
requirements: []
|
41
41
|
rubyforge_project:
|
42
|
-
rubygems_version: 2.6.
|
42
|
+
rubygems_version: 2.6.11
|
43
43
|
signing_key:
|
44
44
|
specification_version: 4
|
45
45
|
summary: Interface for your WiFi GoPro camera.
|