ResponseDefinitions.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * @copyright Copyright (c) 2023 Kate Döen <kate.doeen@nextcloud.com>
  5. *
  6. * @author Kate Döen <kate.doeen@nextcloud.com>
  7. *
  8. * @license GNU AGPL version 3 or any later version
  9. *
  10. * This program is free software: you can redistribute it and/or modify
  11. * it under the terms of the GNU Affero General Public License as
  12. * published by the Free Software Foundation, either version 3 of the
  13. * License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU Affero General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Affero General Public License
  21. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. *
  23. */
  24. namespace OCA\WeatherStatus;
  25. /**
  26. * https://api.met.no/doc/ForecastJSON
  27. * @psalm-type WeatherStatusForecast = array{
  28. * time: string,
  29. * data: array{
  30. * instant: array{
  31. * details: array{
  32. * air_pressure_at_sea_level: float,
  33. * air_temperature: float,
  34. * cloud_area_fraction: float,
  35. * cloud_area_fraction_high: float,
  36. * cloud_area_fraction_low: float,
  37. * cloud_area_fraction_medium: float,
  38. * dew_point_temperature: float,
  39. * fog_area_fraction: float,
  40. * relative_humidity: float,
  41. * ultraviolet_index_clear_sky: float,
  42. * wind_from_direction: float,
  43. * wind_speed: float,
  44. * wind_speed_of_gust: float,
  45. * },
  46. * },
  47. * next_12_hours: array{
  48. * summary: array{
  49. * symbol_code: string,
  50. * },
  51. * details: array{
  52. * probability_of_precipitation: float,
  53. * },
  54. * },
  55. * next_1_hours: array{
  56. * summary: array{
  57. * symbol_code: string,
  58. * },
  59. * details: array{
  60. * precipitation_amount: float,
  61. * precipitation_amount_max: float,
  62. * precipitation_amount_min: float,
  63. * probability_of_precipitation: float,
  64. * probability_of_thunder: float,
  65. * },
  66. * },
  67. * next_6_hours: array{
  68. * summary: array{
  69. * symbol_code: string,
  70. * },
  71. * details: array{
  72. * air_temperature_max: float,
  73. * air_temperature_min: float,
  74. * precipitation_amount: float,
  75. * precipitation_amount_max: float,
  76. * precipitation_amount_min: float,
  77. * probability_of_precipitation: float,
  78. * },
  79. * },
  80. * },
  81. * }
  82. */
  83. class ResponseDefinitions {
  84. }