Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiote/simple_weather
Weather data for IoT devices
https://github.com/kiote/simple_weather
Last synced: about 9 hours 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 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T03:02:34.000Z (almost 2 years ago)
- Last Synced: 2023-03-10T19:26:11.213Z (over 1 year ago)
- Language: Elixir
- Homepage:
- Size: 165 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimpleWeather
[![codecov](https://codecov.io/gh/kiote/simple_weather/branch/master/graph/badge.svg)](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 &)
```