Collect weather data from AccuWeather for Pokemon Go in Bangkok area.
Please visite the demo site.
git clone git@github.com:chanwutk/pokemon-go-forecast-worker.git
git clone git@github.com:chanwutk/pokemon-go-forecast-data.git
cd pokemon-go-forecast-worker
npm install
npm run build
npm run start
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