foxesscloud 2.5.1__tar.gz → 2.5.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.5.1
3
+ Version: 2.5.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
@@ -71,6 +71,9 @@ If a value is set for f.plot_file, any charts created will also be saved to an i
71
71
 
72
72
  If you set f.pushover_user_key to your user_key for pushover.net, a summary from set_tariff(), charge_needed(), set_pvoutput() and battery_info() will be sent to your pushover app.
73
73
 
74
+ You can set 'f.storage' to a path to save files to a different location such as cloud storage. The default is to use the current working directory.
75
+
76
+
74
77
  ## User info
75
78
  Return information about the current user:
76
79
 
@@ -239,7 +242,7 @@ The summary includes the following attributes:
239
242
 
240
243
  For power values (unit = kW), the summary performs a Riemann sum of the data, integrating kW over the day to estimate energy in kWh. In this case, the following attributes are also added:
241
244
  + kwh: the total energy generated or consumed
242
- + kwh_off: the total energy consumed or generated during the off-peak time of use (off_peak1, off_peak2, off_peak3)
245
+ + kwh_off: the total energy consumed or generated during the off-peak time of use (off_peak1, off_peak2, off_peak3, off_peak4)
243
246
  + kwh_peak: the total energy consumed or generated during the peak time of use (peak1, peak2)
244
247
  + kwh_neg: the total energy from -ve power flow (all other totals are based on +ve power flow)
245
248
 
@@ -565,7 +568,7 @@ The best charging period is determined based on the weighted average of the 30 m
565
568
 
566
569
  set_tariff() can configure multiple off-peak and peak periods for any tariff using the 'times' parameter. Times is a list of tuples:
567
570
  + containing values for key, 'start', 'end' and optional 'force'.
568
- + recongnised keys are: 'off_peak1', 'off_peak2', 'off_peak3', 'peak1', 'peak2'
571
+ + recongnised keys are: 'off_peak1', 'off_peak2', 'off_peak3', 'off_peak4', 'peak1', 'peak2'
569
572
  + a tuple containing a key with no values will remove the time period from the tariff.
570
573
 
571
574
  For example, this parameter configures an AM charging period between 11pm and 8am and a PM charging period between 12 noon and 4pm and removes the time period 'peak2':
@@ -742,7 +745,7 @@ f.get_suntimes(date, utc)
742
745
  + date: 'YYYY-MM-DD'
743
746
  + utc: 1 = return time in UTC. 0 = return local time (default)
744
747
 
745
- 'shading' adjusts the forecast and sets delays and losses caused as the sun rise and set for Solcast and Solar. The forecast is multiplied by 'adjust'. The (AM/PM) delay is the time after sunrise or before sunset that is applied and 'loss' is the amount that the solar forecast is reduced. The default structure above is used by Solcast and Solar when called from charge_needed() or they can be passed directly as parameters when forecasts are being created using 'f.Solcast()' and 'f.Solar()'.
748
+ 'shading' adjusts the forecast and sets delays and losses caused as the sun rise and set for Solcast and Solar. The forecast is multiplied by 'adjust'. The (AM/PM) delay is the time after sunrise or before sunset that is applied and 'loss' is the amount that the solar forecast is reduced. The default structure above is used by Solcast and Solar when called from charge_needed() or they can be passed directly as parameters when forecasts are being created using 'f.Solcast()' and 'f.Solar()'. If the delays are presented as a list, they are values for winter, spring, summer and autumn.
746
749
 
747
750
 
748
751
  # Pushover
@@ -782,6 +785,19 @@ This setting can be:
782
785
 
783
786
  # Version Info
784
787
 
788
+ 2.5.3<br>
789
+ Reverted change to allow updates during a charge period to avoid removing charge in progress.
790
+ Update contingency and show how this relates to battery SoC.
791
+ Add PV cover, the ratio of PV generation to consumption.
792
+ Add f.storage path so files can be saved to different locations if needed.
793
+ Allow delays in 'shading' to be a seaonal list of 4 values (winter, spring, summer, autumn).
794
+
795
+ 2.5.2<br>
796
+ Updates to allow charge_needed() to run during a charge period.
797
+ Add suport for 'off_peak4' charge period.
798
+ Change Solcast forecast in charge_needed() so it does not get todays estimate to save API calls.
799
+ Include contingency and reserve when checking minimum battery level.
800
+
785
801
  2.5.1<br>
786
802
  Fix anomaly in scheduler support when get_device and get_flag return different results.
787
803
  Add 'show_data' to charge_compare() and display run time and starting SoC.
@@ -1,17 +1,3 @@
1
- Metadata-Version: 2.1
2
- Name: foxesscloud
3
- Version: 2.5.1
4
- Summary: library for accessing Fox ESS cloud data using Open API
5
- Author-email: Tony Matthews <tony@quasair.co.uk>
6
- Project-URL: Homepage, https://github.com/TonyM1958/FoxESS-Cloud
7
- Project-URL: Bug Tracker, https://github.com/TonyM1958/FoxESS-Cloud/issues
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.7
12
- Description-Content-Type: text/markdown
13
- License-File: LICENCE
14
-
15
1
  # FoxESS-Cloud
