You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.0 KiB

  1. /*
  2. * Weather index mapping:
  3. * 0: Sol
  4. * 1: Sol entre nuvens
  5. * 2: Chuva
  6. * 3: Chuva forte
  7. * 4: Nuvens
  8. * 5: Céu limpo
  9. *
  10. */
  11. function getWeatherForecast() {
  12. return {
  13. city: "São Jose dos Campos",
  14. state: "SP",
  15. today_forecast: {
  16. date: "18 de Março",
  17. morning_weather_index: 1,
  18. evening_weather_index: 1,
  19. night_weather_index: 4,
  20. rain_probability: 10,
  21. },
  22. next_forecast: [
  23. {
  24. week_day: "Segunda",
  25. date: "19/03",
  26. weather_index: 0,
  27. rain_fall_mm: 0,
  28. },
  29. {
  30. week_day: "Terça",
  31. date: "20/03",
  32. weather_index: 2,
  33. rain_fall_mm: 5,
  34. },
  35. {
  36. week_day: "Quarta",
  37. date: "21/03",
  38. weather_index: 2,
  39. rain_fall_mm: 5,
  40. },
  41. {
  42. week_day: "Quinta",
  43. date: "22/03",
  44. weather_index: 2,
  45. rain_fall_mm: 5,
  46. },
  47. {
  48. week_day: "Sexta",
  49. date: "23/03",
  50. weather_index: 1,
  51. rain_fall_mm: 0,
  52. },
  53. ],
  54. };
  55. }
  56. export default getWeatherForecast;