remotedroid 0.6.1 → 0.6.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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/remotedroid.rb +13 -4
- data/lib/remotedroid/client.rb +8 -1
- data/lib/remotedroid/control.rb +5 -4
- data/lib/remotedroid/controller.rb +1 -1
- data/lib/remotedroid/query.rb +5 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb2eedf64071cbde99c208add4801a434aa0d3ec0a8750a7c2b94d283918b580
|
|
4
|
+
data.tar.gz: b47344083acbdd1ae6fa674249e22312e80aa91c654e2cd51150fa4cd27657d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a131d644b51b337e8a6ea54164306f612cae6989591eb00b0756e497ae2fa7f630e11b5c7484d95f3e12f6dbc5130403c469bf8fd96a398fdc3c82ea98dcd4d3
|
|
7
|
+
data.tar.gz: 8148f0cae8dbecabcca111dbcbad14f0c2884c026c21c3bea3ca2f420681fe3d2f3678ca226272b9344da277f6eefea1e650086d816e81016b1389c3f3542ea1
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/remotedroid.rb
CHANGED
|
@@ -234,7 +234,7 @@ a:
|
|
|
234
234
|
Media Stop
|
|
235
235
|
Simulate Audio Button
|
|
236
236
|
|
|
237
|
-
m: Open
|
|
237
|
+
m: Open web page
|
|
238
238
|
v: url
|
|
239
239
|
t: webhook
|
|
240
240
|
a: goto [lv=url]
|
|
@@ -417,15 +417,24 @@ a:
|
|
|
417
417
|
|
|
418
418
|
m: Power Button Toggle3
|
|
419
419
|
t: Power Button Toggle (3)
|
|
420
|
-
a:
|
|
420
|
+
a:
|
|
421
|
+
webhook
|
|
422
|
+
identifier: power-button-toggle
|
|
423
|
+
num_toggles: 3
|
|
421
424
|
|
|
422
425
|
m: Power Button Toggle4
|
|
423
426
|
t: Power Button Toggle (4)
|
|
424
|
-
a:
|
|
427
|
+
a:
|
|
428
|
+
webhook
|
|
429
|
+
identifier: power-button-toggle
|
|
430
|
+
num_toggles: 4
|
|
425
431
|
|
|
426
432
|
m: Power Button Toggle5
|
|
427
433
|
t: Power Button Toggle (5)
|
|
428
|
-
a:
|
|
434
|
+
a:
|
|
435
|
+
webhook
|
|
436
|
+
identifier: power-button-toggle
|
|
437
|
+
num_toggles: 5
|
|
429
438
|
|
|
430
439
|
m: Connected to network
|
|
431
440
|
t:
|
data/lib/remotedroid/client.rb
CHANGED
|
@@ -3,9 +3,12 @@ module RemoteDroid
|
|
|
3
3
|
class Client
|
|
4
4
|
using ColouredText
|
|
5
5
|
|
|
6
|
-
def initialize(hostx='127.0.0.1', host: hostx, port: '5777',
|
|
6
|
+
def initialize(hostx='127.0.0.1', host: hostx, port: '5777',
|
|
7
|
+
sps_host: 'sps.home', sps_port: '59000')
|
|
8
|
+
|
|
7
9
|
@drb = OneDrb::Client.new host: host, port: port
|
|
8
10
|
@sps = SPSPub.new host: sps_host, port: sps_port
|
|
11
|
+
|
|
9
12
|
end
|
|
10
13
|
|
|
11
14
|
def control
|
|
@@ -204,6 +207,10 @@ module RemoteDroid
|
|
|
204
207
|
take_picture
|
|
205
208
|
end
|
|
206
209
|
|
|
210
|
+
def power_connected?()
|
|
211
|
+
query.power_connected?
|
|
212
|
+
end
|
|
213
|
+
|
|
207
214
|
def previous()
|
|
208
215
|
control.control_media(option: 'Previous')
|
|
209
216
|
end
|
data/lib/remotedroid/control.rb
CHANGED
|
@@ -205,12 +205,13 @@ module RemoteDroid
|
|
|
205
205
|
http_exec 'location'
|
|
206
206
|
end
|
|
207
207
|
|
|
208
|
-
def
|
|
209
|
-
http_exec 'open-
|
|
208
|
+
def open_web_page(options={url: ''})
|
|
209
|
+
http_exec 'open-web-page', options
|
|
210
210
|
end
|
|
211
211
|
|
|
212
|
-
alias
|
|
213
|
-
alias
|
|
212
|
+
alias open_website open_web_page
|
|
213
|
+
alias goto open_web_page
|
|
214
|
+
alias visit open_web_page
|
|
214
215
|
|
|
215
216
|
def say_current_time(options={})
|
|
216
217
|
http_exec 'say-current-time'
|
data/lib/remotedroid/query.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: remotedroid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
io3WPRDjULC924M5S8wbrus31v2AUjqFBPvmHr7caf/VHErWypV482xcDhWt1eif
|
|
36
36
|
0G2k2ptozXcBS9odsqGUTb5N
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2020-10-
|
|
38
|
+
date: 2020-10-30 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: onedrb
|
metadata.gz.sig
CHANGED
|
Binary file
|