Skip to content

ChennaiAstronomyClub/mercury

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mercury

Check for ISS passes and post to your Facebook page.

Mercury is named after the Roman god of messages/communication.

Have you ever forgotten to ping your club members when there is an ISS pass over your city? Mercury will help you from now on.

Requirements

  1. facebook-sdk
  2. feedparser
  3. fly
  4. Access to a server that allows cron jobs.

Usage

  1. Modify the feed source to your city. You can find it at this website. Click on Location lookup, enter the details and click on the RSS button to get the feed.
  2. Set up a cron job to run this script periodically. Once in a day would be a good choice. Do this in the terminal:
    1. crontab -e
    2. 0 10 * * * python mercury/mercury/chennai.py -> this runs the script at 10 AM everyday(change the city as per your needs).
  3. You need to specify an access token to post to the page. To do so,
    1. Create a file named access_token in the mercury directory. Do not give it a file extension.
    2. Create a new app on Facebook and generate a long lived access token. Refer this
    3. Enter the access token obtained in the file that you created in step 3.1

License

MIT © Chennai Astronomy Club

About

A bot to post ISS pass details to the CAC FB page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages