ActionStreamer 0.2.6__tar.gz → 0.2.8__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.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/Device/Device.py +18 -2
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/Event/Event.py +1 -1
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/PKG-INFO +1 -1
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/pyproject.toml +1 -1
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/CommonFunctions/CommonFunctions.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/CommonFunctions/Wifi/Wifi.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/CommonFunctions/Wifi/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/CommonFunctions/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/Model/Model.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/Model/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/API/API.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/API/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/Config/Config.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/Config/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/Device/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/Event/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/File/File.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/File/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/Health/Health.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/Health/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/LogMessage/LogMessage.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/LogMessage/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/Patch/Patch.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/Patch/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/VideoClip/VideoClip.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/VideoClip/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/__init__.py +0 -0
- {actionstreamer-0.2.6 → actionstreamer-0.2.8}/README.md +0 -0
|
@@ -104,8 +104,15 @@ def get_manufacturer_linux():
|
|
|
104
104
|
try:
|
|
105
105
|
with open("/proc/cpuinfo", "r") as f:
|
|
106
106
|
for line in f:
|
|
107
|
-
if line.startswith("
|
|
108
|
-
|
|
107
|
+
if line.startswith("Model"):
|
|
108
|
+
model = line.split(":")[1].strip()
|
|
109
|
+
if "Raspberry Pi" in model:
|
|
110
|
+
return parse_raspberry_pi_model(model), 0
|
|
111
|
+
# Fall back to using dmidecode if not a Raspberry Pi
|
|
112
|
+
result = subprocess.run(['dmidecode', '-t', 'processor'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
|
113
|
+
for line in result.stdout.splitlines():
|
|
114
|
+
if line.strip().startswith("Manufacturer"):
|
|
115
|
+
return parse_manufacturer(line.split(":")[1].strip()), 0
|
|
109
116
|
except Exception as e:
|
|
110
117
|
print(f"Exception in get_manufacturer_linux: {e}")
|
|
111
118
|
return "", 1
|
|
@@ -113,6 +120,15 @@ def get_manufacturer_linux():
|
|
|
113
120
|
return "", 1
|
|
114
121
|
|
|
115
122
|
|
|
123
|
+
def parse_raspberry_pi_model(model):
|
|
124
|
+
|
|
125
|
+
if "Raspberry Pi" in model:
|
|
126
|
+
parts = model.split()
|
|
127
|
+
if len(parts) >= 3 and parts[2].isdigit():
|
|
128
|
+
return f"RPi{parts[2]}"
|
|
129
|
+
return model
|
|
130
|
+
|
|
131
|
+
|
|
116
132
|
def parse_manufacturer(manufacturer):
|
|
117
133
|
|
|
118
134
|
if "Intel" in manufacturer:
|
|
@@ -10,7 +10,7 @@ def get_pending_event_list(ws_config, device_name):
|
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
method = "POST"
|
|
13
|
-
path = 'v1/event/list/pending'
|
|
13
|
+
path = 'v1/event/list/pending?updatedevice=true'
|
|
14
14
|
url = ws_config.base_url + path
|
|
15
15
|
headers = {"Content-Type": "application/json"}
|
|
16
16
|
parameters = ''
|
{actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/CommonFunctions/CommonFunctions.py
RENAMED
|
File without changes
|
|
File without changes
|
{actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/CommonFunctions/Wifi/__init__.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/LogMessage/LogMessage.py
RENAMED
|
File without changes
|
{actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/LogMessage/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/VideoClip/VideoClip.py
RENAMED
|
File without changes
|
{actionstreamer-0.2.6 → actionstreamer-0.2.8}/ActionStreamer/WebService/VideoClip/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|