Red Pebble, a Google Assistant & Google Home bot, that tells you everything about the weather on Mars!
Red Pebble uses data from NASA & Centro de Astrobiologia (CSIC-INTA) using the amazing {MAAS} API
The weather & atmospheric data is being transmitted by NASA's Curiosity Rover on Mars.
We then cache this atmospheric weather information daily using Google Cloud Functions on our own servers to make sure that our assistant doesn't make tons of requests to the kind providers of the API listed above.
Our cached version of the API can be found here :
http://pebble.red/latest.json
And, you're more than welcome to use our mirror for your projects. In case if you're wondering how up to date our information is, occasionally the information can be sporadic / a few days behind. Having a steady information flow from mars is tough business, and we can only mirror what we have access to from our sources.
Red Pebble is built using API.AI, Google Cloud Functions and Firebase.
Red Pebble has two types of answers.
-
Informative interactions that doesn't require the use of the weather API. These are questions like : "Are there any clouds on Mars?" or "Does it rain on Mars?" etc. These types of questions, that doesn't require any up-to date weather information are handled by api.ai.
-
Interactions that require the use of the weather API. These are questions like : "What's the temperature on Mars?" or "What's the season on Mars?" etc. These types of questions are first received by api.ai, which in return makes a call to our cloud functions server that fetches the latest info from our cached latest.json file and finally return the answer to the user.
We decided to use Google Cloud Functions for this project, and we believe that it's a great way to create assistants / chat bots without worrying about handling large loads, scaling or traffic.
The Cloud Function also logs anonymous user IDs to change the way it responds to save them time and frustration. This part is handled by Firebase. We intend to use this information to also improve the quality of Red Pebble's answers and conversational structure.
One day Shelby Hutchison, Senem Cinar and I were having breakfast and we thought wouldn't it be hilarious and awesome to have a home assistant that tells the weather on Mars. Then for 7 days after work, we all went home, didn't sleep, designed and coded an assistant that does just that.
Don't be shy, file an issue, feature or bug report. And don't forget to fork it, share it or star it.
Centro de Astrobiologia (CSIC-INTA)
And everyone from the Google Home Hackathon NYC 2017 for helping and supporting us.