You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2021/06/25 03:37:02 UTC
[incubator-nlpcraft] branch NLPCRAFT-345 updated: Update
WeatherModel.java
This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-345
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-345 by this push:
new 8fcdfe0 Update WeatherModel.java
8fcdfe0 is described below
commit 8fcdfe00d079064b10728666ef5dfafbf10fbbb2
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Thu Jun 24 20:36:48 2021 -0700
Update WeatherModel.java
---
.../java/org/apache/nlpcraft/examples/weather/WeatherModel.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/nlpcraft-examples/weather/src/main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java b/nlpcraft-examples/weather/src/main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java
index 5b8b8b8..f8380b6 100644
--- a/nlpcraft-examples/weather/src/main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java
+++ b/nlpcraft-examples/weather/src/main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java
@@ -47,13 +47,16 @@ import static java.time.temporal.ChronoUnit.DAYS;
* <p>
* This is a relatively complete weather service with JSON output and a non-trivial
* intent matching logic. It uses OpenWeather API weather provider REST service for the actual
- * weather information (https://openweathermap.org/api/one-call-api)
+ * weather information (https://openweathermap.org/api/one-call-api).
+ * <p>
+ * NOTE: you must provide OpenWorldMap API key in 'OWM_API_KEY' system property.
+ * See https://openweathermap.org/api for more information.
* <p>
* See 'README.md' file in the same folder for running and testing instructions.
*/
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
public class WeatherModel extends NCModelFileAdapter {
- /* System property for OpenWeatherMap API key. */
+ // System property for OpenWeatherMap API key.
public final String OWM_API_KEY = "OWM_API_KEY";
// Please register your own account at https://openweathermap.org/api and