ActionStreamer 0.3.1__tar.gz → 0.3.3__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.
Files changed (29) hide show
  1. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/Config/Config.py +5 -2
  2. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/Health/Health.py +2 -2
  3. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/PKG-INFO +1 -1
  4. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/pyproject.toml +1 -1
  5. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/CommonFunctions/CommonFunctions.py +0 -0
  6. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/CommonFunctions/Wifi/Wifi.py +0 -0
  7. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/CommonFunctions/Wifi/__init__.py +0 -0
  8. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/CommonFunctions/__init__.py +0 -0
  9. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/Config/__init__.py +0 -0
  10. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/Device/Device.py +0 -0
  11. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/Device/__init__.py +0 -0
  12. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/Model/Model.py +0 -0
  13. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/Model/__init__.py +0 -0
  14. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/API/API.py +0 -0
  15. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/API/__init__.py +0 -0
  16. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/Event/Event.py +0 -0
  17. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/Event/__init__.py +0 -0
  18. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/File/File.py +0 -0
  19. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/File/__init__.py +0 -0
  20. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/Health/__init__.py +0 -0
  21. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/LogMessage/LogMessage.py +0 -0
  22. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/LogMessage/__init__.py +0 -0
  23. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/Patch/Patch.py +0 -0
  24. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/Patch/__init__.py +0 -0
  25. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/VideoClip/VideoClip.py +0 -0
  26. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/VideoClip/__init__.py +0 -0
  27. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/WebService/__init__.py +0 -0
  28. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/ActionStreamer/__init__.py +0 -0
  29. {actionstreamer-0.3.1 → actionstreamer-0.3.3}/README.md +0 -0
@@ -44,7 +44,7 @@ def is_windows() -> bool:
44
44
  return platform.system() == 'Windows'
45
45
 
46
46
 
47
- def get_config_folder_path(app_name: str) -> str:
47
+ def get_config_folder_path(app_name: str, base_folder_path: str = '') -> str:
48
48
 
49
49
  if is_windows():
50
50
  username = os.getlogin()
@@ -53,7 +53,10 @@ def get_config_folder_path(app_name: str) -> str:
53
53
  # C:\Users\Username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\Roaming
54
54
 
55
55
  else:
56
- config_dir = os.path.expanduser(os.path.join("~", ".config", app_name))
56
+ if base_folder_path:
57
+ config_dir = os.path.join(base_folder_path, ".config", app_name)
58
+ else:
59
+ config_dir = os.path.expanduser(os.path.join("~", ".config", app_name))
57
60
 
58
61
  # Create the directory if it doesn't exist
59
62
  if not os.path.exists(config_dir):
@@ -44,8 +44,8 @@ def update_health(ws_config: WebServiceConfig, device_name: str, health_json: st
44
44
  ws_result = WebServiceResult(0, '', '', '', None)
45
45
 
46
46
  try:
47
- method = "PUT"
48
- path = 'v1/devicehealth'
47
+ method = "POST"
48
+ path = 'v1/devicehealth/updatelatest'
49
49
  url = ws_config.base_url + path
50
50
  headers = {"Content-Type": "application/json"}
51
51
  parameters = ''
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ActionStreamer
3
- Version: 0.3.1
3
+ Version: 0.3.3
4
4
  Summary: A library for the ActionStreamer API.
5
5
  Author: ActionStreamer
6
6
  Author-email: joe@actionstreamer.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ActionStreamer"
3
- version = "0.3.1"
3
+ version = "0.3.3"
4
4
  description = "A library for the ActionStreamer API."
5
5
  authors = ["ActionStreamer <joe@actionstreamer.com>"]
6
6
  readme = "README.md"
File without changes