/AirMonitor-Feed

Data feed for https://air-monitor.pl

Primary LanguageRuby

AirMonitor-Feed

Data feed for AirMonitor project.

Instalation

Copy repository and install dependency gems with Bundler:

git clone https://github.com/mckomo/AirMonitor-Feed && cd AirMonitor-Feed && bundle install

Alternatively you can install upload_measurements globally:

ln -s bin/upload_measurements /usr/local/bin/upload_measurements

Lastly, create .env file in the project root with following contents:

AUTHENTICATION_TOKEN=past_here_your_access_token

Now, you are ready to go 👍.

Usage:

bin/upload_measurements [--from datetime] [--to datetime]

Examples

Uploads measurements from the previous hour:

upload_measurements

Uploads measurements between given a two sequential datetimes:

upload_measurements --from "2016-01-01 12:00" --to "2016-02-01 12:00"