A simple weather dashboard built on Phoenix.
- Looping weather info in a carousel, including current weather, NWS radar, hourly forecast, daily forecast.
- Rotating background images.
- Optional background audio.
- Elixir 1.12 (or greater)
- Postgres 11 (or greater)
- OpenWeatherMap API keys
- Clone project:
git clone [email protected]:murjax/weather_loop.git - Navigate into folder
cd weather_loop - Add
.envwith variableWEATHER_API_KEYset to your OpenWeatherMap API key. - Install dependencies:
mix deps.get - Setup database
mix ecto.setup - Start the server with
mix phx.server - Create a folder named
mediain the root directory. This contains file uploads. - Navigate to http://localhost:4000.
- Register a new user.
- Click "Add a city" to add a new city.
- Fill in the city details. Set the radar url to a variant of https://radar.weather.gov. You can zoom in and configure the radar, then copy the link into this field.
- Add background image and optional audio file to run on your city page.
- Save the city.
- Click on your city.
- Your dashboard is now running!
Each user account comes with a UUID API token. To view, visit /users/settings.
/api/cities- Shows list of cities with basic information./api/cities/:id- Shows city info, current weather, hourly forecasts, and day forecasts.
Data is sourced from OpenWeatherMap and sunrisesunset.io.