foxesscloud 2.7.2__py3-none-any.whl → 2.7.3__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.
- foxesscloud/foxesscloud.py +5 -5
- foxesscloud/openapi.py +4 -4
- {foxesscloud-2.7.2.dist-info → foxesscloud-2.7.3.dist-info}/METADATA +4 -1
- foxesscloud-2.7.3.dist-info/RECORD +7 -0
- foxesscloud-2.7.2.dist-info/RECORD +0 -7
- {foxesscloud-2.7.2.dist-info → foxesscloud-2.7.3.dist-info}/LICENCE +0 -0
- {foxesscloud-2.7.2.dist-info → foxesscloud-2.7.3.dist-info}/WHEEL +0 -0
- {foxesscloud-2.7.2.dist-info → foxesscloud-2.7.3.dist-info}/top_level.txt +0 -0
foxesscloud/foxesscloud.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
##################################################################################################
|
2
2
|
"""
|
3
3
|
Module: Fox ESS Cloud
|
4
|
-
Updated:
|
4
|
+
Updated: 12 December 2024
|
5
5
|
By: Tony Matthews
|
6
6
|
"""
|
7
7
|
##################################################################################################
|
@@ -10,7 +10,7 @@ By: Tony Matthews
|
|
10
10
|
# ALL RIGHTS ARE RESERVED © Tony Matthews 2023
|
11
11
|
##################################################################################################
|
12
12
|
|
13
|
-
version = "1.8.
|
13
|
+
version = "1.8.4"
|
14
14
|
print(f"FoxESS-Cloud version {version}")
|
15
15
|
|
16
16
|
debug_setting = 1
|
@@ -1781,7 +1781,7 @@ def report_value_profile(result):
|
|
1781
1781
|
current_total = sum(by_hour)
|
1782
1782
|
result = []
|
1783
1783
|
for t in range(0, 24):
|
1784
|
-
result.append(by_hour[t] * daily_average / current_total)
|
1784
|
+
result.append(by_hour[t] * daily_average / current_total if current_total != 0.0 else 0.0)
|
1785
1785
|
return (daily_average, result)
|
1786
1786
|
|
1787
1787
|
# forwards compatibility
|
@@ -1840,7 +1840,7 @@ def get_report(report_type='day', d=None, v=None, summary=1, save=None, load=Non
|
|
1840
1840
|
return None
|
1841
1841
|
id_name = 'deviceID' if station == 0 else 'stationID'
|
1842
1842
|
id_code = device_id if station == 0 else station_id
|
1843
|
-
query_path = '/
|
1843
|
+
query_path = '/generic/w/v0/device/history/report' if station == 0 else '/generic/w/v0/plant/history/report'
|
1844
1844
|
# process list of days
|
1845
1845
|
if d is not None and type(d) is list:
|
1846
1846
|
result_list = []
|
@@ -3067,7 +3067,7 @@ def charge_needed(forecast=None, update_settings=0, timed_mode=None, show_data=N
|
|
3067
3067
|
output(f"full_charge = {full_charge}")
|
3068
3068
|
if test_soc is not None:
|
3069
3069
|
current_soc = test_soc
|
3070
|
-
capacity = 14.
|
3070
|
+
capacity = 14.40
|
3071
3071
|
residual = test_soc * capacity / 100
|
3072
3072
|
bat_volt = 317.4
|
3073
3073
|
bat_power = 0.0
|
foxesscloud/openapi.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
##################################################################################################
|
2
2
|
"""
|
3
3
|
Module: Fox ESS Cloud using Open API
|
4
|
-
Updated:
|
4
|
+
Updated: 12 December 2024
|
5
5
|
By: Tony Matthews
|
6
6
|
"""
|
7
7
|
##################################################################################################
|
@@ -10,7 +10,7 @@ By: Tony Matthews
|
|
10
10
|
# ALL RIGHTS ARE RESERVED © Tony Matthews 2024
|
11
11
|
##################################################################################################
|
12
12
|
|
13
|
-
version = "2.7.
|
13
|
+
version = "2.7.3"
|
14
14
|
print(f"FoxESS-Cloud Open API version {version}")
|
15
15
|
|
16
16
|
debug_setting = 1
|
@@ -1477,7 +1477,7 @@ def report_value_profile(result):
|
|
1477
1477
|
current_total = sum(by_hour)
|
1478
1478
|
result = []
|
1479
1479
|
for t in range(0, 24):
|
1480
|
-
result.append(by_hour[t] * daily_average / current_total)
|
1480
|
+
result.append(by_hour[t] * daily_average / current_total if current_total != 0.0 else 0.0)
|
1481
1481
|
return (daily_average, result)
|
1482
1482
|
|
1483
1483
|
# rescale history data based on time and steps
|
@@ -2727,7 +2727,7 @@ def charge_needed(forecast=None, update_settings=0, timed_mode=None, show_data=N
|
|
2727
2727
|
output(f"full_charge = {full_charge}")
|
2728
2728
|
if test_soc is not None:
|
2729
2729
|
current_soc = test_soc
|
2730
|
-
capacity = 14.
|
2730
|
+
capacity = 14.40
|
2731
2731
|
residual = test_soc * capacity / 100
|
2732
2732
|
bat_volt = 317.4
|
2733
2733
|
bat_power = 0.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: foxesscloud
|
3
|
-
Version: 2.7.
|
3
|
+
Version: 2.7.3
|
4
4
|
Summary: library for accessing Fox ESS cloud data using Open API
|
5
5
|
Author-email: Tony Matthews <tony@quasair.co.uk>
|
6
6
|
Project-URL: Homepage, https://github.com/TonyM1958/FoxESS-Cloud
|
@@ -807,6 +807,9 @@ This setting can be:
|
|
807
807
|
|
808
808
|
# Version Info
|
809
809
|
|
810
|
+
2.7.3<br>
|
811
|
+
Fix divide by zero error if get_report() returns no data.
|
812
|
+
|
810
813
|
2.7.2<br>
|
811
814
|
Fix to get_battery() to return error and flag status=0 in f.battery when the cloud is not returning valid data.
|
812
815
|
Fix exception calculating SoH if ratedCapacity is returned as 0 when cloud is not returning valid data.
|
@@ -0,0 +1,7 @@
|
|
1
|
+
foxesscloud/foxesscloud.py,sha256=VUtMRQwvQhbD8SHj51K1An83FEyfCtssLlxAK5wY5UU,222985
|
2
|
+
foxesscloud/openapi.py,sha256=eTJYn6pVc2urlOsJLMK-m6ZfuUgEer5yJnWkSz7LRTU,206970
|
3
|
+
foxesscloud-2.7.3.dist-info/LICENCE,sha256=-3xv8CElCJV8Bc8PbAsg3iyxMpAK8MoJneM3rXigxqI,1074
|
4
|
+
foxesscloud-2.7.3.dist-info/METADATA,sha256=U_uYp1fYEvxHKiltYxJFpBWwylar6vZGsTY-bObgOIA,62386
|
5
|
+
foxesscloud-2.7.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
6
|
+
foxesscloud-2.7.3.dist-info/top_level.txt,sha256=IWOrKSNZCLU6IDXSX_b4_bqCfbZoWAT4CC0w0Lg7PuU,12
|
7
|
+
foxesscloud-2.7.3.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
foxesscloud/foxesscloud.py,sha256=OLhRTCJKCR1pp02nrxOGkEUyGpFxftJ6fvWOaxCSHHw,222936
|
2
|
-
foxesscloud/openapi.py,sha256=pdswoEnPm9fFFJnC9uxvs_DeqFbrwHy3L6ImBnKPXZE,206937
|
3
|
-
foxesscloud-2.7.2.dist-info/LICENCE,sha256=-3xv8CElCJV8Bc8PbAsg3iyxMpAK8MoJneM3rXigxqI,1074
|
4
|
-
foxesscloud-2.7.2.dist-info/METADATA,sha256=N58su8ukQyapfXLbAqdZ6y5MkVJ-3aOB26iLM--GP3E,62314
|
5
|
-
foxesscloud-2.7.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
6
|
-
foxesscloud-2.7.2.dist-info/top_level.txt,sha256=IWOrKSNZCLU6IDXSX_b4_bqCfbZoWAT4CC0w0Lg7PuU,12
|
7
|
-
foxesscloud-2.7.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|