Giter Site home page Giter Site logo

simonprickett / iss-tracker Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 268 KB

ISS Tracker Project for small device front ends e.g. Pimoroni Badger 2040W, Pimoroni GFX Pack, others...

License: MIT License

JavaScript 8.09% Python 55.16% HTML 36.75%
google-cloud-functions google-geocoding-api iss micropython nodejs space-station badger2040w

iss-tracker's Introduction

ISS Tracker

TODO introduction and architecture.

Here it is running on the Badger 2040w device...

Project running on a Badger 2040w device

I did a live stream about this project: Watch it here and don't forget to subscribe and get notified whenever I'm live. Thanks!

Back End Cloud Function

TODO

Deploying to Google Cloud

TODO commentary on how this works...

cd cloud-functions/iss-locator
gcloud functions deploy isslocator --gen2 --runtime=nodejs18 --source=. --entry-point=isslocator --trigger-http --region=europe-west2 --set-env-vars GEONAMES_USER=your_geonames_account,GEOCODER_API_KEY=your_google_api_key,CLIENT_PASSPHRASES="valid_passphrase_1|valid_passphrase_2|valid_passphrase_n"

Front End for Pimoroni Badger 2040w

TODO

Copying Files to the Device

First, delete all existing files from your Badger 2040w. Then copy all of the following to the root of the Badger 2040w's filesystem:

  • phew (folder plus all files contained in it)
  • templates (folder plus all files contained in it)
  • config.py
  • iss.jpg
  • main.py
  • worldmap.jpg

Configuration

Edit the copy of config.py that is on your device. Change the following lines:

ISS_SERVICE_URL="YOUR CLOUD FUNCTION URL HERE"

Replace the placeholder text with the full URL to your Google Cloud function, for example https://europe-west2-someorg.cloudfunctions.net/isslocator/.

ISS_SERVICE_PASSPHRASE="YOUR CLOUD FUNCTION ACCESS TOKEN HERE"

Replace the placeholder text with one of the client passphrase values you configured when deploying your Google Cloud function.

Give your device a unique ID so that it can be identified more easily in Google Cloud when it calls the Cloud Function to get the ISS position. Replace this with your choice of device ID (e.g. mydevice or 1234).

DEVICE_ID="YOUR DEVICE ID HERE"

Setup Process

Reset the Badger 2040w to start the setup process. It should start up and expose a WiFi access point whose SSID is "ISSTracker".

Connect to this with your phone and follow the setup process in the web portal that pops up. You'll need to provide your WiFi SSID and password as well as your location's latitude and longitude values.

Save the changes in the form using the "Save Settings" button. The device should reboot and attempt to connect to your network. If successful, it should start to track the International Space Station.

If the device can't connect to your WiFi network or you provided incorrect details, it will display an error message. Press both the A and C buttons together to reset it and try again.

Reset Process

If you need to change the WiFi details (because you've take the device somewhere else for example) or you want to change your location, press both the A and C buttons while on the map screen to reset the device.

Limitations

This project only works on WiFi networks with SSID and password. It is unlikely to work on public WiFi networks that use captive portals for signup or accepting terms and conditions.

iss-tracker's People

Contributors

simonprickett avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iss-tracker's Issues

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.