You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/historic.md
+38-17Lines changed: 38 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ The `Historic` module has 3 methods:
10
10
|`rooftop_pv_power`|[list of API parameters](https://docs.solcast.com.au/#504e6e52-992f-4ac2-a4dc-d7ab312f992a){.md-button} |
11
11
|`advanced_pv_power`|[list of API parameters](https://docs.solcast.com.au/#1db1132e-8d49-4f25-939f-34883e5336c4){.md-button} |
12
12
13
-
###Example
13
+
## Example of single-period request
14
14
15
15
```python
16
16
from solcast import historic
@@ -34,31 +34,52 @@ res.to_pandas().head()
34
34
| 2022-06-01 08:30:00+00:00 | 12 | 0 | 0 |
35
35
36
36
37
-
## Example of multi period request for the year of 2023 from Jan 01
38
-
### The below code is using an unmetered location. If using a metered location, it will consume 12 request.
37
+
## Example of 12 month combined multi-period requests
38
+
The below code is using an unmetered location. If using a metered location, it will consume 12 requests.
39
+
For more information see the [API Docs](https://solcast.github.io/solcast-api-python-sdk/notebooks/1.3%20Getting%20Data%20-%20Make%20Concurrent%20Requests/).
39
40
40
41
```python
41
-
from solcast importhistoric
42
+
importtime
42
43
import pandas as pd
43
-
from solcast.unmetered_locations importUNMETERED_LOCATIONS
44
44
from solcast import historic
45
+
from solcast.unmetered_locations importUNMETERED_LOCATIONS
0 commit comments