Giter VIP home page Giter VIP logo

sattracker's Introduction

A simple app to publish satellite data to MQTT. Uses the N2YO.com API to retrieve the next time a satellite will pass overhead.

This auto-detects your timezone to convert automatically since the API always returns the UTC time. MQTT data will be published every time this is run regardless of what may already exist in the broker. The suggestion is to run this as a CRON job ever 10-15 minutes or so since many LEO satellites orbit in about 90 minutes. This publishes the satellite name as returned from the API as well to MQTT.

If no results are returned from the API, then a message is published stating "Unknown NoradID or farther than x days in the future". The API limits the search to certain user-defined criteria; and sometimes no results are returned.

The user of this script will have to get their own API code by making an account at N2YO.com (this is free) and add it to the script.

https://www.n2yo.com/api/#radiopasses

MQTT Data will be published as per the following image.

MQTT Data

Created 9/4/2020 by James O'Gorman

This uses the following libraries / imports that you will require:

  • import requests # used for HTTP Get requests
  • from datetime import datetime
  • from dateutil import tz # used for converting timezones
  • import paho.mqtt.client as mqtt

sattracker's People

Contributors

aspork42 avatar

Stargazers

Peter Feerick avatar

Watchers

 avatar

Forkers

kezzkezzkezz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.