plantstar-shared 2.0.3.0.2.16__py3-none-any.whl → 2.0.3.0.2.17__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.
@@ -97,16 +97,7 @@ 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)
102
100
 
103
101
 
104
102
  class CosmosApiTypes(SysconType):
105
103
  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
-
@@ -90,8 +90,11 @@ class SysconDecoder(json.JSONDecoder):
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
92
  dictionary["tzinfo"] = "UTC"
93
-
94
- dictionary["tzinfo"] = pytz.timezone(dictionary["tzinfo"])
93
+ else:
94
+ tzinfo_to_localize = pytz.timezone(dictionary["tzinfo"])
95
+ dictionary.pop('tzinfo')
96
+ localized_datetime = tzinfo_to_localize.localize(datetime.datetime(**dictionary))
97
+ return localized_datetime
95
98
 
96
99
  if type_name == "datetime":
97
100
  return datetime.datetime(**dictionary)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plantstar-shared
3
- Version: 2.0.3.0.2.16
3
+ Version: 2.0.3.0.2.17
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,12 +1,11 @@
1
1
  plantstar_shared/DataCollectionModuleProcessNames.py,sha256=L21K4eznLCIYAbb4g7qKhyHKS1aK4w9dSu5r6LGewGs,441
2
- plantstar_shared/HmiKeyConstants.py,sha256=nVzZim026r2-UplsgS6swMeCYgOhl_OE_RQ-yjcDTUs,319
3
2
  plantstar_shared/HuskyInterfacePacketTypes.py,sha256=tUWcWKpaBgYs2S8zll9E5-YTMqGfOIU4kj5mroQe344,1372
4
3
  plantstar_shared/MockRawDataProcessor.py,sha256=Gc2CfteJdLZwYPj73FuyEv16uTzoJsUB479Xc74S5ow,5382
5
4
  plantstar_shared/RawDataProcessorInterfaceActions.py,sha256=XnXuFW3BFSa89-VmhGAKQxDBPalsQWapw4h0P5q0IXw,632
6
5
  plantstar_shared/SysconType.py,sha256=6Ae9F0fBr0vpXAmP8fYqoWyFUGTEECtS55zAYMkeKlY,1581
7
6
  plantstar_shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
7
  plantstar_shared/add_size_onto_string_and_return.py,sha256=j7XSs5ubKKo5LCMVljzZudK2nw8CZh-zMSLT_t30aGg,385
9
- plantstar_shared/api_types.py,sha256=farJcD_bETXyGTYM1roACDB85xy8LHxJ4vPS_df8kLc,5527
8
+ plantstar_shared/api_types.py,sha256=gKN2LmUFBcpa7gJSNwCJ0eSv4IqkIP01pCLfy8-mT50,5001
10
9
  plantstar_shared/convert_bytes_to_object.py,sha256=MVOKqJJeUjvEKJL_ELNPkxZEgqwlk3zT8CwfVtpwOgU,409
11
10
  plantstar_shared/convert_object_to_bytes.py,sha256=vVS3dKkPynOJ2NV2LgLHdEOZflK_0hhdS-NuU_gcfHs,206
12
11
  plantstar_shared/errors.py,sha256=qEUHh2d7pqZHoag6YJjnVfRWzWAzjuyGZH7stT_-Nzk,341
@@ -14,9 +13,9 @@ plantstar_shared/global_definitions.py,sha256=mj59nU21DYza4XgZQxLX2lTvJYooN_-ZFr
14
13
  plantstar_shared/is_valid_signed_string.py,sha256=5ZiEsPRz30J8yxN4A1dHq-hlz7VI9ru_fRH4A5JjuGQ,276
15
14
  plantstar_shared/obtain_raw_data_processor_function_for_action_name.py,sha256=DYo307PraRRD8zGiSO6Fn03bZ4X9aDOYV9rwaRm8mXM,1134
16
15
  plantstar_shared/syscon_image_field.py,sha256=GlTTudqFT5EsWM5sPRO0p5SDascX7gI1BEOeF1OG7Tw,441
17
- plantstar_shared/syscon_json.py,sha256=8OG9_55d52V9e2fFNguDtQ_pnw1YwyYsg2pnUkhjW6g,4213
16
+ plantstar_shared/syscon_json.py,sha256=CnsWfpyFuFx2OLVLNschvGI0fFGDXzb_fq-K1zlODRM,4413
18
17
  plantstar_shared/tcp_socket_utils.py,sha256=sI5IJXMTsQuTPzm8V5T1nsY5aMF-78zGL69aIDLCD_A,2250
19
- plantstar_shared-2.0.3.0.2.16.dist-info/METADATA,sha256=wyt2aQYCrws1rK0OYqoFDzyqevg1S6gaCVxDmJTM4_Q,659
20
- plantstar_shared-2.0.3.0.2.16.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
21
- plantstar_shared-2.0.3.0.2.16.dist-info/top_level.txt,sha256=9ZTCr_aP1GqYGt7EVmlSIUF72bdMZErapyhbik-MWVQ,17
22
- plantstar_shared-2.0.3.0.2.16.dist-info/RECORD,,
18
+ plantstar_shared-2.0.3.0.2.17.dist-info/METADATA,sha256=lF8kUodMG4S4lRMRTMRE_GhTsIMqgMKoNvzw_eCfAc8,659
19
+ plantstar_shared-2.0.3.0.2.17.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
20
+ plantstar_shared-2.0.3.0.2.17.dist-info/top_level.txt,sha256=9ZTCr_aP1GqYGt7EVmlSIUF72bdMZErapyhbik-MWVQ,17
21
+ plantstar_shared-2.0.3.0.2.17.dist-info/RECORD,,
@@ -1,9 +0,0 @@
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"