plantstar-shared 2.0.3.0.2.19__py3-none-any.whl → 2.0.3.0.2.21__py3-none-any.whl

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.
@@ -0,0 +1,9 @@
1
+ class HmiKeyConstants:
2
+ APU_IP_ADDRESS = "apu_ip_address"
3
+ HMI_HOSTNAME = "hmi_hostname"
4
+ HMI_HOMEPAGE = "hmi_homepage"
5
+ HMI_IP_ADDRESS_TYPE = "hmi_ip_address_type"
6
+ HMI_IP_ADDRESS = "hmi_ip_address"
7
+ HMI_NETMASK = "hmi_netmask"
8
+ HMI_DEFAULT_GATEWAY = "hmi_default_gateway"
9
+ HMI_DNS = "hmi_dns"
@@ -97,7 +97,16 @@ class DataCollectionModuleApiTypes(SysconType):
97
97
  class ApuApiTypes(SysconType):
98
98
  SET_IS_INITIALIZING_STATUS = ("data_collection_module_manager/set_is_initializing_status", "data_collection_module_manager/set_is_initializing_status", True)
99
99
  SET_IS_COLDBOOTING_STATUS = ("data_collection_module_manager/set_is_coldbooting_status", "data_collection_module_manager/set_is_coldbooting_status", True)
100
+ REGISTER_HMI = ("data_collection_module_manager/register_hmi", "data_collection_module_manager/register_hmi", True)
101
+ REGISTER_DCM = ("data_collection_module_manager/register_dcm", "data_collection_module_manager/register_dcm", True)
100
102
 
101
103
 
102
104
  class CosmosApiTypes(SysconType):
103
105
  SEND_DATA_DICTIONARY = ("send_data_dictionary", "send_data_dictionary", True)
106
+
107
+
108
+ class HmiApiTypes(SysconType):
109
+ GET_HMI_SYSTEM_INFORMATION = ("get_hmi_system_information", "get_hmi_system_information", True)
110
+ SET_HMI_SYSTEM_INFORMATION = ("set_hmi_system_information", "set_hmi_system_information", True)
111
+ REBOOT_HMI = ("reboot_hmi", "reboot_hmi", True)
112
+
@@ -89,7 +89,7 @@ class SysconDecoder(json.JSONDecoder):
89
89
  if "tzinfo" in dictionary:
90
90
  # This is here for a weird bug that was happening
91
91
  if dictionary["tzinfo"] is None or dictionary["tzinfo"] in ["None", "tzlocal()", "tzutc()"]:
92
- dictionary["tzinfo"] = pytz.UTC
92
+ dictionary["tzinfo"] = "UTC"
93
93
  else:
94
94
  if type_name == "datetime":
95
95
  tzinfo_to_localize = pytz.timezone(dictionary["tzinfo"])
@@ -97,6 +97,8 @@ class SysconDecoder(json.JSONDecoder):
97
97
  localized_datetime = tzinfo_to_localize.localize(datetime.datetime(**dictionary))
98
98
  return localized_datetime
99
99
 
100
+ dictionary["tzinfo"] = pytz.timezone(dictionary["tzinfo"])
101
+
100
102
  if type_name == "datetime":
101
103
  return datetime.datetime(**dictionary)
102
104
  elif type_name == "date":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plantstar-shared
3
- Version: 2.0.3.0.2.19
3
+ Version: 2.0.3.0.2.21
4
4
  Summary: Shared code used in plantstar_apu and plantstar_dcm
5
5
  Home-page: https://github.com/SYSCON-International/plantstar_shared
6
6
  Author: SYSCON International
@@ -1,11 +1,12 @@
1
1
  plantstar_shared/DataCollectionModuleProcessNames.py,sha256=L21K4eznLCIYAbb4g7qKhyHKS1aK4w9dSu5r6LGewGs,441
2
+ plantstar_shared/HmiKeyConstants.py,sha256=nVzZim026r2-UplsgS6swMeCYgOhl_OE_RQ-yjcDTUs,319
2
3
  plantstar_shared/HuskyInterfacePacketTypes.py,sha256=tUWcWKpaBgYs2S8zll9E5-YTMqGfOIU4kj5mroQe344,1372
