Company
Date Published
Author
Sam Agnew
Word count
738
Language
English
Hacker News points
None

Summary

A project was built to create an app that texts a phone number and receives pictures from Mars using Python, Flask, NASA APIs, and Twilio MMS. The environment was set up with virtual environments for isolating dependencies, and the necessary libraries were installed, including Flask, requests, and Twilio's Python library. A module was created to interact with the Mars Rover API, which returns a JSON response that is parsed to acquire an image URL from Mars. A Twilio account was set up, and a phone number was configured to receive messages, with ngrok used to make the Flask app visible from the Internet. The Flask app was built to handle incoming text messages, sending responses back to the sender with the received picture from Mars.