goprocam 1.2.1 → 1.2.2
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/lib/goprocam.rb +1 -14
- metadata +2 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3df3392b6591c9fb7f47789d5d2d674840220ea1
|
|
4
|
+
data.tar.gz: ccddccc3be212014e8f4367c307fbf51afbf0726
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: adb3d43d093957ec9158bbcdda89e02a3cc17a5f00ae3cd86226326f339c0c89cd18c2760b3019d195b74e3c0675e286936a92a4ae5eff4afce08190458d0486
|
|
7
|
+
data.tar.gz: 6dfdd54aa1a27e5c9f6f7c9909e70b528adce2d51a6c1aa64e19e6a021a1c31697aa1b61f7ce6ac01283cb58f3627f7d76ba131d11ee2ef85e1ee759b97af2f0
|
data/lib/goprocam.rb
CHANGED
|
@@ -211,19 +211,7 @@ class Camera
|
|
|
211
211
|
response = open(GOPROCONTROL + 'command/system/sleep').read
|
|
212
212
|
puts response
|
|
213
213
|
end
|
|
214
|
-
|
|
215
|
-
def power_on()
|
|
216
|
-
begin
|
|
217
|
-
addr = ['<broadcast>', 9]
|
|
218
|
-
|
|
219
|
-
UDPSock.setsockopt(Socket::SOL_SOCKET, Socket::SO_BROADCAST, true)
|
|
220
|
-
data = "\xFF\xFF\xFF\xFF\xFF\xFF"
|
|
221
|
-
arr = "AA:BB:CC:DD:EE:FF" #actually works, replace if needed.
|
|
222
|
-
16.times do |i|
|
|
223
|
-
data<< arr[0].hex.chr+arr[1].hex.chr+arr[2].hex.chr+arr[3].hex.chr+arr[4].hex.chr+arr[5].hex.chr
|
|
224
|
-
end
|
|
225
|
-
UDPSock.send(data, 0, addr[0], addr[1])
|
|
226
|
-
end
|
|
214
|
+
|
|
227
215
|
|
|
228
216
|
def ap_setting(ssid,pass)
|
|
229
217
|
response = open(GOPROCONTROL + 'command/wireless/ap/ssid?ssid=' + ssid + "&pw=" + passwd).read
|
|
@@ -340,4 +328,3 @@ class Camera
|
|
|
340
328
|
end
|
|
341
329
|
end
|
|
342
330
|
end
|
|
343
|
-
end
|
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.2
|
|
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-03-11 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
|
|
@@ -44,4 +44,3 @@ signing_key:
|
|
|
44
44
|
specification_version: 4
|
|
45
45
|
summary: Interface for your WiFi GoPro camera.
|
|
46
46
|
test_files: []
|
|
47
|
-
has_rdoc:
|