I have to admit, this idea is not original. LeRoy Miller (kd8bxp) has a version which does the same written in PHP.
The version I wrote uses Python and can be ran on almost any system. I wrote it for Python 2.7 and it is running on Ubuntu 16.04. I did test it on Windows 10 with Python 2.7 and it works in that environment as well. I have an idea to take a Raspberry Pi and install Direwolf to receive APRS packets and run my program on the Raspberry Pi as well.
To see this in action, visit my Twitter account to see the Tweets sent by the program.
Regardless of your system, always make sure it is up to date with at least the latest security patches.
This is my setup for Ubuntu 16.04
Update your system:
sudo apt-get update && sudo apt-get -y upgrade
Install Python 2.7
sudo apt-get install python2.7
sudo apt-get install python-pip
pip install tweepy
pip install TinyUrl
pip install regex
Now it’s time to obtain some API and Oauth keys
Sign up for an APRS.fi account
Find your APRS.fi API Key
Sign up for a free Open Cage Data account
Find your Open Cage Data API key
Sign into your Twitter account and Apply for a developer account
Fill out the App details thoroughly
Application Description: Personal application to Tweet my position periodically
Website URL: use yours if you have one, or put http://projects.mytestbox.org
Tell us how this app will be used: Fill this in how you are going to use this app.
Once you have submitted the application, keep an eye out for emails from Twitter asking for additional details.
When your app is approved, log back into the Twitter developer site, view your app, and click the Keys and Tokens tab
Get your Swarm/Foursquare Oauth token by visiting my site
Once you have received all your keys and tokens, run setup.py and fill in all the details
Next test the program by running aprs.py, if successful you should see something similar to the following:
New position received - Updating Speed less than or equal to 9mph - performing Foursquare checkin Checking in at new venue Posting to Twitter
Now create a cron job to run aprs.py
sudo crontab -e
Adding this line will run it once every 15 minutes
0,15,30,45 * * * * bash /home/yourhome/aprs.sh
For Microsoft Windows, there are a couple of additional changes which need to be made after Python 2.7 is installed.
Start > search for "View Advanced System Settings" > Click on View Advanced System Settings Click on Environment Variables > System Variables > Path Click Add, enter C:\Python27\ Click Add, enter C:\Python27\Scripts Ok > Ok > Ok, then reboot
Now install the Python libraries by issuing the following from the Windows Command prompt
pip install requests pip install tweepy pip install tinyurl pip install regex
After this, it should work just the same as on Linux.
This is still beta, so if you encounter any bugs please let me know.