[Broken it no longer works. Use a weather api instead] Weather Mate ☁ [free]

Hello everyone, :wave:

Today I present my second extension called “ Weather Mate ” extension
As clearly stated in the name, this extension includes some useful blocks that can get weather related information !

Blocks image

GetWindSpeed

Takes the input from the user. In this block there are 1 parameters,

place image

component_method (1)


GetHumidityLevel

Takes the input from the user. In this block there are 1 parameters,

place image

component_method


GetPrecipitationLevel

Takes the input from the user. In this block there are 1 parameters,

place image

component_method (2)


GetLocalTime

Takes the input from the user. In this block there are 1 parameters,

place image

component_method (3)


GetSkyInformation

Takes the input from the user. In this block there are 1 parameters,

place image

component_method (4)


GetSunRiseTime

Takes the input from the user. In this block there are 1 parameters,

place image

component_method (5)


GetTemperatureInCelsius

Takes the input from the user. In this block there are 1 parameters,

place image

component_method (6)


GetTemperatureInFahrenheit

Takes the input from the user. In this block there are 1 parameters,

place image


GetTemperatureInKelvin

Takes the input from the user. In this block there are 1 parameters,

place image

component_method (8)


GotWindSpeed

This event is raised when the extension gets the wind speed

speed image

component_event


GotHumidityLevel

This event is raised when the extension gets the humidity level

humidity image

component_event (1)


GotPrecipitationLevel

This event is raised when the extension gets the Precipitation Level

precipitation image

component_event (2)


GotLocalTime

This event is raised when the extension gets the local time of that place. In this block there are 1 parameters,

time image

component_event (3)


GotSkyInformation

This event is raised when the extension gets the sky information. In this block there are 1 parameters,

information image

component_event (4)


GotSunriseTime

This event is raised when the extension gets the sunrise time. In this block there are 1 parameters,

time image

component_event (5)


GotTemperatureInCelsius

This event is raised when the extension gets the temperature in celsius. In this block there are 1 parameters,

temperature image

component_event (6)


GotTemperatureInFahrenheit

This event is raised when the extension gets the temperature in fahrenheit. In this block there are 1 parameters,

temperature image


GotTemperatureInKelvin

This event is raised when the extension gets the temperature in kelvin. In this block there are 1 parameters,

temperature image

component_event (8)


:moneybag: Price : $0 | Free for all :wink:

Download link :link:

Weather.aix (16.1 KB)

Built on Niotron IDE

https://ide.niotron.com/

Results of the Extension

image

Note it may take 5-6 seconds to get the information and it works on my self made api

Here’s a poll please rate it

  • Amazing!!
  • Good
  • Bad
  • Average
  • Need Improvements

0 voters

Also I have followed the naming conventions by @Taifun

Cheers

Yash Sehgal

10 Likes

just 1 doubt can't people use weather api using web component?

2 Likes

@Aarush_Kumar they can use web component but see most of the Api are paid and sometimes they might show inaccurate data My api scraps google weather data. And I didn't wanted to share the api directly so converted it into a extension :sweat_smile:

3 Likes

So good.

Can you post your source code so that others can learn from it?

2 Likes

Be precise what exactly you want to learn from this extension's source which can't be learn from web component's source.

5 Likes

I would like to know if he converted the temperatures after getting the data from the web since I don't really know how (I forgot it).

2 Likes

hey so its like I just converted the temperature to kelvin from Celsius ( using this formula
(x°C + 273.15 = x K)) , rest everything i am getting from google

1 Like

Got it, thanks!

3 Likes

which means, you extension is dependent on the Google Weather data as well as your API... so if your server is down the extension does not work anymore... and if Google changes its data your API might not work anymore...
anyone who likes to use your extension should be aware of this...

btw. there are the following free weather APIs, which could be used by the web component...

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

5 Likes

Ya it is

Most probably it will not

Like what ? I didn't got you

2 Likes

you are scraping the Google page to get the data because there does not exist an official Google API...
and Google can change its page at any time without advance warning...
which means in this case your api might fail in scraping the data...

Taifun

4 Likes

It it can happen but the chance is very low

2 Likes

Good Ext

Question... I have an option to use Celsius (Metric) on the Temp, but you don't give me an option to use km/h (Metric) on the Wind Speed?

Am I missing it? Should I do something different?

2 Likes

One way to use a weather api Parse a json list using the Web component.

3 Likes

@Yash_Sehgal22 The extension doesn't works any solutions?

1 Like

Huh...

Not possible, show your blocks

1 Like

@Yash_Sehgal22 Here are my blocks

1 Like

How do you define place if you have a place which exists in many countries, e.g. Birmingham (UK, Alabama:USA, Indiana:USA, Saskatchewan:Canada), and how do you confirm that the results returned are for that specific place?

2 Likes

hey hi , sorry for late response

so firstly there is not need to add the symbols as the extension returns the temperature with the symbol

and for this have you waited 5-6 seconds

2 Likes

I waited for 10-15 seconds still results didn't came.

1 Like