-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a17ca00
commit f15f991
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,54 @@ | ||
# signalk-openweather-plugin | ||
SignalK Plugin to inject forecast data from <a href="https://openweathermap.org/">OpenWeather</a> public weather service | ||
# Install & Use | ||
Note: To use this plugin you need to request an apikey, ie. APPID on http://openweathermap.org/appid and start! | ||
Install the plugin through the SignalK plugin interface. After installation you may want to 'Activate' it through the SignalK Plugin Config interface and enter your pre-requested apikey.<br>The plugin will inject several new SignalK-values, such as:<br> | ||
<code>'environment.forecast.temperature'<br><br> | ||
'environment.forecast.humidity'<br><br> | ||
'environment.forecast.pressure'<br><br></code><br> | ||
Forecast data is purely based on position - hence <code>'navigation.position'</code> needs to present. Data will be queried on position change and/or regularily on an hourly-basis (triggered by signalk-raspberry-pi-temperature-plugin). <code>'navigation.gnss.antennaAltitude'</code> (GPS altitude) is required if operated on non-sealevel altitude to compensate atmospheric pressure data to the appropriate elevation. Plugins like signalk-fixedstation could be used and the plugin will make calculations by adjusting the pressure accordingly. Default is altitude = 0 (sea level).It will take the plugin a few minutes before showing output data, as it will need to collect position information before requesting data from openweathermap.<br> | ||
By default the will update forecast information every hour. No information will be stored or tracked.<br> | ||
Note: Alerts from openweathermap.org currently not implemented as based on <code>'environment.outside.pressure'</code> like provided by RuuviTag severities could be more accurate and it's possible to set an alarm, i.e. via the Simple Notification-plugin.<br> | ||
# Details on input data | ||
Simple output format is based on openweather-apis SMART JSON<br> | ||
<code> | ||
{ | ||
temp: 277.99, | ||
humidity: 86, | ||
pressure: 93666.52473007084, | ||
description: 'overcast clouds', | ||
rain: {}, | ||
weathercode: 804 | ||
} | ||
</code><br>but full output will be created using requiring through openweathermaps onecall API considering the hourly offset entered<br> | ||
<code> | ||
{ | ||
forecast: | ||
{ | ||
time: 1612224000, | ||
sunrise: 1612161706, | ||
sunset: 1612195960, | ||
main: 'Clouds', | ||
icon: '04n' | ||
}, | ||
simple: | ||
{ | ||
temp: 278.3, | ||
humidity: 91, | ||
pressure: 93117.90832440622, | ||
description: 'overcast clouds', | ||
rain: { '1h': 0.26 }, | ||
weathercode: 804 | ||
}, | ||
full: | ||
{ | ||
temp: { min: 277.18, max: 281.45 }, | ||
feelslike: 274.52, | ||
dewpoint: 276.95, | ||
uvindex: 0, | ||
clouds: 100, | ||
visibility: 10000, | ||
wind: { speed: 3.47, dir: 233 } | ||
} | ||
</code> | ||
|