From 0a25e7fac8ada28c7a6103449ab33c3726a49a21 Mon Sep 17 00:00:00 2001 From: Tiago Santos Date: Sun, 22 Aug 2021 15:07:29 +0200 Subject: [PATCH] Remove WIKI bad ref --- pocar.wiki/Home.md | 26 -------- .../Process-One-Call-Api-base-response.md | 35 ---------- ...s-One-Call-Api-response-for-Alerts-data.md | 42 ------------ ...-One-Call-Api-response-for-Current-data.md | 55 ---------------- ...ss-One-Call-Api-response-for-Daily-data.md | 64 ------------------- ...s-One-Call-Api-response-for-Hourly-data.md | 52 --------------- ...One-Call-Api-response-for-Minutely-data.md | 38 ----------- 7 files changed, 312 deletions(-) delete mode 100644 pocar.wiki/Home.md delete mode 100644 pocar.wiki/Process-One-Call-Api-base-response.md delete mode 100644 pocar.wiki/Process-One-Call-Api-response-for-Alerts-data.md delete mode 100644 pocar.wiki/Process-One-Call-Api-response-for-Current-data.md delete mode 100644 pocar.wiki/Process-One-Call-Api-response-for-Daily-data.md delete mode 100644 pocar.wiki/Process-One-Call-Api-response-for-Hourly-data.md delete mode 100644 pocar.wiki/Process-One-Call-Api-response-for-Minutely-data.md diff --git a/pocar.wiki/Home.md b/pocar.wiki/Home.md deleted file mode 100644 index 4a51e5f..0000000 --- a/pocar.wiki/Home.md +++ /dev/null @@ -1,26 +0,0 @@ -# Introduction - -This python module aims to process Open Weather data provided by One Call API, making it available to user. - -The access to One Call API is free, but an account in Open Weather is required, see: [OpenWeather Account](https://openweathermap.org/full-price#current) - -# Open Weather data for One Call API - -The One Call API provides the following weather data for any geographical coordinates: -* Current weather -* Minute forecast for 1 hour -* Hourly forecast for 48 hours -* Daily forecast for 7 days -* National weather alerts - -See full documentation for One Call API: [One Call API documentation](https://openweathermap.org/api/one-call-api) - -# How to use this module - -For examples on how to use this module, check the following wiki pages: -* [Process One Call Api base response](./Process-One-Call-Api-base-response) -* [Process One Call Api response for Current data](./Process-One-Call-Api-response-for-Current-data) -* [Process One Call Api response for Daily data](./Process-One-Call-Api-response-for-Daily-data) -* [Process One Call Api response for Minutely data](./Process-One-Call-Api-response-for-Minutely-data) -* [Process One Call Api response for Hourly data](./Process-One-Call-Api-response-for-Hourly-data) -* [Process One Call Api response for Alerts data](./Process-One-Call-Api-response-for-Alerts-data) diff --git a/pocar.wiki/Process-One-Call-Api-base-response.md b/pocar.wiki/Process-One-Call-Api-base-response.md deleted file mode 100644 index 4333659..0000000 --- a/pocar.wiki/Process-One-Call-Api-base-response.md +++ /dev/null @@ -1,35 +0,0 @@ -# Process One Call Api base response - -This functionality allows to process One Call Api response at a base level. -Here the user will have access to response header fields and response raw data as a dictionary. - -```python -from pocar.OneCallApi import OneCallApi - -# CONSTANT DATA -LAT = 45.1234 -LON = 1.2345 -KEY = "abcdef1234567890abcdef1234567890" -EXC = "" - -def func_base() - # 1. Create OneCallApi object - oca = OneCallApi(LAT, LON, KEY, EXC) - - # 2. Update Open Weather data for One Call Api - oca.updateData() - - # 3. Work on processed data - print("One Call Api configuration: \n", oca.config() ) - - print("One Call Api configured latitude value : ", oca.lat() ) - print("One Call Api configured longitude value: ", oca.lon() ) - print("One Call Api configured API Key value : ", oca.key() ) - print("One Call Api configured excluded value : ", oca.exc() ) - - print("One Call Api response raw data: \n", oca.raw_data() ) - - print("One Call Api response, timezone : ", oca.timezone() ) - print("One Call Api response, timezone offset: ", oca.timezone_offset() ) - print("One Call Api data timestamp : ", oca.timestamp() ) -``` diff --git a/pocar.wiki/Process-One-Call-Api-response-for-Alerts-data.md b/pocar.wiki/Process-One-Call-Api-response-for-Alerts-data.md deleted file mode 100644 index 3083ac5..0000000 --- a/pocar.wiki/Process-One-Call-Api-response-for-Alerts-data.md +++ /dev/null @@ -1,42 +0,0 @@ -# Process One Call Api response for Alerts data - -This functionality allows to process One Call Api response for Alerts data. -The Alerts data holds the National weather alerts data from major national weather warning systems. - -```python -from pocar.OneCallApiAlerts import OneCallApiAlerts - -# CONSTANT DATA -LAT = 45.1234 -LON = 1.2345 -KEY = "abcdef1234567890abcdef1234567890" - -def func_alerts() - # 1. Create OneCallApi Alerts object - ocaa = OneCallApiAlerts(LAT, LON, KEY) - - # 2. Update Open Weather data for One Call Api - ocaa.updateData() - - # 3. Work on processed data - print("One Call Api configuration: \n", ocaa.config() ) - - print("One Call Api configured latitude value : ", ocaa.lat() ) - print("One Call Api configured longitude value: ", ocaa.lon() ) - print("One Call Api configured API Key value : ", ocaa.key() ) - print("One Call Api configured excluded value : ", ocaa.exc() ) - - print("One Call Api response raw data full: \n", ocaa.raw_data() ) - print("One Call Api response raw data current\n", ocaa.raw_data_alerts() ) - - print("One Call Api response, timezone : ", ocaa.timezone() ) - print("One Call Api response, timezone_offset: ", ocaa.timezone_offset() ) - print("One Call Api data timestamp : ", ocaa.timestamp() ) - - print("One Call Api response, sender name: ", ocaa.sender_name() ) - print("One Call Api response, event : ", ocaa.event() ) - print("One Call Api response, start date : ", ocaa.start_dt() ) - print("One Call Api response, end date : ", ocaa.end_dt() ) - print("One Call Api response, description: ", ocaa.description() ) - print("One Call Api response, tags : ", ocaa.tags() ) -``` diff --git a/pocar.wiki/Process-One-Call-Api-response-for-Current-data.md b/pocar.wiki/Process-One-Call-Api-response-for-Current-data.md deleted file mode 100644 index 4e97963..0000000 --- a/pocar.wiki/Process-One-Call-Api-response-for-Current-data.md +++ /dev/null @@ -1,55 +0,0 @@ -# Process One Call Api response for Current data - -This functionality allows to process One Call Api response for Current data. - -```python -from pocar.OneCallApiCurrent import OneCallApiCurrent - -# CONSTANT DATA -LAT = 45.1234 -LON = 1.2345 -KEY = "abcdef1234567890abcdef1234567890" - -def func_current() - # 1. Create OneCallApi Current object - ocac = OneCallApiCurrent(LAT, LON, KEY) - - # 2. Update Open Weather data for One Call Api - ocac.updateData() - - # 3. Work on processed data - print("One Call Api configuration: \n", ocac.config() ) - - print("One Call Api configured latitude value : ", ocac.lat() ) - print("One Call Api configured longitude value: ", ocac.lon() ) - print("One Call Api configured API Key value : ", ocac.key() ) - print("One Call Api configured excluded value : ", ocac.exc() ) - - print("One Call Api response raw data full :\n", ocac.raw_data() ) - print("One Call Api response raw data current:\n", ocac.raw_data_current() ) - - print("One Call Api response, timezone : ", ocac.timezone() ) - print("One Call Api response, timezone_offset: ", ocac.timezone_offset() ) - print("One Call Api data timestamp : ", ocac.timestamp() ) - - print("One Call Api response, current time : ", ocac.data_time() ) - print("One Call Api response, sunrise time : ", ocac.sunrise() ) - print("One Call Api response, sunset time : ", ocac.sunset() ) - print("One Call Api response, temperature : ", ocac.temperature() ) - print("One Call Api response, temperature feel : ", ocac.temperature_feels_like() ) - print("One Call Api response, pressure : ", ocac.pressure() ) - print("One Call Api response, humidity : ", ocac.humidity() ) - print("One Call Api response, dew point : ", ocac.dew_point() ) - print("One Call Api response, clouds : ", ocac.clouds() ) - print("One Call Api response, uv index : ", ocac.uvi() ) - print("One Call Api response, visibility : ", ocac.visibility() ) - print("One Call Api response, wind speed : ", ocac.wind_speed() ) - print("One Call Api response, wind gust : ", ocac.wind_gust() ) - print("One Call Api response, wind degrees : ", ocac.wind_deg() ) - print("One Call Api response, rain volume : ", ocac.rain_volume() ) - print("One Call Api response, snow volume : ", ocac.snow_volume() ) - print("One Call Api response, weather condition id : ", ocac.weather_condition_id() ) - print("One Call Api response, weather condition main : ", ocac.weather_condition_main() ) - print("One Call Api response, weather condition description: ", ocac.weather_condition_description() ) - print("One Call Api response, weather condition icon : ", ocac.weather_condition_icon() ) -``` diff --git a/pocar.wiki/Process-One-Call-Api-response-for-Daily-data.md b/pocar.wiki/Process-One-Call-Api-response-for-Daily-data.md deleted file mode 100644 index eed47a5..0000000 --- a/pocar.wiki/Process-One-Call-Api-response-for-Daily-data.md +++ /dev/null @@ -1,64 +0,0 @@ -# Process One Call Api response for Daily data - -This functionality allows to process One Call Api response for Daily data. -The Daily data holds the weather forecast for the next 7 days in a daily basis (available data is: today weather forecast, plus next 7 days). - -```python -from pocar.OneCallApiDaily import OneCallApiDaily - -# CONSTANT DATA -LAT = 45.1234 -LON = 1.2345 -KEY = "abcdef1234567890abcdef1234567890" - -def func_daily() - # 1. Create OneCallApi Daily object - ocad = OneCallApiDaily(LAT, LON, KEY) - - # 2. Update Open Weather data for One Call Api - ocad.updateData() - - # 3. Work on processed data - print("One Call Api configuration: \n", ocad.config() ) - - print("One Call Api configured latitude value : ", ocad.lat() ) - print("One Call Api configured longitude value: ", ocad.lon() ) - print("One Call Api configured API Key value : ", ocad.key() ) - print("One Call Api configured excluded value : ", ocad.exc() ) - - print("One Call Api response raw data full: \n", ocad.raw_data() ) - print("One Call Api response raw data current\n", ocad.raw_data_daily() ) - - print("One Call Api response, timezone : ", ocad.timezone() ) - print("One Call Api response, timezone_offset: ", ocad.timezone_offset() ) - print("One Call Api data timestamp : ", ocad.timestamp() ) - - print("One Call Api response, current time : ", ocad.data_time() ) - print("One Call Api response, sunrise time : ", ocad.sunrise() ) - print("One Call Api response, sunset time : ", ocad.sunset() ) - print("One Call Api response, moonrise time : ", ocad.moonrise() ) - print("One Call Api response, moonset time : ", ocad.moonset() ) - print("One Call Api response, temperature (day) : ", ocad.temp_day() ) - print("One Call Api response, temperature (min) : ", ocad.temp_min() ) - print("One Call Api response, temperature (max) : ", ocad.temp_max() ) - print("One Call Api response, temperature (night) : ", ocad.temp_night() ) - print("One Call Api response, temperature (evening) : ", ocad.temp_eve() ) - print("One Call Api response, temperature (morning) : ", ocad.temp_morn() ) - print("One Call Api response, temperature feel (day) : ", ocad.feels_like_day() ) - print("One Call Api response, temperature feel (night) : ", ocad.feels_like_night() ) - print("One Call Api response, temperature feel (evening) : ", ocad.feels_like_eve() ) - print("One Call Api response, temperature feel (morning) : ", ocad.feels_like_morn() ) - print("One Call Api response, pressure : ", ocad.pressure() ) - print("One Call Api response, humidity : ", ocad.humidity() ) - print("One Call Api response, dew point : ", ocad.dew_point() ) - print("One Call Api response, wind speed : ", ocad.wind_speed() ) - print("One Call Api response, wind gust : ", ocad.wind_gust() ) - print("One Call Api response, wind degrees : ", ocad.wind_deg() ) - print("One Call Api response, clouds : ", ocad.clouds() ) - print("One Call Api response, precipitation : ", ocad.pop() ) - print("One Call Api response, uvi : ", ocad.uvi() ) - print("One Call Api response, weather condition id : ", ocad.weather_condition_id() ) - print("One Call Api response, weather condition main : ", ocad.weather_condition_main() ) - print("One Call Api response, weather condition description: ", ocad.weather_condition_description() ) - print("One Call Api response, weather condition icon : ", ocad.weather_condition_icon() ) -``` diff --git a/pocar.wiki/Process-One-Call-Api-response-for-Hourly-data.md b/pocar.wiki/Process-One-Call-Api-response-for-Hourly-data.md deleted file mode 100644 index 07216c0..0000000 --- a/pocar.wiki/Process-One-Call-Api-response-for-Hourly-data.md +++ /dev/null @@ -1,52 +0,0 @@ -# Process One Call Api response for Hourly data - -This functionality allows to process One Call Api response for Hourly data. -The Hourly data holds the weather forecast for the next 48 hours in a hourly basis (available data is: current hour weather forecast, plus for next 47 hours) - -```python -from pocar.OneCallApiHourly import OneCallApiHourly - -# CONSTANT DATA -LAT = 45.1234 -LON = 1.2345 -KEY = "abcdef1234567890abcdef1234567890" - -def func_hourly() - # 1. Create OneCallApi Hourly object - ocah = OneCallApiHourly(LAT, LON, KEY) - - # 2. Update Open Weather data for One Call Api - ocah.updateData() - - # 3. Work on processed data - print("One Call Api configuration: \n", ocah.config() ) - - print("One Call Api configured latitude value : ", ocah.lat() ) - print("One Call Api configured longitude value: ", ocah.lon() ) - print("One Call Api configured API Key value : ", ocah.key() ) - print("One Call Api configured excluded value : ", ocah.exc() ) - - print("One Call Api response raw data full: \n", ocah.raw_data() ) - print("One Call Api response raw data current\n", ocah.raw_data_minutely() ) - - print("One Call Api response, timezone : ", ocah.timezone() ) - print("One Call Api response, timezone_offset: ", ocah.timezone_offset() ) - print("One Call Api data timestamp : ", ocah.timestamp() ) - - print("One Call Api response, current time : ", ocah.data_time() ) - print("One Call Api response, temperature : ", ocah.temp() ) - print("One Call Api response, temperature feel : ", ocah.feels_like() ) - print("One Call Api response, pressure : ", ocah.pressure() ) - print("One Call Api response, humidity : ", ocah.humidity() ) - print("One Call Api response, dew point : ", ocah.dew_point() ) - print("One Call Api response, wind speed : ", ocah.wind_speed() ) - print("One Call Api response, wind gust : ", ocah.wind_gust() ) - print("One Call Api response, wind degrees : ", ocah.wind_deg() ) - print("One Call Api response, clouds : ", ocah.clouds() ) - print("One Call Api response, precipitation : ", ocah.pop() ) - print("One Call Api response, uvi : ", ocah.uvi() ) - print("One Call Api response, weather condition id : ", ocah.weather_condition_id() ) - print("One Call Api response, weather condition main : ", ocah.weather_condition_main() ) - print("One Call Api response, weather condition description: ", ocah.weather_condition_description() ) - print("One Call Api response, weather condition icon : ", ocah.weather_condition_icon() ) -``` diff --git a/pocar.wiki/Process-One-Call-Api-response-for-Minutely-data.md b/pocar.wiki/Process-One-Call-Api-response-for-Minutely-data.md deleted file mode 100644 index 5da8dc9..0000000 --- a/pocar.wiki/Process-One-Call-Api-response-for-Minutely-data.md +++ /dev/null @@ -1,38 +0,0 @@ -# Process One Call Api response for Minutely data - -This functionality allows to process One Call Api response for Minutely data. -The Minutely data holds the precipitation forecast for the next 60 minutes in a minute basis (available data is: current minute precipitation forecast, plus for next 60 minutes) - -```python -from pocar.OneCallApiMinutely import OneCallApiMinutely - -# CONSTANT DATA -LAT = 45.1234 -LON = 1.2345 -KEY = "abcdef1234567890abcdef1234567890" - -def func_minutely() - # 1. Create OneCallApi Minutely object - ocam = OneCallApiMinutely(LAT, LON, KEY) - - # 2. Update Open Weather data for One Call Api - ocam.updateData() - - # 3. Work on processed data - print("One Call Api configuration: \n", ocam.config() ) - - print("One Call Api configured latitude value : ", ocam.lat() ) - print("One Call Api configured longitude value: ", ocam.lon() ) - print("One Call Api configured API Key value : ", ocam.key() ) - print("One Call Api configured excluded value : ", ocam.exc() ) - - print("One Call Api response raw data full: \n", ocam.raw_data() ) - print("One Call Api response raw data current\n", ocam.raw_data_minutely() ) - - print("One Call Api response, timezone : ", ocam.timezone() ) - print("One Call Api response, timezone_offset: ", ocam.timezone_offset() ) - print("One Call Api data timestamp : ", ocam.timestamp() ) - - print("One Call Api response, current time : ", ocam.data_time() ) - print("One Call Api response, precipitation: ", ocam.precipitation() ) -```