foxesscloud 2.5.2__tar.gz → 2.5.4__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.
- {foxesscloud-2.5.2 → foxesscloud-2.5.4}/PKG-INFO +21 -7
- foxesscloud-2.5.2/src/foxesscloud.egg-info/PKG-INFO → foxesscloud-2.5.4/README.md +20 -20
- {foxesscloud-2.5.2 → foxesscloud-2.5.4}/pyproject.toml +1 -1
- {foxesscloud-2.5.2 → foxesscloud-2.5.4}/src/foxesscloud/foxesscloud.py +118 -119
- {foxesscloud-2.5.2 → foxesscloud-2.5.4}/src/foxesscloud/openapi.py +114 -111
- foxesscloud-2.5.2/README.md → foxesscloud-2.5.4/src/foxesscloud.egg-info/PKG-INFO +34 -6
- {foxesscloud-2.5.2 → foxesscloud-2.5.4}/LICENCE +0 -0
- {foxesscloud-2.5.2 → foxesscloud-2.5.4}/setup.cfg +0 -0
- {foxesscloud-2.5.2 → foxesscloud-2.5.4}/src/foxesscloud.egg-info/SOURCES.txt +0 -0
- {foxesscloud-2.5.2 → foxesscloud-2.5.4}/src/foxesscloud.egg-info/dependency_links.txt +0 -0
- {foxesscloud-2.5.2 → foxesscloud-2.5.4}/src/foxesscloud.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: foxesscloud
|
3
|
-
Version: 2.5.
|
3
|
+
Version: 2.5.4
|
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
|
|
@@ -525,11 +528,11 @@ This gets the latest 30 minute pricing and uses this to work out the best off pe
|
|
525
528
|
+ forecast_times: a list of times when a forecast can be obtained from Solcast / forecast.solar, aligned with the host system time
|
526
529
|
+ strategy: an optional list of times and work modes (see below)
|
527
530
|
+ update: optional, 1 (the default) sets the current tariff to Agile Octopus. Setting to 0 does not change the current tariff
|
528
|
-
+ weighting: optional, default is None (see below)
|
531
|
+
+ weighting: optional, default is None / flat (see below)
|
529
532
|
+ time_shift: optional system time shift in hours. The default is for system time to be UTC and to apply the current day light saving time (e.g. GMT/BST)
|
530
533
|
+ plunge_price: list of prices in p/kWh when plunge pricing is used (see below). The default is [0, 5].
|
531
534
|
+ plunge_slots: the number of 30 minute slots to use for plunge pricing. The default is 6, allowing up to 3 hours.
|
532
|
-
+ show_data: show 30 minute Agile pricing data. Default is
|
535
|
+
+ show_data: show 30 minute Agile pricing data. Default is 1.
|
533
536
|
+ show_plot: plot 30 minute Agile pricing data. Default is 1.
|
534
537
|
|
535
538
|
Product codes include:
|
@@ -559,9 +562,7 @@ Region codes include:
|
|
559
562
|
Pricing for tomorrow is updated around 5pm each day. If run before this time, prices from yesterday are used. By default, prices for tomorrow are fetched after 5pm. The setting for this is:
|
560
563
|
+ f.agile_update_time = 17
|
561
564
|
|
562
|
-
The best charging period is determined based on the weighted average of the 30 minute prices over the duration. The default is flat (all prices are weighted equally). You can
|
563
|
-
+ f.front_loaded: [1.0, 0.9, 0.8, 0.7, 0.6, 0.5]
|
564
|
-
+ f.first_hour: [1.0, 1.0]
|
565
|
+
The best charging period is determined based on the weighted average of the 30 minute prices over the duration. The default is flat (all prices are weighted equally, except the last slot, which is pro rata to the charge duration used). You can over-ride the default weighting by providing a list of 30 minute values to apply.
|
565
566
|
|
566
567
|
set_tariff() can configure multiple off-peak and peak periods for any tariff using the 'times' parameter. Times is a list of tuples:
|
567
568
|
+ containing values for key, 'start', 'end' and optional 'force'.
|
@@ -742,7 +743,7 @@ f.get_suntimes(date, utc)
|
|
742
743
|
+ date: 'YYYY-MM-DD'
|
743
744
|
+ utc: 1 = return time in UTC. 0 = return local time (default)
|
744
745
|
|
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()'.
|
746
|
+
'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
747
|
|
747
748
|
|
748
749
|
# Pushover
|
@@ -782,6 +783,19 @@ This setting can be:
|
|
782
783
|
|
783
784
|
# Version Info
|
784
785
|
|
786
|
+
2.5.4<br>
|
787
|
+
Remove preset 'weighting' that were not used.
|
788
|
+
Update weighting to apply the requested charge duration correctly.
|
789
|
+
Reformat price and SoC tables to reduce wrapping and make them easier to read on small screens.
|
790
|
+
Change default for set_tariff() to show Agile 30 minute prices.
|
791
|
+
|
792
|
+
2.5.3<br>
|
793
|
+
Reverted change to allow updates during a charge period to avoid removing charge in progress.
|
794
|
+
Update contingency and show how this relates to battery SoC.
|
795
|
+
Add PV cover, the ratio of PV generation to consumption.
|
796
|
+
Add f.storage path so files can be saved to different locations if needed.
|
797
|
+
Allow delays in 'shading' to be a seaonal list of 4 values (winter, spring, summer, autumn).
|
798
|
+
|
785
799
|
2.5.2<br>
|
786
800
|
Updates to allow charge_needed() to run during a charge period.
|
787
801
|
Add suport for 'off_peak4' charge period.
|
@@ -1,17 +1,3 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: foxesscloud
|
3
|
-
Version: 2.5.2
|
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
|
|
@@ -525,11 +514,11 @@ This gets the latest 30 minute pricing and uses this to work out the best off pe
|
|
525
514
|
+ forecast_times: a list of times when a forecast can be obtained from Solcast / forecast.solar, aligned with the host system time
|
526
515
|
+ strategy: an optional list of times and work modes (see below)
|
527
516
|
+ update: optional, 1 (the default) sets the current tariff to Agile Octopus. Setting to 0 does not change the current tariff
|
528
|
-
+ weighting: optional, default is None (see below)
|
517
|
+
+ weighting: optional, default is None / flat (see below)
|
529
518
|
+ time_shift: optional system time shift in hours. The default is for system time to be UTC and to apply the current day light saving time (e.g. GMT/BST)
|
530
519
|
+ plunge_price: list of prices in p/kWh when plunge pricing is used (see below). The default is [0, 5].
|
531
520
|
+ plunge_slots: the number of 30 minute slots to use for plunge pricing. The default is 6, allowing up to 3 hours.
|
532
|
-
+ show_data: show 30 minute Agile pricing data. Default is
|
521
|
+
+ show_data: show 30 minute Agile pricing data. Default is 1.
|
533
522
|
+ show_plot: plot 30 minute Agile pricing data. Default is 1.
|
534
523
|
|
535
524
|
Product codes include:
|
@@ -559,9 +548,7 @@ Region codes include:
|
|
559
548
|
Pricing for tomorrow is updated around 5pm each day. If run before this time, prices from yesterday are used. By default, prices for tomorrow are fetched after 5pm. The setting for this is:
|
560
549
|
+ f.agile_update_time = 17
|
561
550
|
|
562
|
-
The best charging period is determined based on the weighted average of the 30 minute prices over the duration. The default is flat (all prices are weighted equally). You can
|
563
|
-
+ f.front_loaded: [1.0, 0.9, 0.8, 0.7, 0.6, 0.5]
|
564
|
-
+ f.first_hour: [1.0, 1.0]
|
551
|
+
The best charging period is determined based on the weighted average of the 30 minute prices over the duration. The default is flat (all prices are weighted equally, except the last slot, which is pro rata to the charge duration used). You can over-ride the default weighting by providing a list of 30 minute values to apply.
|
565
552
|
|
566
553
|
set_tariff() can configure multiple off-peak and peak periods for any tariff using the 'times' parameter. Times is a list of tuples:
|
567
554
|
+ containing values for key, 'start', 'end' and optional 'force'.
|
@@ -742,7 +729,7 @@ f.get_suntimes(date, utc)
|
|
742
729
|
+ date: 'YYYY-MM-DD'
|
743
730
|
+ utc: 1 = return time in UTC. 0 = return local time (default)
|
744
731
|
|
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()'.
|
732
|
+
'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
733
|
|
747
734
|
|
748
735
|
# Pushover
|
@@ -782,6 +769,19 @@ This setting can be:
|
|
782
769
|
|
783
770
|
# Version Info
|
784
771
|
|
772
|
+
2.5.4<br>
|
773
|
+
Remove preset 'weighting' that were not used.
|
774
|
+
Update weighting to apply the requested charge duration correctly.
|
775
|
+
Reformat price and SoC tables to reduce wrapping and make them easier to read on small screens.
|
776
|
+
Change default for set_tariff() to show Agile 30 minute prices.
|
777
|
+
|
778
|
+
2.5.3<br>
|
779
|
+
Reverted change to allow updates during a charge period to avoid removing charge in progress.
|
780
|
+
Update contingency and show how this relates to battery SoC.
|
781
|
+
Add PV cover, the ratio of PV generation to consumption.
|
782
|
+
Add f.storage path so files can be saved to different locations if needed.
|
783
|
+
Allow delays in 'shading' to be a seaonal list of 4 values (winter, spring, summer, autumn).
|
784
|
+
|
785
785
|
2.5.2<br>
|
786
786
|
Updates to allow charge_needed() to run during a charge period.
|
787
787
|
Add suport for 'off_peak4' charge period.
|