16
2
 
17
3
  <a href="https://www.buymeacoffee.com/tonym1958" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174" align="right"></a>
@@ -71,6 +57,9 @@ If a value is set for f.plot_file, any charts created will also be saved to an i
71
57
 
72
58
  If you set f.pushover_user_key to your user_key for pushover.net, a summary from set_tariff(), charge_needed(), set_pvoutput() and battery_info() will be sent to your pushover app.
73
59
 
60
+ You can set 'f.storage' to a path to save files to a different location such as cloud storage. The default is to use the current working directory.
61
+
62
+
74
63
  ## User info
75
64
  Return information about the current user:
76
65
 
@@ -239,7 +228,7 @@ The summary includes the following attributes:
239
228
 
240
229
  For power values (unit = kW), the summary performs a Riemann sum of the data, integrating kW over the day to estimate energy in kWh. In this case, the following attributes are also added:
241
230
  + kwh: the total energy generated or consumed
242
- + kwh_off: the total energy consumed or generated during the off-peak time of use (off_peak1, off_peak2, off_peak3)
231
+ + kwh_off: the total energy consumed or generated during the off-peak time of use (off_peak1, off_peak2, off_peak3, off_peak4)
243
232
  + kwh_peak: the total energy consumed or generated during the peak time of use (peak1, peak2)
244
233
  + kwh_neg: the total energy from -ve power flow (all other totals are based on +ve power flow)
245
234
 
@@ -565,7 +554,7 @@ The best charging period is determined based on the weighted average of the 30 m
565
554
 
566
555
  set_tariff() can configure multiple off-peak and peak periods for any tariff using the 'times' parameter. Times is a list of tuples:
567
556
  + containing values for key, 'start', 'end' and optional 'force'.
568
- + recongnised keys are: 'off_peak1', 'off_peak2', 'off_peak3', 'peak1', 'peak2'
557
+ + recongnised keys are: 'off_peak1', 'off_peak2', 'off_peak3', 'off_peak4', 'peak1', 'peak2'
569
558
  + a tuple containing a key with no values will remove the time period from the tariff.
570
559
 
571
560
  For example, this parameter configures an AM charging period between 11pm and 8am and a PM charging period between 12 noon and 4pm and removes the time period 'peak2':
@@ -742,7 +731,7 @@ f.get_suntimes(date, utc)
742
731
  + date: 'YYYY-MM-DD'
743
732
  + utc: 1 = return time in UTC. 0 = return local time (default)
744
733
 
745
- 'shading' adjusts the forecast and sets delays and losses caused as the sun rise and set for Solcast and Solar. The forecast is multiplied by 'adjust'. The (AM/PM) delay is the time after sunrise or before sunset that is applied and 'loss' is the amount that the solar forecast is reduced. The default structure above is used by Solcast and Solar when called from charge_needed() or they can be passed directly as parameters when forecasts are being created using 'f.Solcast()' and 'f.Solar()'.
734
+ 'shading' adjusts the forecast and sets delays and losses caused as the sun rise and set for Solcast and Solar. The forecast is multiplied by 'adjust'. The (AM/PM) delay is the time after sunrise or before sunset that is applied and 'loss' is the amount that the solar forecast is reduced. The default structure above is used by Solcast and Solar when called from charge_needed() or they can be passed directly as parameters when forecasts are being created using 'f.Solcast()' and 'f.Solar()'. If the delays are presented as a list, they are values for winter, spring, summer and autumn.
746
735
 
747
736
 
748
737
  # Pushover
@@ -782,6 +771,19 @@ This setting can be:
782
771
 
783
772
  # Version Info
784
773
 
774
+ 2.5.3<br>
775
+ Reverted change to allow updates during a charge period to avoid removing charge in progress.
776
+ Update contingency and show how this relates to battery SoC.
777
+ Add PV cover, the ratio of PV generation to consumption.
778
+ Add f.storage path so files can be saved to different locations if needed.
779
+ Allow delays in 'shading' to be a seaonal list of 4 values (winter, spring, summer, autumn).
780
+
781
+ 2.5.2<br>
782
+ Updates to allow charge_needed() to run during a charge period.
783
+ Add suport for 'off_peak4' charge period.
784
+ Change Solcast forecast in charge_needed() so it does not get todays estimate to save API calls.
785
+ Include contingency and reserve when checking minimum battery level.
786
+
785
787
  2.5.1<br>
786
788
  Fix anomaly in scheduler support when get_device and get_flag return different results.
787
789
  Add 'show_data' to charge_compare() and display run time and starting SoC.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "foxesscloud"
7
- version = "2.5.1"
7
+ version = "2.5.3"
8
8
  authors = [
9
9
  {name="Tony Matthews", email="tony@quasair.co.uk"},
10
10
  ]