ActionStreamer 0.4.2__tar.gz → 0.4.4__tar.gz
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.
- {actionstreamer-0.4.2 → actionstreamer-0.4.4}/PKG-INFO +2 -2
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/CommonFunctions/CommonFunctions.py +1 -1
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Model/Model.py +1 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/VideoClip/VideoClip.py +26 -2
- {actionstreamer-0.4.2 → actionstreamer-0.4.4}/pyproject.toml +2 -2
- {actionstreamer-0.4.2 → actionstreamer-0.4.4}/README.md +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/CommonFunctions/Wifi/Wifi.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/CommonFunctions/Wifi/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/CommonFunctions/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Config/Config.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Config/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Device/Device.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Device/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Model/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/API/API.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/API/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/Event/Event.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/Event/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/File/File.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/File/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/Health/Health.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/Health/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/LogMessage/LogMessage.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/LogMessage/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/Patch/Patch.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/Patch/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/VideoClip/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/__init__.py +0 -0
- {actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/__init__.py +0 -0
|
@@ -143,7 +143,7 @@ def get_hmac_signature(secret_key: str, method: str, path: str, headers, paramet
|
|
|
143
143
|
string_to_sign = '\n'.join([method, path, headerString, parameterString, body if body else ''])
|
|
144
144
|
|
|
145
145
|
string_to_sign = string_to_sign.strip()
|
|
146
|
-
log_to_console("stringToSign: " + string_to_sign)
|
|
146
|
+
#log_to_console("stringToSign: " + string_to_sign)
|
|
147
147
|
|
|
148
148
|
# Generate the HMAC SHA256 signature
|
|
149
149
|
hmac_signature = hmac.new(secret_key.encode('utf-8'), string_to_sign.encode('utf-8'), hashlib.sha256)
|
|
@@ -25,7 +25,7 @@ def create_video_clip(ws_config: WebServiceConfig, device_name: str, video_clip:
|
|
|
25
25
|
print(ex)
|
|
26
26
|
|
|
27
27
|
response_code = -1
|
|
28
|
-
response_string = "Exception in CreateVideoClip"
|
|
28
|
+
response_string = "Exception in CreateVideoClip. Line number " + str(line_number)
|
|
29
29
|
|
|
30
30
|
return response_code, response_string
|
|
31
31
|
|
|
@@ -53,6 +53,30 @@ def update_file_id(ws_config: WebServiceConfig, video_clip_id: int, file_id: int
|
|
|
53
53
|
print(ex)
|
|
54
54
|
|
|
55
55
|
response_code = -1
|
|
56
|
-
response_string = "Exception in UpdateVideoClipFileID"
|
|
56
|
+
response_string = "Exception in UpdateVideoClipFileID Line number " + str(line_number)
|
|
57
|
+
|
|
58
|
+
return response_code, response_string
|
|
59
|
+
|
|
60
|
+
def get_video_clip_by_id(ws_config: WebServiceConfig, video_clip_id: int) -> tuple[int, str]:
|
|
61
|
+
|
|
62
|
+
try:
|
|
63
|
+
|
|
64
|
+
method = "GET"
|
|
65
|
+
path = 'v1/videoclip/' + str(video_clip_id)
|
|
66
|
+
url = ws_config.base_url + path
|
|
67
|
+
headers = {"Content-Type": "application/json"}
|
|
68
|
+
parameters = ''
|
|
69
|
+
|
|
70
|
+
response_code, response_string = CommonFunctions.send_signed_request(ws_config, method, url, path, headers, parameters)
|
|
71
|
+
|
|
72
|
+
except Exception as ex:
|
|
73
|
+
|
|
74
|
+
filename, line_number = CommonFunctions.get_exception_info()
|
|
75
|
+
if filename is not None and line_number is not None:
|
|
76
|
+
print(f"Exception occurred at line {line_number} in {filename}")
|
|
77
|
+
print(ex)
|
|
78
|
+
|
|
79
|
+
response_code = -1
|
|
80
|
+
response_string = "Exception in get_video_clip_by_id Line number " + str(line_number)
|
|
57
81
|
|
|
58
82
|
return response_code, response_string
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Config/Config.py
RENAMED
|
File without changes
|
{actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Config/__init__.py
RENAMED
|
File without changes
|
{actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Device/Device.py
RENAMED
|
File without changes
|
{actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Device/__init__.py
RENAMED
|
File without changes
|
{actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/Model/__init__.py
RENAMED
|
File without changes
|
{actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/API/API.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/File/File.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.4.2/ActionStreamer → actionstreamer-0.4.4/actionstreamer}/WebService/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|