📦 rparrett / weather_dashboard

📄 PW_OpenAPI.yaml · 1022 lines
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022openapi: 3.1.0
info:
  version: "2.8"
  title: Pirate Weather API
  description: Pirate Weather provides an open, free, and documented source of government weather data.
  termsOfService: https://pirate-weather.apiable.io/terms
  contact:
    email: mail@pirateweather.net
  license:
    name: Apache License 2.0
    url: https://github.com/Pirate-Weather/pirateweather/blob/main/LICENSE.md
externalDocs:
  description: Full API reference
  url: https://pirate-weather.apiable.io/full-api-reference
tags:
  - name: Weather
    description: Pirate Weather provides an open, free, and documented source of government weather data.

paths:
  "/forecast/{api_key}/{lat_and_long_or_time}":
    get:
      tags:
        - Weather
      operationId: Weather
      summary: Make a request to Pirate Weather
      description: Fetch a weather forecast or get historical weather data based on input latitude and longitude.
      parameters:
        - name: api_key
          in: path
          description: Pirate Weather Authentication Token.
          required: true
          schema:
            type: string
        - name: lat_and_long_or_time
          in: path
          description: A single comma-delimited string containing Latitude and Longitude information. Optionally, either a UNIX timestamp, ISO 8601 date string, or number of seconds before present can be added.
          required: true
          schema:
            type: string
        - name: exclude
          in: query
          description: Exclude some keys (hourly, minutely, daily, flags, alerts), models (nbm, hrrr, gefs), or detailed text summaries (summary) from the Pirate Weather forecast response.
          schema:
            type: string
            enum:
              - summary
              - currently
              - minutely
              - hourly
              - daily
              - flags
              - alerts
              - nbm
              - hrrr
              - gefs
        - name: extend
          in: query
          description: Fetch the next 168 hours (7 days) worth of hourly data, instead of the next 24.
          schema:
            type: string
            enum:
              - hourly
        - name: extraVars
          in: query
          description: Add additional variables to the response.
          schema:
            type: string
            enum:
              - stationPressure
        - name: lang
          in: query
          description: Returns the forecast summaries in the desired language.
          schema:
            type: string
            enum:
              - ar
              - az
              - be
              - bg
              - bn
              - bs
              - ca
              - cs
              - cy
              - da
              - de
              - el
              - en
              - eo
              - es
              - et
              - fa
              - fi
              - fr
              - ga
              - gd
              - he
              - hi
              - hr
              - hu
              - id
              - is
              - it
              - ja
              - ka
              - kn
              - ko
              - kw
              - lv
              - ml
              - mr
              - nl
              - no
              - pa
              - pl
              - pt
              - ro
              - ru
              - sk
              - sl
              - sr
              - sv
              - ta
              - te
              - tet
              - tr
              - uk
              - ur
              - vi
              - x-pig-latin
              - zh
              - zh-tw
        - name: units
          in: query
          description: Return the weather forecast data in the requested unit system.
          schema:
            type: string
        - name: version
          in: query
          description: Include fields which were not part of the Dark Sky API but were introduced in API version 2.
          schema:
            type: integer
        - name: tmextra
          in: query
          description: Include the full set of parameters in recent time machine requests.
          schema:
            type: integer
        - name: icon
          in: query
          description: Changes the icon field to return icons which aren't part of the Dark Sky icon set.
          schema:
            type: string

      responses:
        "400":
          description: "Bad Request. Longitude or Latitude is invalid."
          content:
            application/json:
              schema:
                properties:
                  detail:
                    type: string
                    description: The error message
                    example: "Invalid Location Specification"
        "401":
          description: "API key does not have access to the queried endpoint or if you did not include an API key in your request."
          content:
            text/html:
              schema:
                type: string
                example: Kong Error Invalid authentication credentials.
        "404":
          description: "You queried the API using an invalid route or if you do not supply a latitude or longitude in your request."
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                    description: The error message.
                    example: "no Route matched with those values"
        "429":
          description: "Your your API key has hit the quota for the month."
          content:
            text/html:
              schema:
                type: string
                example: Kong Error API rate limit exceeded.
        "500":
          description: "Internal Server Error."
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                    description: The error message.
                    example: "Internal Server Error"
        "502":
          description: "Bad Gateway."
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                    description: The error message.
                    example: "An invalid response was received from the upstream server"
        "200":
          description: Success
          content:
            application/json:
              schema:
                properties:
                  latitude:
                    $ref: "#/components/schemas/latitude"
                  longitude:
                    $ref: "#/components/schemas/longitude"
                  timezone:
                    $ref: "#/components/schemas/timezone"
                  offset:
                    $ref: "#/components/schemas/offset"
                  elevation:
                    $ref: "#/components/schemas/elevation"
                  currently:
                    $ref: "#/components/schemas/currently"
                  minutely:
                    $ref: "#/components/schemas/minutely"
                  hourly:
                    $ref: "#/components/schemas/hourly"
                  daily:
                    $ref: "#/components/schemas/daily"
                  alerts:
                    $ref: "#/components/schemas/alerts"
                  flags:
                    $ref: "#/components/schemas/flags"
