Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 &)
```