@angelrove/forecast-utils 1.1.12 → 1.1.14
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/README.md +15 -0
- package/dist/types/OpenMeteo/types.d.ts +1 -1
- package/dist/types/astronomy/sun/helpers.d.ts +0 -1
- package/package.json +2 -2
- package/src/index.js +0 -11
package/README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# @forecast-utils
|
|
2
|
+
|
|
3
|
+
Several utility libraries for my "tierracolora.com" project:
|
|
4
|
+
- Forecast API (OpenWeather)
|
|
5
|
+
- Astronomy utilities
|
|
6
|
+
- Geolocation
|
|
7
|
+
- Another utilities.
|
|
8
|
+
|
|
9
|
+
Includes directory *images/ws* with weather images (symbols)
|
|
10
|
+
|
|
11
|
+
I use private libraries for the following:
|
|
12
|
+
- Astronomy calculations: suncalc3
|
|
13
|
+
|
|
14
|
+
# Documentation
|
|
1
15
|
## Modules
|
|
2
16
|
|
|
3
17
|
<dl>
|
|
@@ -394,6 +408,7 @@ Custom hook to fetch current weather data from OpenMeteo API.
|
|
|
394
408
|
|
|
395
409
|
### OpenMeteo.exports.useForecastDaily(lat, lon, refreshIntervalMin) ⇒ <code>ForecastData</code>
|
|
396
410
|
Custom hook to fetch daily forecast (10 days) data from OpenMeteo API.
|
|
411
|
+
|
|
397
412
|
https://api.open-meteo.com/v1/forecast?timezone=auto&latitude=36.6644363&longitude=-4.5108962&forecast_days=10&daily=weathercode
|
|
398
413
|
|
|
399
414
|
**Kind**: static method of [<code>OpenMeteo</code>](#module_OpenMeteo)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Jose Angel Romero Vegas",
|
|
3
3
|
"name": "@angelrove/forecast-utils",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.14",
|
|
5
5
|
"description": "Utilities for obtaining weather and astronomy forecast data.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"homepage": "https://github.com/angelrove/forecast-utils",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"docs:md": "bunx jsdoc2md --separators $(cat jsdoc-files.txt) > README.md"
|
|
13
|
+
"docs:md": "bunx jsdoc2md --separators $(cat jsdoc-files.txt) > README.md ; cat README_HEAD.md README.md > temp && mv temp README.md; echo Remember add new files to - jsdoc-files.txt -!!!"
|
|
14
14
|
},
|
|
15
15
|
"types": "dist/types/index.d.ts",
|
|
16
16
|
"exports": {
|
package/src/index.js
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Several utility libraries for the Tierracolora project:
|
|
3
|
-
* - Forecast API (OpenWeather)
|
|
4
|
-
* - Astronomy utilities
|
|
5
|
-
* - Geolocation
|
|
6
|
-
* - Another utilities.
|
|
7
|
-
*
|
|
8
|
-
* I use public libraries for the following:
|
|
9
|
-
* - Astronomy calculations: suncalc3
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
1
|
// Astronomy
|
|
13
2
|
export { default as MoonCalc } from "./astronomy/moon/MoonCalc.js";
|
|
14
3
|
export { default as SunCalc } from "./astronomy/sun/SunCalc.js";
|