Projects that use Adafruit displays with WiFi often read local or remote data and display it on the screen. For this project, data from a 3rd party website that provides SpaceX data was used.
The SpaceX-API project is an Open Source REST API for rocket, core, capsule, pad, and launch data. They state "We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Space Exploration Technologies Inc (SpaceX), or any of its subsidiaries or its affiliates. The names SpaceX as well as related names, marks, emblems and images are registered trademarks of their respective owners."
The url https://api.spacexdata.com/v4/launches/next provides the data for the next launch in JSON format. The project is licensed under the Apache 2.0 License.
Details on what data is available can be found at https://github.com/r-spacex/SpaceX-API.
Three fields which were chosen to display in this project:
- name - the mission name
- data_local - the launch date locally when the launch will occur
- details - details about the launch (when available), a long text string
If other data is desired, the code only need to get the data in the desired fields.