Difference between revisions of "General weather interface/v2.5"

From Caiyun Wiki
Jump to: navigation, search
(Scenarios of planning software)
(API call examples)
Line 30: Line 30:
 
* Assume a drone control system need the current realtime weather data, but the data should be in SI unit system for convenience of control calculation.
 
* Assume a drone control system need the current realtime weather data, but the data should be in SI unit system for convenience of control calculation.
 
** <code>https://api.caiyunapp.com/v2.5/S45Fnpxcwyq0QT4b/-157.8583,21.3069/weather.json?lang=en_US&unit=SI&granu=realtime</code>
 
** <code>https://api.caiyunapp.com/v2.5/S45Fnpxcwyq0QT4b/-157.8583,21.3069/weather.json?lang=en_US&unit=SI&granu=realtime</code>
 +
 +
=== Scenarios of webapps ===
 +
 +
* with jsonp callback <code>check_weather</code>
 +
** <code>https://api.caiyunapp.com/v2.5/S45Fnpxcwyq0QT4b/-157.8583,21.3069/weather.jsonp?lang=en_US&callback=check_weather</code>
  
 
== Parameters ==
 
== Parameters ==

Revision as of 07:44, 3 April 2020

Version of this article: v2.5,current stable version: v2.5,historical veriosns: v2.4

Authentication

After signing up at the dahsboard, you will get your access token. In below sections, we will use a temporary token for demo purpose: S45Fnpxcwyq0QT4b. In production or development, you should use your own.

API call examples

Scenarios of weather apps

Scenarios of planning software

Scenarios of scientific instrument

Scenarios of Real-time cases

Scenarios of webapps

Parameters

Return values

Errors

Other links