Skip to content

TheOutdoorProgrammer/MAAS2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAAS2

Maas2 is a stateless api for MAAS. Its a simple reorganization of the data available officially by nasa here.

Hosted on Cloudflare Workers.

URLs

https://api.maas2.apollorion.com/ - The official MAAS2 endpoint.

Params

/ - Gets the latest from the API.
/$sol - Gets a specific sol.

Example

https://api.maas2.apollorion.com/ - Gets the latest sol.
https://api.maas2.apollorion.com/3322 - Gets sol 3322.

Some sol's have incomplete data, day 2 for example does not have data which will return a 404 http status. {"status": "sol not found"}

All responses return Content-Type: application/json.

Building

To build, just download the offical MAAS api json to this repo as maas2.json and run main.py.

  1. curl http://cab.inta-csic.es/rems//wp-content/plugins/marsweather-widget/api.php > maas2.json
  2. python main.py

Deployment

Deployment is automated via GitHub Actions on push to main. The worker is deployed using Wrangler.

Required secrets: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID.

About

Static API for caching/pulling mars weather data from NASA.

Topics

Resources

License

Stars

Watchers

Forks

Contributors