Skip to content

Latest commit

 

History

History
82 lines (57 loc) · 3.18 KB

README.md

File metadata and controls

82 lines (57 loc) · 3.18 KB

Docker-bloomsky

Docker Pulls Codefresh build status License

A simple Go client for the BloomSky API.

  • It's possible to show informations in the console or in a embedded web server.
  • It's also possible to export datas to Time Series Database InfluxData.

1 Getting Started

Prerequisites

Execution without config.yaml

docker run -d  --name=bloomsky -e bloomskyAccessToken=ToBECompleted patrickalin/docker-bloomsky
  • Don't forget !!!! : You have to change the API Key

Execution with config.yaml

docker cp bloomsky:/config.yaml ./config.yaml

docker run -d  --name=bloomsky -v $(pwd)/config.yaml:/config.yaml patrickalin/docker-bloomsky

Execution from docker-compose

link to docker-compose.yaml

docker-compose up -d
  • Don't forget !!!! : You have to change the API

2 Result

Example : result in the webserver

By default : http://localhost:1111/

Bloosmky webserver

Example : result in the standard console

Bloomsky
--------
Timestamp :         2017-06-09 22:07:10 +0200 CEST
City :              Thuin
Device Id :         442C05954A59
Num Of Followers :  2
Index UV :          1
Night :             true
Wind Direction :    SW
Wind Gust :         4.16
Sustained Wind Speed : 2.17
Wind Gust :         6.6976
Sustained Wind Speed 3.4937
Rain :              false
Daily :             0.44
24h Rain :          0.44
Rain Rate :         0
Rain Daily :        0.44
24h Rain :          11.18
Rain Rate :         0
Temperature F :     59.13 °F
Temperature C :     15.07 °C
Humidity :          65
Pressure InHg :     29.38
Pressure HPa :      994.92

Example : result in a influxData

InfluxData Image

3 Github : link project