https://github.com/kiote/simple_weather
Weather data for IoT devices
https://github.com/kiote/simple_weather
Last synced: 4 months ago
JSON representation
Weather data for IoT devices
- Host: GitHub
- URL: https://github.com/kiote/simple_weather
- Owner: kiote
- Created: 2020-03-05T15:25:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T03:02:34.000Z (over 2 years ago)
- Last Synced: 2025-01-21T03:27:20.470Z (6 months ago)
- Language: Elixir
- Homepage:
- Size: 165 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimpleWeather
[](https://codecov.io/gh/kiote/simple_weather)
Goes to weather provider and gets weather data for today.
Suppose to provide data to IoT device with answers "is it safe to go bike riding today" question.# Result
Open [`localhost:4000/api`](http:localhost:4000/api)
# Running
To start your Phoenix server:
* Install dependencies with `mix deps.get`
* Start Phoenix endpoint with `mix phx.server`Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).
# Darkskyx
`export DARKSKY_API_KEY=`
# Build a new version
API KEY needs to be exported before building a release
```
MIX_ENV=prod mix release prod
_build/prod/rel/prod/bin/prod start
# or
(exec _build/prod/rel/prod/bin/prod start &> /tmp/logs &)
```