Hi there, I'm trying to figure out how can I use Nasa's Insight API to show Mars' weather and other information, is there any way to add it?
I need it urgently. Thank you
Hi there, I'm trying to figure out how can I use Nasa's Insight API to show Mars' weather and other information, is there any way to add it?
I need it urgently. Thank you
How about providing some links to the api documentation / other useful information?
In case it is a RESTful API, use the web component to get information from the API...
Taifun
Okay - Here
API Code :https://api.nasa.gov/insight_weather/?api_key=DEMO_KEY&feedtype=json&ver=1.0
API Docs from Nasa : https://api.nasa.gov/assets/insight/InSight%20Weather%20API%20Documentation.pdf
OK, the url is returning a json with all the data fior a Sol (Martian day). Note the limits on the number of hourly requests from the same IP address. Follow the instructions on their web page to construct your url.
I suggest you use dictionary blocks to manipulate the returned data for your needs
An example is here:
Thank You
Thank You, Will sure use it.
Hello, I was trying to figure out how to use Insight's API?
Is there any way It can be possible,
I've tried to use dictionary blocks, but It wasn't working
Thank you
Please download and post each of those event block(s)/procedures here ...
P.S. These blocks can be dragged directly into your Blocks Editor workspace.
See Download Block Images for a demo.
Sorry for the rate reply.
I've attached the code below
I've also declared dictionary as an empty list
Please capture your responseContent as text and paste the text to this thread to allow us to compare the JSON text against your parse attempts.