Add Apple WeatherKit support

This commit is contained in:
Samer Albahra
2023-03-20 18:40:05 -04:00
parent a91167187f
commit 2d5cf0dbf3
7 changed files with 5003 additions and 19 deletions

View File

@@ -21,7 +21,7 @@ The production version runs on Amazon Elastic Beanstalk (AWS EB) and therefore t
---
## Installating a Local Weather Service
If you would like to choose between different Weather Providers (currently OpenWeatherMap and DarkSky are supported) or use your local PWS to provide the weather information used by OpenSprinkler then you can install and configure the Weather Service on a device within your own local network.
If you would like to choose between different Weather Providers (currently OpenWeatherMap, DarkSky and Apple WeatherKit are supported) or use your local PWS to provide the weather information used by OpenSprinkler then you can install and configure the Weather Service on a device within your own local network.
You will need a 24x7 "always on" machine to host the service (this can be a Windows or Linux machine or even a Raspberry Pi device) provided it supports the `Node.js` environment.
@@ -80,4 +80,4 @@ docker start osweather
# Instead of the above, use this for testing/troubleshooting by running it in the foreground:
docker run --rm -it -p 3000:3000 opensprinkler-weather
```
Note: to expose a different port, change `-p 3000:3000` to, eg `-p12345:3000`
Note: to expose a different port, change `-p 3000:3000` to, eg `-p12345:3000`