From c5395be7a9b9a887db44153a5e24148cd72f8117 Mon Sep 17 00:00:00 2001 From: Dennis De Marco Date: Mon, 23 Sep 2019 09:40:32 -0500 Subject: [PATCH 1/5] Adding a gotcha section --- plugins/openweather/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugins/openweather/README.md b/plugins/openweather/README.md index abcc5f12..8fa46cb2 100644 --- a/plugins/openweather/README.md +++ b/plugins/openweather/README.md @@ -47,6 +47,20 @@ Seasons and time of day (ie, it's day or night) are not provided by Openweather. Feel free to change the descriptions in the openweather.yml file, and or language in the ~/aresmush/plugins/openweather/locales/locale_en.yml +# Common Gotchas +* Make sure when adding the API key that it is on one line (no dashes) and falls +under the secrets subkey. + +
+secrets:
+    openweather_api_key: your_api_key
+
+ +* If you need to make a change or fix, simply reload the plugin for it +to take effect in your game. +
+load openweather
+
# Author Dennis De Marco (dennis@demarco.com)/Fenris@SpirtLakeMU # Reference Links From 9e717185740cf67bdcb34b5052a917dd1a1f0e3c Mon Sep 17 00:00:00 2001 From: Dennis De Marco Date: Mon, 23 Sep 2019 09:42:47 -0500 Subject: [PATCH 2/5] more updates --- plugins/openweather/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/openweather/README.md b/plugins/openweather/README.md index 8fa46cb2..babd9cb7 100644 --- a/plugins/openweather/README.md +++ b/plugins/openweather/README.md @@ -40,8 +40,10 @@ in game do ruby Openweather.current_weather This should give all the variables the API got for the area and will help in debugging. -# Oddities. -Seasons and time of day (ie, it's day or night) are not provided by Openweather. These come from the ICTime plugin in base AresMUSH. The base ICTime module does not have timezones, but there are code hooks where you can differentiate ICTime by area if you add custom code. +# Oddities and wierdness +* Seasons and time of day (ie, it's day or night) are not provided by Openweather. These come from the ICTime plugin in base AresMUSH. The base ICTime module does not have timezones, but there are code hooks where you can differentiate ICTime by area if you add custom code. +* Openweather makes the API call in the background, so inital startup may take +a second or two to populate the data. # Customizations Feel free to change the descriptions in the openweather.yml file, and or From 37054a5660ffc0642b88ac7613259d4b7f249807 Mon Sep 17 00:00:00 2001 From: Dennis De Marco Date: Mon, 23 Sep 2019 09:46:05 -0500 Subject: [PATCH 3/5] Added more information --- plugins/openweather/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/openweather/README.md b/plugins/openweather/README.md index babd9cb7..aa5296c5 100644 --- a/plugins/openweather/README.md +++ b/plugins/openweather/README.md @@ -59,7 +59,8 @@ secrets: * If you need to make a change or fix, simply reload the plugin for it -to take effect in your game. +to take effect in your game or do an **openweather/reset**. +
 load openweather
 
From 0eef16a71ecaaa0a8b5d7354cdfe57eb6fade04b Mon Sep 17 00:00:00 2001 From: Dennis De Marco Date: Mon, 23 Sep 2019 09:53:20 -0500 Subject: [PATCH 4/5] Added info about reset --- plugins/openweather/README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/openweather/README.md b/plugins/openweather/README.md index aa5296c5..0b0d8d18 100644 --- a/plugins/openweather/README.md +++ b/plugins/openweather/README.md @@ -58,12 +58,8 @@ secrets: openweather_api_key: your_api_key -* If you need to make a change or fix, simply reload the plugin for it -to take effect in your game or do an **openweather/reset**. +* If you need to make a change or fix in the config files do an **openweather/reset**. That will force a weather update using the new configs. -
-load openweather
-
# Author Dennis De Marco (dennis@demarco.com)/Fenris@SpirtLakeMU # Reference Links From be2e837bf79b6b5aa56789d9df16c3666839977f Mon Sep 17 00:00:00 2001 From: Dennis De Marco Date: Mon, 23 Sep 2019 10:22:16 -0500 Subject: [PATCH 5/5] Cosmetic change for humans, lat is usally first coord in a series. computer don't care because of key/value pair --- plugins/openweather/game/config/openweather.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/openweather/game/config/openweather.yml b/plugins/openweather/game/config/openweather.yml index d1c515d1..bd12e0d6 100644 --- a/plugins/openweather/game/config/openweather.yml +++ b/plugins/openweather/game/config/openweather.yml @@ -15,8 +15,8 @@ openweather: Offstage: none Polar: coords: - lon: 40.92 lat: -74.7 + lon: 40.92 Vegas: zip: 89109