- Make sure the board is connected to an active network.
This guide assumes that Debian OS is running on a Dragonboard410c on all 4 nodes. How ever the instructions hold true for other 96Boards CE Boards running Debian.
This project is compatible with other Linux based OS, but they might have to be tweaked accordingly.
$ sudo apt install python3-setuptools python3-dev python3-pip
$ sudo pip3 install wheel tweepy weather-api datetime pytz pygithub
-
GitHub
- Create a developer account at: https://developer.github.com/
- Create an App: https://developer.github.com/apps/building-your-first-github-app/
- Replace in
bot.py
with your GitHub access token.
-
Twitter
- Create a developer account at: https://developer.twitter.com/en/apply/user
- Get access token: https://developer.twitter.com/en/docs/basics/authentication/guides/access-tokens.html
- Replace <consumer_key> in
bot.py
with your Twitter Consumer Key. - Replace <consumer_secret> in
bot.py
with your Twitter Consumer Secret Key. - Replace <access_token> in
bot.py
with your Twitter access token. - Replace <access_token_secret> in
bot.py
with your Twitter access token secret key.
Test Run
You can run it simply as
$ python3 bot.py
Deploy
From Shell
$ python3 bot.py &
Very basic logs from the python script are pushed to Journal. These can be accessed by:
$ journalctl -xel