3
4
  plantstar_shared/MockRawDataProcessor.py,sha256=Gc2CfteJdLZwYPj73FuyEv16uTzoJsUB479Xc74S5ow,5382
4
5
  plantstar_shared/RawDataProcessorInterfaceActions.py,sha256=XnXuFW3BFSa89-VmhGAKQxDBPalsQWapw4h0P5q0IXw,632
5
6
  plantstar_shared/SysconType.py,sha256=6Ae9F0fBr0vpXAmP8fYqoWyFUGTEECtS55zAYMkeKlY,1581
6
7
  plantstar_shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
8
  plantstar_shared/add_size_onto_string_and_return.py,sha256=j7XSs5ubKKo5LCMVljzZudK2nw8CZh-zMSLT_t30aGg,385
8
- plantstar_shared/api_types.py,sha256=gKN2LmUFBcpa7gJSNwCJ0eSv4IqkIP01pCLfy8-mT50,5001
9
+ plantstar_shared/api_types.py,sha256=farJcD_bETXyGTYM1roACDB85xy8LHxJ4vPS_df8kLc,5527
9
10
  plantstar_shared/convert_bytes_to_object.py,sha256=YKf410EWUpeyyeBhJ3kl6PYIAcHJKKkhp8JkE-CuSv0,405
10
11
  plantstar_shared/convert_object_to_bytes.py,sha256=vVS3dKkPynOJ2NV2LgLHdEOZflK_0hhdS-NuU_gcfHs,206
11
12
  plantstar_shared/errors.py,sha256=qEUHh2d7pqZHoag6YJjnVfRWzWAzjuyGZH7stT_-Nzk,341
@@ -13,9 +14,9 @@ plantstar_shared/global_definitions.py,sha256=mj59nU21DYza4XgZQxLX2lTvJYooN_-ZFr
13
14
  plantstar_shared/is_valid_signed_string.py,sha256=5ZiEsPRz30J8yxN4A1dHq-hlz7VI9ru_fRH4A5JjuGQ,276
14
15
  plantstar_shared/obtain_raw_data_processor_function_for_action_name.py,sha256=DYo307PraRRD8zGiSO6Fn03bZ4X9aDOYV9rwaRm8mXM,1134
15
16
  plantstar_shared/syscon_image_field.py,sha256=GlTTudqFT5EsWM5sPRO0p5SDascX7gI1BEOeF1OG7Tw,441
16
- plantstar_shared/syscon_json.py,sha256=rx3NTYgeFx30rCyJbdH07wGctgkiz8hTFvYeLRwWlOk,4476
17
+ plantstar_shared/syscon_json.py,sha256=WLfn1sftcNe71Qz2lczr9REx6lAl7mDJCz9GBhEg3Ek,4545
17
18
  plantstar_shared/tcp_socket_utils.py,sha256=Z8KY4Sc_SX4XDunPxeAk2IMfYZi5HenGE8SBU8U-KTk,6364
18
- plantstar_shared-2.0.3.0.2.19.dist-info/METADATA,sha256=28k2pdEprsNkWcMS5XOQddOlX1LuJ3cqmJe7jvsaSYI,659
19
- plantstar_shared-2.0.3.0.2.19.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
20
- plantstar_shared-2.0.3.0.2.19.dist-info/top_level.txt,sha256=9ZTCr_aP1GqYGt7EVmlSIUF72bdMZErapyhbik-MWVQ,17
21
- plantstar_shared-2.0.3.0.2.19.dist-info/RECORD,,
19
+ plantstar_shared-2.0.3.0.2.21.dist-info/METADATA,sha256=WbU7piUWY4Z_QL3_KfzB_qCdMOQs-7kF0rR_ULxdQQM,659
20
+ plantstar_shared-2.0.3.0.2.21.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
21
+ plantstar_shared-2.0.3.0.2.21.dist-info/top_level.txt,sha256=9ZTCr_aP1GqYGt7EVmlSIUF72bdMZErapyhbik-MWVQ,17
22
+ plantstar_shared-2.0.3.0.2.21.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (72.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5