foxesscloud 2.7.2__tar.gz → 2.7.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: foxesscloud
3
- Version: 2.7.2
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.
@@ -793,6 +793,9 @@ This setting can be:
793
793
 
794
794
  # Version Info
795
795
 
796
+ 2.7.3<br>
797
+ Fix divide by zero error if get_report() returns no data.
798
+
796
799
  2.7.2<br>
797
800
  Fix to get_battery() to return error and flag status=0 in f.battery when the cloud is not returning valid data.
798
801
  Fix exception calculating SoH if ratedCapacity is returned as 0 when cloud is not returning valid data.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "foxesscloud"
7
- version = "2.7.2"
7
+ version = "2.7.3"
8
8
  authors = [
9
9
  {name="Tony Matthews", email="tony@quasair.co.uk"},
10
10
  ]
@@ -1,7 +1,7 @@
1
1
  ##################################################################################################
2
2
  """
3
3
  Module: Fox ESS Cloud
4
- Updated: 23 November 2024
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.3"
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 = '/c/v0/device/history/report' if station == 0 else '/c/v0/plant/history/report'
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.43
3070
+ capacity = 14.40
3071
3071
  residual = test_soc * capacity / 100
3072
3072
  bat_volt = 317.4
3073
3073
  bat_power = 0.0
@@ -1,7 +1,7 @@
1
1
  ##################################################################################################
2
2
  """
3
3
  Module: Fox ESS Cloud using Open API
4
- Updated: 23 November 2024
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.2"
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.43
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.2
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.
File without changes
File without changes