Api session items weathers: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 20: | Line 20: | ||
"triggerSec" : -1.0, | "triggerSec" : -1.0, | ||
"version" : 1 | "version" : 1 | ||
}, { | |||
"attributes" : { | |||
"EVAPORATION_M" : [ 7200.0, 1.25E-4 ], | |||
"RAIN_M" : [ 3600.0, 0.03, 7200.0, 0.0 ] | |||
}, | |||
"durationInSecs" : 10.0, | |||
"effect" : "RAIN", | |||
"floodOverlayID" : -1, | |||
"floodingM" : 5.0, | |||
"id" : 1, | |||
"maquetteOverride" : null, | |||
"name" : "Rain (2)", | |||
"triggerSec" : -1.0, | |||
"version" : 2 | |||
} ]</syntaxhighlight> | } ]</syntaxhighlight> | ||
==Limit Queries== | ==Limit Queries== | ||
| Line 31: | Line 45: | ||
Count: | Count: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/weathers/count/?token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/weathers/count/?token=API_TOKEN</syntaxhighlight> | ||
Specific Item: | Specific Item by ID: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/weathers/{ | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/weathers/{id}/?token=API_TOKEN</syntaxhighlight> | ||
==Formats== | ==Formats== | ||
HTML: | HTML: | ||
Latest revision as of 15:25, 30 September 2026
API Endpoint: /api/session/items/weathers/
Edit items with events described at Api session event editor weather.
Default Query:
https://engine.tygron.com/api/session/items/weathers/?token=API_TOKENExample Response:
[ {
"attributes" : {
"EVAPORATION_M" : [ 7200.0, 1.25E-4 ],
"RAIN_M" : [ 3600.0, 0.03, 7200.0, 0.0 ]
},
"durationInSecs" : 10.0,
"effect" : "RAIN",
"floodOverlayID" : -1,
"floodingM" : 5.0,
"id" : 0,
"maquetteOverride" : null,
"name" : "Rain",
"triggerSec" : -1.0,
"version" : 1
}, {
"attributes" : {
"EVAPORATION_M" : [ 7200.0, 1.25E-4 ],
"RAIN_M" : [ 3600.0, 0.03, 7200.0, 0.0 ]
},
"durationInSecs" : 10.0,
"effect" : "RAIN",
"floodOverlayID" : -1,
"floodingM" : 5.0,
"id" : 1,
"maquetteOverride" : null,
"name" : "Rain (2)",
"triggerSec" : -1.0,
"version" : 2
} ]Limit Queries
Version=100:
https://engine.tygron.com/api/session/items/weathers/?version=100&token=API_TOKENGet Queries
Attributes:
https://engine.tygron.com/api/session/items/weathers/attributes/?token=API_TOKENMax version:
https://engine.tygron.com/api/session/items/weathers/version/?token=API_TOKENCount:
https://engine.tygron.com/api/session/items/weathers/count/?token=API_TOKENSpecific Item by ID:
https://engine.tygron.com/api/session/items/weathers/{id}/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/weathers/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/weathers/?f=JSON&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/weathers/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/weathers/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/weathers/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/weathers/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/weathers/?f=ZIPSMILE&token=API_TOKENApi Model Weather
API Model description of Weather
| Name | Type | Description |
|---|---|---|
| attributes | Map<String,double[]> | |
| durationInSecs | double | |
| effect | WeatherTypeEffect | WeatherTypeEffect |
| floodingM | double | |
| floodOverlayID | int | Overlay ID |
| id | int | |
| maquetteOverride | Map<String,double[]> | |
| name | String | |
| triggerSec | double | |
| version | int |
Api Model WeatherTypeEffect
API Enumeration description of WeatherTypeEffect
| Name | Description |
|---|---|
| NO_EFFECT | |
| RAIN | |
| SNOW | |
| WIND | |
| DROUGHT | |
| FLOODING |