alula-ruby 1.9.8 → 1.9.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION.md +5 -3
- data/lib/alula/procedures/camera_get_rec_config_proc.rb +9 -2
- data/lib/alula/procedures/camera_get_svr_config_proc.rb +8 -1
- data/lib/alula/procedures/camera_set_rec_config_proc.rb +9 -7
- data/lib/alula/procedures/camera_set_svr_config_proc.rb +7 -5
- data/lib/alula/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c183648594029b78deb52c39a19ce56a6994cf9d0a6fab8412167b84fc36b90
|
4
|
+
data.tar.gz: d5265a92310f1124ba478fc9d28d884df620bcd12d2cf2b9479e0da3b83551c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6836c01a595c7f22c6e8c5b9ee7ca1cb2695be63875b9246bc2c0933bd79dfcbecbae478bc7fea850881e8bf143ed6c2afe954fcbe09dce8d62cd743a9fa47d
|
7
|
+
data.tar.gz: 606dc02ec990d037efeb54e255b43a3e6cc788c4cc3356d096c3f98a701a97d05f63be63e821e83708fc7478feb4a98378819e36060c97adcd2ad73cce6b4eda
|
data/VERSION.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# Versioning Log
|
2
2
|
|
3
|
-
| Version | Date
|
4
|
-
| ------- |
|
5
|
-
| v1.9.
|
3
|
+
| Version | Date | Description |
|
4
|
+
| ------- | ------------| --------------------------------------------------------------------------- |
|
5
|
+
| v1.9.10 | 2024-08-14 | Overriding RPC response for camera config and server config procs |
|
6
|
+
| v1.9.9 | 2024-08-15 | Giving camera server config call a payload field, updated response data for svrConfig + recConfig |
|
7
|
+
| v1.9.8 | 2024-08-14 | Allow force for get camera wifi |
|
6
8
|
| v1.9.7 | 2024-08-13 | Update base RPC class to handle response |
|
7
9
|
| v1.9.6 | 2024-08-13 | Add camera-related procs |
|
8
10
|
| v1.9.5 | 2024-07-15 | Video Verification Event resource |
|
@@ -3,13 +3,20 @@
|
|
3
3
|
module Alula
|
4
4
|
class CameraGetRecordingConfigProc < Alula::RpcResource
|
5
5
|
class Response < Alula::RpcResponse
|
6
|
+
attr_accessor :result
|
7
|
+
|
8
|
+
def initialize(response)
|
9
|
+
super(response)
|
10
|
+
@result = response.data.dig('data', 'data')
|
11
|
+
end
|
6
12
|
end
|
7
13
|
|
8
14
|
def self.call(serial_number:)
|
9
15
|
request(
|
10
16
|
http_method: :get,
|
11
|
-
path: "/v1/device/#{serial_number}/recordConfig",
|
12
|
-
handler: Response
|
17
|
+
path: "/video/v1/device/#{serial_number}/recordConfig",
|
18
|
+
handler: Response,
|
19
|
+
payload: {}
|
13
20
|
)
|
14
21
|
end
|
15
22
|
end
|
@@ -3,13 +3,20 @@
|
|
3
3
|
module Alula
|
4
4
|
class CameraGetServerConfigProc < Alula::RpcResource
|
5
5
|
class Response < Alula::RpcResponse
|
6
|
+
attr_accessor :result
|
7
|
+
|
8
|
+
def initialize(response)
|
9
|
+
super(response)
|
10
|
+
@result = response.data.dig('data', 'data')
|
11
|
+
end
|
6
12
|
end
|
7
13
|
|
8
14
|
def self.call(serial_number:)
|
9
15
|
request(
|
10
16
|
http_method: :get,
|
11
17
|
path: "/video/v1/device/#{serial_number}/svrConfig",
|
12
|
-
handler: Response
|
18
|
+
handler: Response,
|
19
|
+
payload: {}
|
13
20
|
)
|
14
21
|
end
|
15
22
|
end
|
@@ -3,18 +3,20 @@
|
|
3
3
|
module Alula
|
4
4
|
class CameraSetRecordingConfigProc < Alula::RpcResource
|
5
5
|
class Response < Alula::RpcResponse
|
6
|
-
|
6
|
+
attr_accessor :result
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
def initialize(response)
|
9
|
+
super(response)
|
10
|
+
@result = response.data['data']
|
11
|
+
@cmd = response
|
12
|
+
end
|
13
|
+
end
|
13
14
|
|
15
|
+
def self.call(event:)
|
14
16
|
request(
|
15
17
|
http_method: :post,
|
16
18
|
path: "/v1/device/#{serial_number}/recordConfig",
|
17
|
-
payload:
|
19
|
+
payload: { event:, allday: { mode: 'NULL' } },
|
18
20
|
handler: Response
|
19
21
|
)
|
20
22
|
end
|
@@ -3,17 +3,19 @@
|
|
3
3
|
module Alula
|
4
4
|
class CameraSetServerConfigProc < Alula::RpcResource
|
5
5
|
class Response < Alula::RpcResponse
|
6
|
+
attr_accessor :result
|
7
|
+
|
8
|
+
def initialize(response)
|
9
|
+
super(response)
|
10
|
+
@result = response.data['data']
|
11
|
+
end
|
6
12
|
end
|
7
13
|
|
8
14
|
def self.call(serial_number:, should_use_s3:)
|
9
|
-
payload = {
|
10
|
-
"shouldUseS3": should_use_s3
|
11
|
-
}
|
12
|
-
|
13
15
|
request(
|
14
16
|
http_method: :post,
|
15
17
|
path: "/video/v1/device/#{serial_number}/svrConfig",
|
16
|
-
payload:
|
18
|
+
payload: { shouldUseS3: should_use_s3 },
|
17
19
|
handler: Response
|
18
20
|
)
|
19
21
|
end
|
data/lib/alula/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alula-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|