Api session items weathers: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 44: | Line 44: | ||
ZIPSMILE: | ZIPSMILE: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/weathers/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/weathers/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | ||
==Api Model Weather== | |||
API Model description of Weather | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
|attributes | |||
|Map<String,double[]> | |||
| | |||
|- | |||
|durationInSecs | |||
|double | |||
| | |||
|- | |||
|effect | |||
|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 | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
|NO_EFFECT | |||
| | |||
|- | |||
|RAIN | |||
| | |||
|- | |||
|SNOW | |||
| | |||
|- | |||
|WIND | |||
| | |||
|- | |||
|DROUGHT | |||
| | |||
|- | |||
|FLOODING | |||
| | |||
|} | |||
{{article end|seealso=*[[Api Content Items]] | {{article end|seealso=*[[Api Content Items]] | ||
*[[Api session event editor weather]] | *[[Api session event editor weather]] | ||
| Line 49: | Line 124: | ||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 14:15, 24 April 2026
Api session items Weather Endpoints.
Edit items with event: editorweather.
Default Query:
https://engine.tygron.com/api/session/items/weathers/?f=JSON&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
} ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/weathers/?version=100&token=API_TOKENShow Queries
max version:
https://engine.tygron.com/api/session/items/weathers/version/?token=API_TOKENsize:
https://engine.tygron.com/api/session/items/weathers/size/?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 | |
| 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 |