Skip to content

chanwutk/pokemon-go-forecast-worker

Repository files navigation

Pokemon Go Forecast Worker

Collect weather data from AccuWeather for Pokemon Go in Bangkok area.

Please visite the demo site.

Setup

Clone this repository and data repository

git clone git@github.com:chanwutk/pokemon-go-forecast-worker.git
git clone git@github.com:chanwutk/pokemon-go-forecast-data.git

Build

cd pokemon-go-forecast-worker
npm install
npm run build

Start

npm run start

Autostart on raspberry pi

mkdir /home/pi/.config/autostart
vim /home/pi/.config/autostart/pokemongo.desktop

Then, paste this code into pokemongo.desktop

[Desktop Entry]
Type=Application
Name=PokemonGo
Exec=xterm -hold -e 'source .bashrc && node /home/pi/pokemon-go-forecast-worker/dist/app.js'

reference: https://learn.sparkfun.com/tutorials/how-to-run-a-raspberry-pi-program-on-startup/all

Releases

No releases published

Packages

No packages published