Skip to content

koandeaire/airelibre-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AireLibre Bot

A bot to tweet data from the AireLibre Paraguay effort

Credentials

You need to get credentials from a Twitter developer account in order to run this project.

For local development set this values into a .env file, use go/.env.samble as an example.

Local development/run

Go to the go folder, then do

$ go run main.go

Make sure you have valid credentials in the .env file, otherwise you need to set this environment variables before runnig

ACCESS_TOKEN
ACCESS_TOKEN_SECRET
CONSUMER_KEY
CONSUMER_SECRET
API_URL

Build Docker image

Change padiazg for your docker hub username, or for whatever suits your needs

$ docker build -t padiazg/airelibre-bot:0.1.0 .

Run the container

$ docker run --rm \
    --name airelibre-bot \
    -e ACCESS_TOKEN= \
    -e ACCESS_TOKEN_SECRET= \
    -e CONSUMER_KEY= \
    -e CONSUMER_SECRET= \
    -e API_URL=https://rald-dev.greenbeep.com/api/v1/aqi \
    padiazg/airelibre-bot:0.1.0

About

A Twitter bot to publish real time AQI data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published