Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Weather variables #140

Open
VicoHBB opened this issue Sep 15, 2022 · 10 comments
Open

[Question] Weather variables #140

VicoHBB opened this issue Sep 15, 2022 · 10 comments
Labels
question Further information is requested

Comments

@VicoHBB
Copy link

VicoHBB commented Sep 15, 2022

Hi everyone,I noticed that the weather widget is not working correctly, searching in the files I found that in the user_variables.lua file these variables are blank, (I put the code snippet below) could someone guide me on which API to use and how to put the coordinates?

return {
	widget = {
		weather = {
			--- API Key
			key = "",
			--- Coordinates
			coordinates = {
				"", --- lat
				"", --- lon
			},
		},

		--- Github activity
		github = {
			username = "VicoHBB",
		},
	},
}
@VicoHBB VicoHBB added the question Further information is requested label Sep 15, 2022
@VicoHBB VicoHBB changed the title [Question] [Question] Weather variables Sep 16, 2022
@dmguezjaviersnet
Copy link

dmguezjaviersnet commented Sep 16, 2022

@VicoHBB you need to create an acccount at https://openweathermap.org/api, copy your API Key and paste it into the key variable, then look up for your coordinates using google or the GPS of your phone and put those in the 2 pairs of double quotes as indicated, the top one being latitude and the bottom one longitude.

@VicoHBB
Copy link
Author

VicoHBB commented Sep 19, 2022

Is there any other step? I have registered and entered my data, but it still doesn't work properly :(

@dmguezjaviersnet
Copy link

dmguezjaviersnet commented Sep 20, 2022

@VicoHBB iirc that's all i did, sorry m8.

@mrmattias
Copy link

mrmattias commented Sep 25, 2022

I can´t get the weather widget to work correctly.
This is my user settings

return {
	widget = {
		weather = {
			--- API Key
			key = "3565a3982c9a954a87ea9c61793ca206",
			--- Coordinates
			coordinates = {
				"56.663445", --- lat
				"16.356779", --- lon
			},
		},

		--- Github activity
		github = {
			username = "mrmattias",
		},
	},
}

@VicoHBB
Copy link
Author

VicoHBB commented Sep 26, 2022

@dmguezjaviersnet Do you create other API key or just use the key by default?

@mrmattias
Copy link

mrmattias commented Sep 26, 2022 via email

@dmguezjaviersnet
Copy link

@VicoHBB default key

@VicoHBB
Copy link
Author

VicoHBB commented Sep 26, 2022

@dmguezjaviersnet Did you install something else or just put the variables?

@dmguezjaviersnet
Copy link

Iirc all i did was to plug in the value for the variables @VicoHBB, sorrry :(

@jasper-at-windswept
Copy link

For anyone coming to see this in the future the weather widget will no longer work as it calls OneCall 2.5 which has since been upgraded to OneCall 3.0.
When you create an account you now need to subscribe to their plan which doesn't cost anything as long as you make sure your script doesn't call it more than 1000 times per day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants