Weather Data

weather
Extension Description
Get the weather data of any place on the earth with open weather API.

Introduction

The Weather Data extension allows users to get the weather data of the majority of locations on the earth using the latitude or longitude of the location.

It uses Open Weather Map API to fetch the data. Thus it requires an active internet to perform the result.

The following data is available for the user:

  1. Weather: Group of weather parameters (Rain, Snow, Extreme, etc.)
  2. Temperature:
    1. Current in Celcius
    2. Max in Celcius: Maximum temperature at the moment. This is the maximal currently observed temperature (within large megalopolises and urban areas).
    3. Min in Celcius: Minimum temperature at the moment. This is the minimal currently observed temperature (within large megalopolises and urban areas).
    4. Current in Fahrenheit
    5. Max in Fahrenheit
    6. Min in Fahrenheit
  3. Pressure: Atmospheric pressure (on the sea level, if there is no sea_level or grnd_level data), hPa
  4. Humidity: %
  5. Wind Speed: Wind speed. Unit Default: meter/sec
  6. Wind Direction: Wind direction, degrees (meteorological)
  7. Latitude: City geolocation, latitude
  8. Longitude: City geolocation, longitude
  9. Time
    1. Data Capture:
    2. Sunrise
    3. Sunset
  10. City
Read More

PictoBlox Blocks

The block runs an API call to get the weather data of the location specified with the Longitude and Latitude. The API call can be done only 2 times per minute. If the user wants to have the data more frequently, they have to add the custom API using set Weather API to () block.
The function returns the temperature, minimum, and maximum temperature of the location.
The function returns the atmospheric pressure (on the sea level, if there is no sea_level or grnd_level data), in hPa of the location.
The function returns the humidity in % of the location.
The block returns the wind speed (Unit Default: meter/sec) or the wind direction (in degrees – meteorological) of the location.
The function returns the latitude or the longitude coordinates of the location.
The function returns the time data of the location when data capture, sunrise, or sunset happens.
The function returns the weather parameters (Rain, Snow, Extreme, etc.) of the location.
The function returns the city name of the location.
The function set the API keys for the Open Weather Map API calls.
(Available only for evive). The block connects the ESP8266 module to the specified WiFi and password.
All articles loaded
No more articles to load

Python Functions

The function runs an API call to get the weather data of the location specified with the Longitude and Latitude.
Syntax: getweather(latitude = 23.02, longitude = 72.57)
The function returns the weather parameters (Rain, Snow, Extreme, etc.) of the location.
Syntax: weather()
The function returns the temperature, minumun, and maximum temperature of the location.
Syntax: temp(temp_type = “C”)
The function returns the atmospheric pressure (on the sea level, if there is no sea_level or grnd_level data), in hPa of the location.
Syntax: pressure()
The function returns the humidity in % of the location.
Syntax: humidity()
The function returns the wind speed (Unit Default: meter/sec) of the location.
Syntax: windspeed()
The function returns the wind direction (in degrees – meteorological) of the location.
Syntax: winddirection()
The function returns the latitude of the location.
Syntax: latitude()
The function returns the longitude of the location.
Syntax: longitude()
The function returns the time data of the location when data capture, sunrise, or sunset happens.
Syntax: time(capture_time = “sunrise”)
The function returns the city name of the location.
Syntax: city()
The function set the API keys for the Open Weather Map API calls.
Syntax: setAPI(openweathermap_API)
All articles loaded
No more articles to load
Table of Contents