Skip to content

realganu/TempCast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TempCast — setup

This small Node/Express project uses the OpenWeatherMap API. If you see an error "Invalid OpenWeather API key. Check your OPENWEATHER_KEY in .env", follow these steps:

  1. Get an API key

  2. Add the key to your project

    • Copy .env.example to .env in the project root.
    • Replace your_openweather_api_key_here with the key you copied.
  3. Restart the server

    • If you're running with node server.js, stop and start it again.
    • Example (PowerShell):
node server.js
  1. Verify
    • Visit http://localhost:3000 and use the UI to request weather.
    • If the key is still invalid, ensure there are no surrounding quotes/spaces in .env and that your account's key is active.

If you'd like, I can also add runtime checks that print the actual key (masked) or validate it with a test request on startup. Let me know which option you prefer.

About

TempCast This small Node/Express project uses the OpenWeatherMap API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published