@nexgen-os/pvgis 0.4.2 → 0.5.1
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.
- package/dist/index.d.ts +6 -2
- package/dist/index.js +6 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -45,8 +45,12 @@ export declare function pvgis(options?: {
|
|
|
45
45
|
fetch?: Fetch;
|
|
46
46
|
}): {
|
|
47
47
|
source_code: string;
|
|
48
|
-
/**
|
|
49
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Hourly series of a system over whole years: what a yield estimate of
|
|
50
|
+
* the `pvgis_like` profile stores. Without years, every year the radiation
|
|
51
|
+
* database covers, as PVGIS's PV calculator averages them; `meta` says which.
|
|
52
|
+
*/
|
|
53
|
+
hourly(where: Point, system: PvgisSystem, years?: {
|
|
50
54
|
from: number;
|
|
51
55
|
to: number;
|
|
52
56
|
}, extra?: {
|
package/dist/index.js
CHANGED
|
@@ -25,11 +25,15 @@ export function pvgis(options = {}) {
|
|
|
25
25
|
});
|
|
26
26
|
return {
|
|
27
27
|
source_code: SOURCE_CODE,
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Hourly series of a system over whole years: what a yield estimate of
|
|
30
|
+
* the `pvgis_like` profile stores. Without years, every year the radiation
|
|
31
|
+
* database covers, as PVGIS's PV calculator averages them; `meta` says which.
|
|
32
|
+
*/
|
|
29
33
|
async hourly(where, system, years, extra = {}) {
|
|
30
34
|
const params = new URLSearchParams({
|
|
31
35
|
lat: String(where.lat), lon: String(where.lon),
|
|
32
|
-
startyear: String(years.from), endyear: String(years.to),
|
|
36
|
+
...(years ? { startyear: String(years.from), endyear: String(years.to) } : {}),
|
|
33
37
|
pvcalculation: '1', ...systemParams(system), outputformat: 'json',
|
|
34
38
|
});
|
|
35
39
|
if (extra.raddatabase)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexgen-os/pvgis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "PVGIS hourly PV energy and irradiance as a Nexgen OS connector.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"build": "tsc -p tsconfig.build.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nexgen-os/core": "^0.
|
|
35
|
+
"@nexgen-os/core": "^0.5.0"
|
|
36
36
|
}
|
|
37
37
|
}
|