-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathswagger.yaml
2337 lines (2330 loc) · 67 KB
/
swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
swagger: '2.0'
info:
version: 1.1.5
title: Netatmo
description: |
<h3>Welcome to the Netatmo swagger on-line documentation !</h3>
This site is a complement to the official <a href="https://dev.netatmo.com/">Netatmo developper documentation</a> using swagger to bring interactivity and easy testing of requests with the "try it" button (authenticate with the authorization code OAuth2 flow by clicking the authenticate button in the methods). You can find the source code for this site can be found in the project <a href="https://github.com/cbornet/netatmo-swagger-ui">netatmo-swagger-ui</a>. You can also use the online <a href="./swagger.json">swagger declaration</a> file to generate code or static documentation (see <a href="https://github.com/cbornet/netatmo-swagger-api">netatmo-swagger-api</a>).
termsOfService: 'https://dev.netatmo.com/dev/resources/legal/introduction'
license:
name: 'Netatmo : Terms of Service'
url: 'https://dev.netatmo.com/dev/resources/legal/introduction'
contact:
name: Netatmo
email: [email protected]
externalDocs:
description: Netatmo reference API documentation
url: 'https://dev.netatmo.com/dev/resources/technical/reference'
host: api.netatmo.net
basePath: /api
schemes:
- https
consumes:
- text/plain
produces:
- application/json
tags:
- name: station
description: Weather station specific methods
- name: healthyhomecoach
description: Healthy Home Coach specific methods
- name: thermostat
description: Thermostat specific methods
- name: welcome
description: Welcome specific methods
- name: public
description: Public stations specific methods
- name: partner
description: Partner API specific methods
- name: deprecated
description: These methods are no longer maintained nor supported
paths:
/getpublicdata:
get:
tags:
- public
description: Retrieves publicly shared weather data from Outdoor Modules within a predefined area.
operationId: getpublicdata
parameters:
- name: lat_ne
in: query
description: Latitude of the north east corner of the requested area. -85 <= lat_ne <= 85 and lat_ne>lat_sw
required: true
type: integer
format: int32
- name: lon_ne
in: query
description: Longitude of the north east corner of the requested area. -180 <= lon_ne <= 180 and lon_ne>lon_sw
required: true
type: integer
format: int32
- name: lat_sw
in: query
description: Latitude of the south west corner of the requested area. -85 <= lat_sw <= 85
required: true
type: integer
format: int32
- name: lon_sw
in: query
description: Longitude of the south west corner of the requested area. -180 <= lon_sw <= 180
required: true
type: integer
format: int32
- name: required_data
in: query
description: To filter stations based on relevant measurements you want (e.g. rain will only return stations with rain gauges). Default is no filter. You can find all measurements available on the Thermostat page.
type: array
items:
type: string
enum:
- temperature
- humidity
- pressure
- wind
- rain
collectionFormat: csv
- name: filter
in: query
type: boolean
description: True to exclude stations with abnormal temperature measures. Default is false.
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAPublicDataResponse'
security:
- code_oauth: []
- password_oauth: []
/getuser:
get:
tags:
- deprecated
description: |
The method getuser returns information about a user such as prefered language, prefered units, and list of devices.
operationId: getuser
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAUserResponse'
deprecated: true
security:
- code_oauth: []
- password_oauth: []
/devicelist:
get:
tags:
- deprecated
description: |
The method devicelist returns the list of devices owned by the user, and their modules.
A device is identified by its _id (which is its mac address) and each device may have one, several or no modules, also identified by an _id.
operationId: devicelist
parameters:
- name: app_type
in: query
description: Defines which device type will be returned by devicelist. It could be app_thermostat or app_station (by default if not provided)
type: string
enum:
- app_thermostat
- app_station
- name: device_id
in: query
description: Specify a device_id if you want to retrieve only this device informations.
type: string
- name: get_favorites
in: query
description: 'When set to "true", the favorite devices of the user are returned. This flag is available only if the devices requested are Weather Stations.'
type: boolean
required: false
default: false
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NADeviceListResponse'
deprecated: true
security:
- code_oauth:
- read_thermostat
- read_station
- password_oauth:
- read_thermostat
- read_station
/getmeasure:
get:
tags:
- station
- thermostat
- partner
- public
description: |
The method getmeasure returns the measurements of a device or a module.
operationId: getmeasure
parameters:
- name: device_id
in: query
description: Id of the device whose module's measurements you want to retrieve. This _id can be found in the user's devices field.
required: true
type: string
- name: module_id
in: query
description: If you don't specify any module_id you will retrieve the device's measurements. If you specify a module_id you will retrieve the module's measurements.
type: string
- name: scale
in: query
description: |
Defines the time interval between two measurements.
Possible values :
max -> every value stored will be returned
30min -> 1 value every 30 minutes
1hour -> 1 value every hour
3hours -> 1 value every 3 hours
1day -> 1 value per day
1week -> 1 value per week
1month -> 1 value per month
required: true
type: string
enum:
- max
- 30min
- 1hour
- 3hours
- 1day
- 1week
- 1month
- name: type
in: query
description: |
Measures you are interested in. Data you can request depends on the scale.
**For Weather Station:**
* max -> Temperature (°C), CO2 (ppm), Humidity (%), Pressure (mbar), Noise (db), Rain (mm), WindStrength (km/h), WindAngle (angles), Guststrength (km/h), GustAngle (angles)
* 30min, 1hour, 3hours -> Same as above + min_temp, max_temp, min_hum, max_hum, min_pressure, max_pressure, min_noise, max_noise, sum_rain, date_max_gust
* 1day, 1week, 1month -> Same as above + date_min_temp, date_max_temp, date_min_hum, date_max_hum, date_min_pressure, date_max_pressure, date_min_noise, date_max_noise, date_min_co2, date_max_co2
**For Thermostat:**
* max -> temperature (°C), sp_temperature (°C), boileron (sec), boileroff (sec)
* 30min, 1hour, 3hours -> temperature, sp_temperature, min_temp,
max_temp, sum_boiler_on, sum_boiler_off
* 1day, 1week, 1month -> temperature, min_temp, date_min_temp,
max_temp, sum_boiler_on, sum_boiler_off
required: true
type: array
items:
type: string
enum:
- Temperature
- CO2
- Humidity
- Pressure
- Noise
- Rain
- WindStrength
- WindAngle
- Guststrength
- GustAngle
- Sp_Temperature
- BoilerOn
- BoilerOff
- min_temp
- date_min_temp
- max_temp
- date_max_temp
- min_hum
- date_min_hum
- max_hum
- date_max_hum
- min_pressure
- date_min_pressure
- max_pressure
- date_max_pressure
- min_noise
- date_min_noise
- max_noise
- date_max_noise
- date_min_co2
- date_max_co2
- date_max_gust
- sum_rain
- sum_boiler_on
- sum_boiler_off
collectionFormat: csv
- name: date_begin
in: query
description: |
Starting timestamp (utc) of the requested measurements.
Please note measurement retrieving is limited to 1024 measurements.
type: integer
format: int32
- name: date_end
in: query
description: |
Ending timestamp (utc) of the request measurements.
If you want only the last measurement, do not provide date_begin, and set date_end to `last`.
type: string
- name: limit
in: query
description: Limits the number of measurements returned (default & max is 1024)
type: integer
format: int32
maximum: 1024
- name: optimize
in: query
description: |
Allows you to choose the format of the answer.
If you build a mobile app and bandwith usage is an issue, use `optimize = true`.
Use `optimize = false`, for an easier parse. In this case, values are indexed by sorted timestamp.
Example of un-optimized response :
```json
{"status": "ok",
"body": {
"1347575400": [18.3,39],
"1347586200": [20.6,48]
},
"time_exec": 0.012136936187744}
```
If optimize is set true, measurements are returned as an array of series of regularly spaced measurements. Each series is defined by a beginning time beg_time and a step between measurements, step_time:
```json
{"status": "ok",
"body": [
{"beg_time": 1347575400,
"step_time": 10800,
"value":
[[18.3,39],
[ 20.6,48]]
}],
"time_exec": 0.014238119125366}
```
Default value is `true`.
type: boolean
- name: real_time
in: query
description: |
In scales higher than max, since the data is aggregated, the timestamps returned are by default offset by +(scale/2).
For instance, if you ask for measurements at a daily scale, you will receive data timestamped at 12:00 if real_time is set to `false` (default case), and timestamped at 00:00 if real_time is set to `true`.
NB : The servers always store data with real_time set to `true` and data are offset by this parameter AFTER having being time-filtered, thus you could have data after date_end if real_time is set to `false`.
type: boolean
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAMeasureResponse'
security:
- code_oauth:
- read_thermostat
- read_station
- password_oauth:
- read_thermostat
- read_station
/getthermostatsdata:
get:
tags:
- thermostat
description: The method getthermostatsdata returns information about user's thermostats such as their last measurements.
operationId: getthermostatsdata
parameters:
- name: device_id
in: query
description: Id of the device you want to retrieve information of
type: string
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAThermostatDataResponse'
security:
- code_oauth:
- read_thermostat
- password_oauth:
- read_thermostat
/getstationsdata:
get:
tags:
- station
description: The method getstationsdata Returns data from a user's Weather Stations (measures and device specific data).
operationId: getstationsdata
parameters:
- name: device_id
in: query
description: Id of the device you want to retrieve information of
type: string
- name: get_favorites
in: query
description: Whether to include the user's favorite Weather Stations in addition to the user's own Weather Stations
type: boolean
default: false
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAStationDataResponse'
security:
- code_oauth:
- read_station
- password_oauth:
- read_station
/gethomecoachsdata:
get:
tags:
- healthyhomecoach
description: The method gethomecoachsdata Returns data from a user Healthy Home Coach Station (measures and device specific data).
operationId: gethomecoachsdata
parameters:
- name: device_id
in: query
description: Id of the device you want to retrieve information of
type: string
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAHealthyHomeCoachDataResponse'
security:
- code_oauth:
- read_homecoach
- password_oauth:
- read_homecoach
/getthermstate:
get:
tags:
- deprecated
description: 'The method getthermstate returns the last Thermostat measurements, its current weekly schedule, and, if present, its current manual temperature setpoint.'
operationId: getthermstate
parameters:
- name: device_id
in: query
description: The relay id
required: true
type: string
- name: module_id
in: query
description: The thermostat id
required: true
type: string
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAThermStateResponse'
deprecated: true
security:
- code_oauth:
- read_thermostat
- password_oauth:
- read_thermostat
/syncschedule:
post:
tags:
- thermostat
description: The method syncschedule changes the Thermostat weekly schedule.
operationId: syncschedule
parameters:
- name: device_id
in: query
description: The relay id
required: true
type: string
- name: module_id
in: query
description: The thermostat id
required: true
type: string
- in: body
name: therm_program
description: 'The thermostat program (zones, timetable and name)'
required: true
schema:
$ref: '#/definitions/NAThermProgram'
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAOkResponse'
security:
- code_oauth:
- write_thermostat
- password_oauth:
- write_thermostat
/setthermpoint:
post:
tags:
- thermostat
description: The method setthermpoint changes the Thermostat manual temperature setpoint.
operationId: setthermpoint
parameters:
- name: device_id
in: query
description: The relay id
required: true
type: string
- name: module_id
in: query
description: The thermostat id
required: true
type: string
- name: setpoint_mode
in: query
description: Chosen setpoint_mode
required: true
type: string
enum:
- program
- away
- hg
- manual
- 'off'
- max
- name: setpoint_endtime
in: query
description: 'When using the manual or max setpoint_mode, this parameter defines when the setpoint expires.'
type: integer
format: int32
- name: setpoint_temp
in: query
description: 'When using the manual setpoint_mode, this parameter defines the temperature setpoint (in Celcius) to use.'
type: number
format: float
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAOkResponse'
security:
- code_oauth:
- write_thermostat
- password_oauth:
- write_thermostat
/switchschedule:
post:
tags:
- thermostat
description: The method switchschedule switches the Thermostat's schedule to another existing schedule.
operationId: switchschedule
parameters:
- name: device_id
in: query
description: The relay id
required: true
type: string
- name: module_id
in: query
description: The thermostat id
required: true
type: string
- name: schedule_id
in: query
description: |
The schedule id. It can be found in the getthermstate response, under the keys `therm_program_backup` and `therm_program`.
required: true
type: string
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAOkResponse'
security:
- code_oauth:
- write_thermostat
- password_oauth:
- write_thermostat
/createnewschedule:
post:
tags:
- thermostat
description: The method createnewschedule creates a new schedule stored in the backup list.
operationId: createnewschedule
parameters:
- name: device_id
in: query
description: The relay id
required: true
type: string
- name: module_id
in: query
description: The thermostat id
required: true
type: string
- in: body
name: therm_program
description: The thermostat program (zones and timetable)
required: true
schema:
$ref: '#/definitions/NAThermProgram'
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NANewScheduleResponse'
security:
- code_oauth:
- write_thermostat
- password_oauth:
- write_thermostat
/partnerdevices:
get:
tags:
- partner
description: The method partnerdevices returns the list of device_id to which your partner application has access to.
operationId: partnerdevices
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAPartnerDevicesResponse'
security:
- code_oauth: []
- password_oauth: []
/gethomedata:
get:
tags:
- welcome
description: |
Returns information about users homes and cameras.
operationId: gethomedata
parameters:
- name: home_id
in: query
description: Specify if you're looking for the events of a specific Home.
type: string
- name: size
in: query
description: Number of events to retrieve. Default is `30`.
type: integer
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAWelcomeHomeDataResponse'
security:
- code_oauth:
- access_camera
- read_camera
- password_oauth:
- access_camera
- read_camera
/getcamerapicture:
get:
tags:
- welcome
description: |
Returns the snapshot associated to an event.
operationId: getcamerapicture
parameters:
- name: image_id
in: query
description: 'id of the image (can be retrieved as ''id'' in ''face'' in Gethomedata, or as ''id'' in ''snapshot'' in Getnextevents, Getlasteventof and Geteventsuntil)'
required: true
type: string
- name: key
in: query
description: Security key to access snapshots.
required: true
type: string
responses:
'200':
description: Successful response
schema:
type: string
format: byte
security:
- code_oauth: []
- password_oauth: []
/geteventsuntil:
get:
tags:
- welcome
description: |
Returns the snapshot associated to an event.
operationId: geteventsuntil
parameters:
- name: home_id
in: query
description: ID of the Home you're interested in
required: true
type: string
- name: event_id
in: query
description: Your request will retrieve all the events until this one
required: true
type: string
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAWelcomeEventResponse'
security:
- code_oauth:
- access_camera
- read_camera
- password_oauth:
- access_camera
- read_camera
/getlasteventof:
get:
tags:
- welcome
description: |
Returns most recent events.
operationId: getlasteventof
parameters:
- name: home_id
in: query
description: ID of the Home you're interested in
required: true
type: string
- name: person_id
in: query
description: Your request will retrieve all events of the given home until the most recent event of the given person
required: true
type: string
- name: offset
in: query
description: Number of events to retrieve. Default is 30.
type: integer
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAWelcomeEventResponse'
security:
- code_oauth:
- access_camera
- read_camera
- password_oauth:
- access_camera
- read_camera
/getnextevents:
get:
tags:
- welcome
description: |
Returns previous events.
operationId: getnextevents
parameters:
- name: home_id
in: query
description: ID of the Home you're interested in
required: true
type: string
- name: event_id
in: query
description: Your request will retrieve events occured before this one
required: true
type: string
- name: size
in: query
description: Number of events to retrieve. Default is 30.
type: integer
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAWelcomeEventResponse'
security:
- code_oauth:
- access_camera
- read_camera
- password_oauth:
- access_camera
- read_camera
/setpersonsaway:
post:
tags:
- welcome
description: |
Sets a person as 'Away' or the Home as 'Empty'. The event will be added to the user’s timeline.
operationId: setpersonsaway
parameters:
- name: home_id
in: query
description: ID of the Home you're interested in
required: true
type: string
- name: person_id
in: query
description: 'If a person_id is specified, that person will be set as ''Away''. If no person_id is specified, the Home will be set as ''Empty''.'
type: string
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAWelcomePersonsAwayResponse'
security:
- code_oauth:
- write_camera
- password_oauth:
- write_camera
/setpersonshome:
post:
tags:
- welcome
description: |
Sets a person as 'At home'.
operationId: setpersonshome
parameters:
- name: home_id
in: query
description: ID of the Home you're interested in
required: true
type: string
- name: person_ids
in: query
description: List of persons IDs
required: true
type: string
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAWelcomePersonsHomeResponse'
security:
- code_oauth:
- write_camera
- password_oauth:
- write_camera
/addwebhook:
get:
tags:
- welcome
description: |
Links a callback url to a user.
operationId: addwebhook
parameters:
- name: url
in: query
description: Your webhook callback url
required: true
type: string
- name: app_type
in: query
description: 'Webhooks are only available for Welcome, enter app_camera.'
required: true
type: string
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAWelcomeWebhookResponse'
security:
- code_oauth: []
- password_oauth: []
/dropwebhook:
get:
tags:
- welcome
description: |
Dissociates a webhook from a user.
operationId: dropwebhook
parameters:
- name: app_type
in: query
description: 'For Welcome, use app_camera'
required: true
type: string
responses:
'200':
description: Successful response
schema:
$ref: '#/definitions/NAWelcomeWebhookResponse'
security:
- code_oauth: []
- password_oauth: []
securityDefinitions:
code_oauth:
type: oauth2
authorizationUrl: 'https://api.netatmo.net/oauth2/authorize'
tokenUrl: 'https://api.netatmo.net/oauth2/token'
flow: accessCode
scopes:
read_station: Read weather station's data
write_thermostat: Configure the thermostat
read_thermostat: Read thermostat's data
read_camera: Read welcome camera's data
access_camera: Access welcome camera
write_camera: Write welcome camera's data
read_homecoach: Read data coming from Healthy Home Coach
password_oauth:
type: oauth2
tokenUrl: 'https://api.netatmo.net/oauth2/token'
flow: password
scopes:
read_station: Read weather station's data
write_thermostat: Configure the thermostat
read_thermostat: Read thermostat's data
read_camera: Read welcome camera's data
access_camera: Access welcome camera
write_camera: Write welcome camera's data
read_homecoach: Read data coming from Healthy Home Coach
definitions:
NAOkResponse:
properties:
status:
type: string
example: ok
time_exec:
type: number
format: double
time_server:
type: integer
format: int32
body:
type: string
NAPublicDataResponse:
properties:
status:
type: string
example: ok
body:
type: array
items:
$ref: '#/definitions/NAPublicData'
time_exec:
type: number
format: double
time_server:
type: integer
format: int32
NAPublicData:
properties:
_id:
type: string
description: id of the station
example: '70:ee:50:09:f0:xx'
place:
description: Information about the station location (latitude/longitude of the station, altitude (meters), timezone)
$ref: '#/definitions/NAPlace'
mark:
type: integer
modules:
type: array
items:
type: string
module_types:
type: object
description: Latest measurements of the station, organized by module
additionalProperties:
type: string
measures:
type: object
additionalProperties:
$ref: '#/definitions/NAMeasure'
NAMeasure:
properties:
res:
additionalProperties:
type: array
items:
type: number
format: double
type:
type: array
items:
type: string
rain_60min:
type: number
rain_24h:
type: number
rain_live:
type: number
rain_utc:
type: integer
format: int64
wind_strength:
type: number
wind_angle:
type: number
gust_strength:
type: number
gust_angle:
type: number
wind_timeutc":
type: integer
format: int64
NAUserResponse:
properties:
status:
type: string
example: ok
body:
$ref: '#/definitions/NAUser'
time_exec:
type: number
format: double
time_server:
type: integer
format: int32
NADeviceListResponse:
properties:
status:
type: string
example: ok
body:
$ref: '#/definitions/NADeviceListBody'
time_exec:
type: number
format: double
time_server:
type: integer
format: int32
NAMeasureResponse:
properties:
status:
type: string
example: ok
body:
type: array
items:
$ref: '#/definitions/NAMeasureBodyElem'
time_exec:
type: number
format: double
time_server:
type: integer
format: int32
NAThermostatDataResponse:
properties:
status:
type: string
example: ok
body:
$ref: '#/definitions/NAThermostatDataBody'
time_exec:
type: number
format: double
time_server:
type: integer
format: int32
NAStationDataResponse:
properties:
status:
type: string
example: ok