Read the statement by Michael Teeuw here.
v2.29.0 weather module issue
-
Thank you for information
-
Hi,
i have same issue. I have signed up for the v3 api. Does anyone have a config for me to copy my api into?
my code:
{
module: “weather”,
position: “top_left”,
header: “Weather Forecast”,
config: {
weatherProvider: “openweathermap”,
type: “forecast”,
location: “Haverhill”,
locationID: “2647310”, //
apiKey: “LEFT BLANK”
} -
@dawookie1979 - Be sure to add apiVersion: ‘3.0’ to your config
-
@reilley Hello, where do i add it? can you help me edit my script?
Thanks
-
@dawookie1979 see the documentation. its a property in the config section of the weather module configuration
documentation is linked from the top menu here
-
-
@Andreas1956 tgat means you gave the old apikey, which will fail ‘soon’
-
@sdetweil Sam, do you know how many calls the default weather module makes per day?
Am I right: default is every 10 minutes, so 24x6 per day?
I have two Magic mirrors (1 for me and 1 for my daughter) using the same API.
I would like to use the API (3.0) for free, so use not more than 1000 calls per day.
Thanks for your answer in advance.
Peter -
@dawookie1979 - just add it somewhere in the config for your weather module. I added "apiVersion: “3.0"” just above the apiKey.
I’d help you write yours, but I’m struggling with mine as well so you might get better assistance from the gurus here!
-
@kent79 @dawookie1979
it’s all in the docs - but you need to read it carefully.in short: forecast needs
- lat/lon , locationID isn’t working for forecast
- weatherEndpoint: ‘/onecall’, must be set
This works for me;
{ disabled: false, module: "weather", position: "top_right", config: { // See 'Configuration options' for more information. weatherProvider: 'openweathermap', weatherEndpoint: '/onecall', apiKey: 'xxx', apiVersion: '3.0', lat: '49.8', lon: '8.49', type: 'forecast', colored: true, fade: false, maxNumberOfDays: 3, degreeLabel: 'true', showWindDirectionAsArrow: 'true', decimalSymbol: ',' } },