servers:
  - url: https://api.pirateweather.net
    description: Production forecast data server
  - url: https://dev.pirateweather.net
    description: Development forecast data server
  - url: https://timemachine.pirateweather.net
    description: Production historic data server
components:
  schemas:
    latitude:
      type: number
      description: The requested latitude.
      example: 37.3035
    longitude:
      type: number
      description: The requested longitude.
      example: -89.523
    timezone:
      type: string
      description: The timezone name for the requested location.
      example: America/Chicago
    offset:
      type: number
      description: The timezone offset in hours.
      example: -6
    elevation:
      type: number
      description: The elevation in meters of the forecast point.
      example: 105
    currently:
      type: object
      description: A block containing the current weather for the requested location.
      properties:
        time:
          type: integer
          format: int32
          description: The current time in UNIX format.
          example: 1749320100
        summary:
          type: string
          description: A human-readable summary of the current weather.
          example: Overcast
        icon:
          type: string
          description: An icon representing the current weather.
          example: cloudy
        nearestStormDistance:
          type: number
          description: The distance to the nearest storm in kilometers.
          example: 29.84
        nearestStormBearing:
          type: integer
          format: int32
          description: The direction to the nearest storm in degrees.
          example: 135
        precipIntensity:
          type: number
          description: The intensity of liquid water equivalent precipitation in millimeters per hour.
          example: 0
        precipProbability:
          type: number
          description: The probability of precipitation occurring.
          example: 0.38
        precipIntensityError:
          type: number
          description: The standard deviation of the precipitation intensity.
          example: 1.49
        precipType:
          type: string
          description: The type of precipitation occurring.
          example: none
        temperature:
          type: number
          description: The air temperature.
          example: 24.53
        apparentTemperature:
          type: number
          description: The apparent temperature (feels like).
          example: 27.99
        dewPoint:
          type: number
          description: The dew point temperature.
          example: 19.96
        humidity:
          type: number
          description: The relative humidity.
          example: 0.88
        pressure:
          type: number
          description: The sea-level pressure in hectopascals.
          example: 1009.92
        windSpeed:
          type: number
          description: The wind speed.
          example: 7.42
        windGust:
          type: number
          description: The wind gust speed.
          example: 9.78
        windBearing:
          type: number
          description: The direction of the wind in degrees.
          example: 195
        cloudCover:
          type: number
          description: The fraction of the sky covered by clouds.
          example: 0.93
        uvIndex:
          type: number
          description: The UV index.
          example: 3
        visibility:
          type: number
          description: The visibility in kilometers.
          example: 13.62
        ozone:
          type: number
          description: The ozone concentration in Dobson units.
          example: 304.41
        smoke:
          type: number
          description: The amount of near-surface smoke in ug/m^3. Only returned when version>1.
          example: 0.08
        fireIndex:
          type: number
          description: The Fosburg fire index. Only returned when version>1.
          example: 5.39
        feelsLike:
          type: number
          description: The apparent temperature reported by NBM and gfs. Only returned when version>1.
          example: 23.23
        currentDayIce:
          type: number
          description: The ice precipitation that has accumulated so far during the day, from midnight until the forecast request time. Only returned when version>1.
          example: 0
        currentDayLiquid:
          type: number
          description: The liquid precipitation that has accumulated so far during the day, from midnight until the forecast request time. Only returned when version>1.
          example: 0.0508
        currentDaySnow:
          type: number
          description: The snow precipitation that has accumulated so far during the day, from midnight until the forecast request time. Only returned when version>1.
          example: 0
        stationPressure:
          type: number
          description: The station pressure hectopascals. Only returned when extraVars contains stationPressure.
          example: 0
        solar:
          type: number
          description: The Downward Short-Wave Radiation Flux measured in W/m^2. Only returned when version>1.
          example: 378.4
        cape:
          type: integer
          format: int32
          description: The Convective Available Potential Energy measured in J/kg. Only returned when version>1.
          example: 0
    minutely:
      type: object
      description: A block containing minute-by-minute precipitation intensity for the next 60 minutes.
      properties:
        summary:
          type: string
          description: A summary of the minute-by-minute forecast.
          example: Overcast for the hour.
        icon:
          type: string
          description: An icon representing the minute-by-minute forecast.
          example: cloudy
        data:
          type: array
          items:
            type: object
            properties:
              time:
                type: integer
                format: int32
                description: The time of the data point in UNIX format.
                example: 1749320100
              precipIntensity:
                type: number
                description: The intensity of precipitation.
                example: 0
              precipProbability:
                type: number
                description: The probability of precipitation.
                example: 0.38
              precipIntensityError:
                type: number
                description: The standard deviation of the precipitation intensity.
                example: 1.49
              precipType:
                type: string
                description: The type of precipitation occurring.
                example: none
    hourly:
      type: object
      description: A block containing hour-by-hour forecasted conditions for the next 48 hours. If `extend=hourly` is used, the hourly block gives hour-by-hour forecasted conditions for the next 168 hours.
      properties:
        summary:
          type: string
          description: A summary of the hourly forecast.
          example: Light rain until tomorrow morning.
        icon:
          type: string
          description: An icon representing the hourly forecast.
          example: rain
        data:
          type: array
          items:
            type: object
            properties:
              time:
                type: integer
                format: int32
                description: The time of the data point in UNIX format.
                example: 1749319200
              summary:
                type: string
                description: A summary of the weather.
                example: Drizzle
              icon:
                type: string
                description: An icon representing the weather.
                example: rain
              precipIntensity:
                type: number
                description: The intensity of precipitation.
                example: 0.254
              precipProbability:
                type: number
                description: The probability of precipitation.
                example: 0.49
              precipIntensityError:
                type: number
                description: The standard deviation of the precipitation intensity.
                example: 0.9792
              precipAccumulation:
                type: number
                description: The total amount of precipitation.
                example: 0.0254
              precipType:
                type: string
                description: The type of precipitation occurring.
                example: rain
              temperature:
                type: number
                description: The air temperature.
                example: 23.35
              apparentTemperature:
                type: number
                description: The apparent temperature (feels like).
                example: 26.16
              dewPoint:
                type: number
                description: The dew point temperature.
                example: 20.91
              humidity:
                type: number
                description: The relative humidity.
                example: 0.87
              pressure:
                type: number
                description: The air pressure.
                example: 1009.92
              stationPressure:
                type: number
                description: The station pressure. Only returned when extraVars contains stationPressure.
                example: 1009.92
              windSpeed:
                type: number
                description: The wind speed.
                example: 7.2
              windGust:
                type: number
                description: The wind gust speed.
                example: 15.84
              windBearing:
                type: number
                description: The direction of the wind in degrees.
                example: 190
              cloudCover:
                type: number
                description: The fraction of the sky covered by clouds.
                example: 0.94
              uvIndex:
                type: number
                description: The UV index.
                example: 1.67
              visibility:
                type: number
                description: The visibility in kilometers.
                example: 12.69
              ozone:
                type: number
                description: The ozone concentration in Dobson units.
                example: 301.99
              smoke:
                type: number
                description: The amount of near-surface smoke in ug/m3. Only returned when version>1.
                example: 0.1
              liquidAccumulation:
                type: number
                description: The amount of liquid precipitation expected. Only returned when version>1.
                example: 0.0254
              snowAccumulation:
                type: number
                description: The amount of snow precipitation expected. Only returned when version>1.
                example: 0
              iceAccumulation:
                type: number
                description: The amount of ice precipitation expected. Only returned when version>1.
                example: 0
              nearestStormDistance:
                type: number
                description: The distance to the nearest storm.
                example: 0
              nearestStormBearing:
                type: integer
                format: int32
                description: The direction to the nearest storm.
                example: 0
              fireIndex:
                type: number
                description: The Fosburg fire index. Only returned when version>1.
                example: 4.49
              feelsLike:
                type: number
                description: The apparent temperature reported by NBM and gfs. Only returned when version>1.
                example: 23.29
              solar:
                type: number
                description: The Downward Short-Wave Radiation Flux measured in W/m^2. Only returned when version>1.
                example: 378.4
              cape:
                type: integer
                format: int32
                description: The Convective Available Potential Energy measured in J/kg. Only returned when version>1.
                example: 0
    daily:
      type: object
      description: A block containing day-by-day forecasted conditions for the next 7 days.
      properties:
        summary:
          type: string
          description: A summary of the daily forecast.
          example: Light rain today and Monday and Friday and next Saturday, with high temperatures peaking at 31°C on Wednesday.
        icon:
          type: string
          description: An icon representing the daily forecast.
          example: rain
        data:
          type: array
          items:
            type: object
            properties:
              time:
                type: integer
                format: int32
                description: The time of the data point in UNIX format.
                example: 1749272400
              summary:
                type: string
                description: A summary of the weather.
                example: Light rain starting in the afternoon.
              icon:
                type: string
                description: An icon representing the weather.
                example: rain
              dawnTime:
                type: integer
                format: int32
                description: The time when the sun is a specific (6 degrees) height above the horizon after sunrise. Only returned when version>1.
                example: 1749290785
              sunriseTime:
                type: integer
                format: int32
                description: The time of sunrise in UNIX format.
                example: 1749292665
              sunsetTime:
                type: integer
                format: int32
                description: The time of sunset in UNIX format.
                example: 1749345397
              duskTime:
                type: integer
                format: int32
                description: The time when the sun is a specific (6 degrees) height above the horizon before sunset. Only returned when version>1.
                example: 1749347279
              moonPhase:
                type: number
                description: The fractional lunation number for the given day.
                example: 0.38
              precipIntensity:
                type: number
                description: The intensity of precipitation.
                example: 0.2117
              precipIntensityMax:
                type: number
                description: The maximum intensity of precipitation.
                example: 2.0322
              precipIntensityMaxTime:
                type: integer
                format: int32
                description: The time when the maximum precipitation intensity occurs in UNIX format.
                example: 1749355200
              precipProbability:
                type: number
                description: The probability of precipitation.
                example: 0.49
              precipAccumulation:
                type: number
                description: The total amount of precipitation.
                example: 0.508
              precipType:
                type: string
                description: The type of precipitation occurring.
                example: rain
              temperatureHigh:
                type: number
                description: The daytime high temperature.
                example: 24.35
              temperatureHighTime:
                type: integer
                format: int32
                description: The time when the high temperature occurs in UNIX format.
                example: 1749337200
              temperatureLow:
                type: number
                description: The overnight low temperature.
                example: 19.48
              temperatureLowTime:
                type: integer
                format: int32
                description: The time when the low temperature occurs in UNIX format.
                example: 1749380400
              apparentTemperatureHigh:
                type: number
                description: The apparent daytime high temperature (feels like).
                example: 26.16
              apparentTemperatureHighTime:
                type: integer
                format: int32
                description: The time when the apparent high temperature occurs in UNIX format.
                example: 1749319200
              apparentTemperatureLow:
                type: number
                description: The apparent overnight low temperature (feels like).
                example: 21.18
              apparentTemperatureLowTime:
                type: integer
                format: int32
                description: The time when the apparent low temperature occurs in UNIX format.
                example: 1749376800
              dewPoint:
                type: number
                description: The dew point temperature.
                example: 20.21
              humidity:
                type: number
                description: The relative humidity.
                example: 0.91
              pressure:
                type: number
                description: The air pressure.
                example: 1009.87
              windSpeed:
                type: number
                description: The wind speed.
                example: 7
              windGust:
                type: number
                description: The wind gust speed.
                example: 14.57
              windGustTime:
                type: integer
                format: int32
                description: The time when the maximum wind gust occurs in UNIX format.
                example: 1749333600
              windBearing:
                type: number
                description: The direction of the wind in degrees.
                example: 244
              cloudCover:
                type: number
                description: The fraction of the sky covered by clouds.
                example: 0.68
              uvIndex:
                type: number
                description: The max UV index during that day.
                example: 4.45
              uvIndexTime:
                type: integer
                format: int32
                description: The time when the maximum UV index occurs in UNIX format.
                example: 1749333600
              visibility:
                type: number
                description: The visibility in kilometers.
                example: 13.26
              temperatureMin:
                type: number
                description: The minimum temperature.
                example: 19.1
              temperatureMinTime:
                type: integer
                format: int32
                description: The time when the minimum temperature occurs in UNIX format.
                example: 1749297600
              temperatureMax:
                type: number
                description: The maximum temperature.
                example: 24.41
              temperatureMaxTime:
                type: integer
                format: int32
                description: The time when the maximum temperature occurs in UNIX format.
                example: 1749340800
              apparentTemperatureMin:
                type: number
                description: The minimum apparent temperature (feels like).
                example: 22.03
              apparentTemperatureMinTime:
                type: integer
                format: int32
                description: The time when the minimum apparent temperature occurs in UNIX format.
                example: 1749290400
              apparentTemperatureMax:
                type: number
                description: The maximum apparent temperature (feels like).
                example: 26.33
              apparentTemperatureMaxTime:
                type: integer
                format: int32
                description: The time when the maximum apparent temperature occurs in UNIX format.
                example: 1749344400
              smokeMax:
                type: number
                description: The maximum amount of near-surface smoke in ug/m^3. Only returned when version>1.
                example: 0.24
              smokeMaxTime:
                type: integer
                format: int32
                description: The time when the maximum near-surface smoke occurs in UNIX format. Only returned when version>1.
                example: 1749333600
              liquidAccumulation:
                type: number
                description: The amount of liquid precipitation expected. Only returned when version>1.
                example: 0.508
              snowAccumulation:
                type: number
                description: The amount of snow precipitation expected. Only returned when version>1.
                example: 0
              iceAccumulation:
                type: number
                description: The amount of ice precipitation expected. Only returned when version>1.
                example: 0
              fireIndexMax:
                type: number
                description: The maximum Fosburg fire index. Only returned when version>1.
                example: 8.2
              fireIndexMaxTime:
                type: integer
                format: int32
                description: The time when the maximum Fosburg fire index occurs in UNIX format. Only returned when version>1.
                example: 1749344400
              solar:
                type: number
                description: The Downward Short-Wave Radiation Flux measured in W/m^2. Only returned when version>1.
                example: 392.78
              solarMax:
                type: number
                description: The time when the maximum solar occurs in UNIX format. Only returned when version>1.
                example: 1761422400
              cape:
                type: integer
                format: int32
                description: The Convective Available Potential Energy measured in J/kg. Only returned when version>1.
                example: 0
              capeMax:
                type: integer
                format: int32
                description: The time when the maximum CAPE occurs in UNIX format. Only returned when version>1.
                example: 1761368400
    alerts:
      type: array
      description: A block containing any severe weather alerts for the current location.
      items:
        type: object
        properties:
          title:
            type: string
            description: A brief description of the alert.
            example: Flood Warning
          regions:
            type: array
            description: An array of strings containing all regions included in the weather alert.
            items:
              type: string
              example: Alexander, IL
          severity:
            type: string
            description: The severity of the weather alert.
            example: Severe
          time:
            type: integer
            format: int32
            description: The time the alert was issued in UNIX format.
            example: 1715357220
          expires:
            type: integer
            format: int32
            description: The time the alert expires in UNIX format.
            example: 1715451300
          description:
            type: string
            description: A detailed description of the alert.
            example: "...The Flood Warning is extended for the following river in Illinois...Missouri...Kentucky...  Mississippi River at Cape Girardeau, Thebes, and Hickman.  .With recent heavy rainfall, waters are rising on the Mississippi River with crests in minor flood at Cape Girardeau, Thebes, and Hickman early next week.  For the Mississippi River...including Cape Girardeau, Thebes, Hickman...Minor flooding is forecast.  * WHAT...Minor flooding is occurring and minor flooding is forecast.  * WHERE...Mississippi River at Cape Girardeau.  * WHEN...Until Friday, May 17.  * IMPACTS...At 36.0 feet, The flood gate on Themis Street closes.  * ADDITIONAL DETAILS... - At 11:00 AM CDT Friday the stage was 34.4 feet. - Forecast...The river is expected to rise to a crest of 36.0 feet Monday morning. It will then fall below flood stage late Thursday evening. - Flood stage is 32.0 feet."
          uri:
            type: string
            description: A HTTP(S) URL for more information about the alert.
            example: https://alerts.weather.gov/search?id=urn:oid:2.49.0.1.840.0.f24c2a5f205f53c0f443861ac62244cc6aecfc9c.002.1
    flags:
      type: object
      description: A block containing miscellaneous data for the API request.
      properties:
        sources:
          type: array
          description: The models used to generate the forecast.
          items:
            type: string
            example: ETOPO1
        sourceTimes:
          type: object
          description: The times in UTC when the models were last updated.
          properties:
            hrrr_0-18:
              type: string
              description: The time the HRRR model for 0-18 hours was last updated.
              example: 2025-06-07 16Z
            hrrr_subh:
              type: string
              description: The time the HRRR sub-hourly model was last updated.
              example: 2025-06-07 15Z
            nbm:
              type: string
              description: The time the NBM model was last updated.
              example: 2025-06-07 15Z
            nbm_fire:
              type: string
              description: The time the NBM fire model was last updated.
              example: 2025-06-07 12Z
            hrrr_18-48:
              type: string
              description: The time the HRRR model for 18-48 hours was last updated.
              example: 2025-06-07 12Z
            gfs:
              type: string
              description: The time the GFS model was last updated.
              example: 2025-06-07 12Z
            gefs:
              type: string
              description: The time the GEFS model was last updated.
              example: 2025-06-07 00Z
        nearest-station:
          type: integer
          format: int32
          description: The distance to the nearest station (not implemented, always returns 0).
          example: 0
        units:
          type: string
          description: The units used in the forecasts.
          example: ca
        version:
          type: string
          description: The version of Pirate Weather used to generate the forecast.
          example: V2.8
        sourceIDX:
          type: object
          description: The X, Y coordinate and the lat/long coordinate for each model used to generate the forecast. Only returned when version>1.
          properties:
            hrrr:
              type: object
              properties:
                x:
                  type: integer
                  format: int32
                  description: The X coordinate for the HRRR model.
                  example: 1134
                y:
                  type: integer
                  format: int32
                  description: The Y coordinate for the HRRR model.
                  example: 495
                lat:
                  type: number
                  description: The latitude coordinate for the HRRR model.
                  example: 37.31
                long:
                  type: number
                  description: The longitude coordinate for the HRRR model.
                  example: -89.53
            nbm:
              type: object
              properties:
                x:
                  type: integer
                  format: int32
                  description: The X coordinate for the NBM model.
                  example: 1483
                y:
                  type: integer
                  format: int32
                  description: The Y coordinate for the NBM model.
                  example: 651
                lat:
                  type: number
                  description: The latitude coordinate for the NBM model.
                  example: 37.31
                long:
                  type: number
                  description: The longitude coordinate for the NBM model.
                  example: -89.53
            gfs:
              type: object
              properties:
                x:
                  type: integer
                  format: int32
                  description: The X coordinate for the GFS model.
                  example: 1082
                y:
                  type: integer
                  format: int32
                  description: The Y coordinate for the GFS model.
                  example: 509
                lat:
                  type: number
                  description: The latitude coordinate for the GFS model.
                  example: 37.25
                long:
                  type: number
                  description: The longitude coordinate for the GFS model.
                  example: -89.5
            etopo:
              type: object
              properties:
                x:
                  type: integer
                  format: int32
                  description: The X coordinate for the ETOPO model.
                  example: 5429
                y:
                  type: integer
                  format: int32
                  description: The Y coordinate for the ETOPO model.
                  example: 7638
                lat:
                  type: number
                  description: The latitude coordinate for the ETOPO model.
                  example: 37.3
                long:
                  type: number
                  description: The longitude coordinate for the ETOPO model.
                  example: -89.5166
        processTime:
          type: integer
          format: int32
          description: The time taken to process the request in milliseconds. Only returned when version>1.
          example: 12026
        ingestVersion:
          type: string
          description: The ingest version of Pirate Weather used to generate the forecast. Only returned when version>1.
          example: v29
        nearestCity:
          type: string
          description: The name of the closest city to your location. Only returned when version>1.
          example: Cape Girardeau
        nearestCountry:
          type: string
          description: The name of the closest country to your location. Only returned when version>1.
          example: United States
        nearestSubNational:
          type: string
          description: The name of the closest state or province to your location. Only returned when version>1.
          example: Missouri