Can not input the openweather API key in the node

Hi, I am working on a project that using openweather node to display the weather. I have got a problem which is there is no space to input the API key so I can't display the weather in the dashboard. I have re-downloaded it in the manage palette. Any help would be appreciated!!!!

If I remember correctly, the OpenWeatherMap node does not let you access the new One Call API

But you can access it via the Http Get node rather than the OWM node:

[{"id":"d96421bffad7386e","type":"function","z":"42d32d32e724eefd","name":"function 5","func":"const apikey = global.get('openweathermapid');  \nconst lat = 51.225875\nconst long = -0.483098\n\nmsg.url=\"\" + lat + \"&lon=\" + long + \"&exclude=minutely&units=metric&appid=\" + apikey;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":300,"y":140,"wires":[["f390b222d47dab6c"]]},{"id":"f2f27fdec77fb078","type":"inject","z":"42d32d32e724eefd","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":140,"wires":[["d96421bffad7386e"]]},{"id":"f390b222d47dab6c","type":"http request","z":"42d32d32e724eefd","name":"Openweathermap","method":"GET","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":490,"y":140,"wires":[["d9a2143203a11227"]]},{"id":"d9a2143203a11227","type":"debug","z":"42d32d32e724eefd","name":"debug 316","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":690,"y":140,"wires":[]}]
1 Like

Strange, works for me.
Also the City, Country etc. textboxes are looking not correct and there's missing more text.

Maybe you can tell us what version Nodered, dashboard, Npm and Node you are using on what device and with what OS.

Have a look in your browser's console. Any errors?

Try a different browser (like chrome or Firefox)

Lastly, if that is no good, it may be another node messing up some prototypes or competing css or overlapping element IDs

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.