ActionStreamer 0.2.9__tar.gz → 0.2.11__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.9 → actionstreamer-0.2.11}/ActionStreamer/CommonFunctions/CommonFunctions.py +20 -1
- actionstreamer-0.2.11/ActionStreamer/WebService/VideoClip/__init__.py +4 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/__init__.py +1 -1
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/PKG-INFO +1 -1
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/pyproject.toml +1 -1
- actionstreamer-0.2.9/ActionStreamer/WebService/VideoClip/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/CommonFunctions/Wifi/Wifi.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/CommonFunctions/Wifi/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/CommonFunctions/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/Model/Model.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/Model/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/API/API.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/API/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/Config/Config.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/Config/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/Device/Device.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/Device/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/Event/Event.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/Event/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/File/File.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/File/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/Health/Health.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/Health/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/LogMessage/LogMessage.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/LogMessage/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/Patch/Patch.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/Patch/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/VideoClip/VideoClip.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/__init__.py +0 -0
- {actionstreamer-0.2.9 → actionstreamer-0.2.11}/README.md +0 -0
{actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/CommonFunctions/CommonFunctions.py
RENAMED
|
@@ -6,6 +6,7 @@ import time
|
|
|
6
6
|
from datetime import datetime
|
|
7
7
|
import requests
|
|
8
8
|
import os
|
|
9
|
+
import re
|
|
9
10
|
|
|
10
11
|
import pytz
|
|
11
12
|
import requests
|
|
@@ -227,4 +228,22 @@ def create_folders(path):
|
|
|
227
228
|
# Check if the current folder exists
|
|
228
229
|
if not os.path.exists(base_folder):
|
|
229
230
|
# If not, create the folder
|
|
230
|
-
os.makedirs(base_folder)
|
|
231
|
+
os.makedirs(base_folder)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
def get_cpu_frequency():
|
|
235
|
+
with open("/proc/cpuinfo") as f:
|
|
236
|
+
cpuinfo = f.read()
|
|
237
|
+
# Find the first occurrence of "cpu MHz"
|
|
238
|
+
match = re.search(r"cpu MHz\s+:\s+(\d+\.\d+)", cpuinfo)
|
|
239
|
+
if match:
|
|
240
|
+
return float(match.group(1))
|
|
241
|
+
else:
|
|
242
|
+
raise RuntimeError("Unable to find CPU frequency in /proc/cpuinfo")
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def get_clock_cycles_per_millisecond():
|
|
246
|
+
frequency_mhz = get_cpu_frequency()
|
|
247
|
+
frequency_hz = frequency_mhz * 1_000_000
|
|
248
|
+
cycles_per_millisecond = frequency_hz / 1_000
|
|
249
|
+
return cycles_per_millisecond
|
|
@@ -9,4 +9,4 @@ from .Patch import *
|
|
|
9
9
|
from .VideoClip import *
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
__all__ = API.__all__ + Config.__all__ + Device.__all__ + Event.__all__ + File.__all__ + Health.__all__ + LogMessage.__all__ + Patch.__all__
|
|
12
|
+
__all__ = API.__all__ + Config.__all__ + Device.__all__ + Event.__all__ + File.__all__ + Health.__all__ + LogMessage.__all__ + Patch.__all__ + VideoClip.__all__
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.2.9 → actionstreamer-0.2.11}/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
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/LogMessage/LogMessage.py
RENAMED
|
File without changes
|
{actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/LogMessage/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.2.9 → actionstreamer-0.2.11}/ActionStreamer/WebService/VideoClip/VideoClip.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|