cfigari Lo intente con .0.Phase y sigue sin leerlo.
Esta es otra Api de OpenWeather y me da el prnostico. ¿Como seria la ruta en este caso? Intenté @database.lunas.daily.moon_phase y no pasa nada. tambien coloqué el 0 antes del campo y nada. En este json es evidente que hay varios objetos pero no sé como indicar la ruta para cada fase lunar del día.
{
"lat": 33.44,
"lon": -94.04,
"timezone": "America/Chicago",
"timezone_offset": -18000,
"current": {
"dt": 1649431072,
"sunrise": 1649418862,
"sunset": 1649464870,
"temp": 285.77,
"feels_like": 284.03,
"pressure": 1019,
"humidity": 36,
"dew_point": 271.34,
"uvi": 2.43,
"clouds": 0,
"visibility": 10000,
"wind_speed": 9.39,
"wind_deg": 265,
"wind_gust": 16.99,
"weather": [{
"id": 800,
"main": "Clear",
"description": "clear sky",
"icon": "01d"
}]
},
"daily": [{
"dt": 1649440800,
"sunrise": 1649418862,
"sunset": 1649464870,
"moonrise": 1649436420,
"moonset": 1649401320,
"moon_phase": 0.23,
"temp": {
"day": 286.14,
"min": 279.63,
"max": 287.9,
"night": 279.63,
"eve": 285.14,
"morn": 281.46
},
"feels_like": {
"day": 284.49,
"night": 278.12,
"eve": 283.73,
"morn": 279.25
},
"pressure": 1020,
"humidity": 38,
"dew_point": 272.28,
"wind_speed": 7.81,
"wind_deg": 297,
"wind_gust": 13.4,
"weather": [{
"id": 800,
"main": "Clear",
"description": "clear sky",
"icon": "01d"
}],
"clouds": 1,
"pop": 0,
"uvi": 6.25
}, {
"dt": 1649527200,
"sunrise": 1649505185,
"sunset": 1649551314,
"moonrise": 1649526120,
"moonset": 1649490600,
"moon_phase": 0.25,
"temp": {
"day": 292.01,
"min": 276.78,
"max": 294.79,
"night": 287,
"eve": 291.25,
"morn": 276.78
},
"feels_like": {
"day": 290.94,
"night": 286.53,
"eve": 290.87,
"morn": 274.3
},
"pressure": 1018,
"humidity": 38,
"dew_point": 277.48,
"wind_speed": 4.82,
"wind_deg": 220,
"wind_gust": 13.21,
"weather": [{
"id": 800,
"main": "Clear",
"description": "clear sky",
"icon": "01d"
}],
"clouds": 0,
"pop": 0,
"uvi": 8.13
}, {
"dt": 1649613600,
"sunrise": 1649591508,
"sunset": 1649637758,
"moonrise": 1649616000,
"moonset": 1649579640,
"moon_phase": 0.29,
"temp": {
"day": 296.75,
"min": 286.67,
"max": 298.97,
"night": 292.37,
"eve": 295.12,
"morn": 286.67
},
"feels_like": {
"day": 296.65,
"night": 292.41,
"eve": 295.25,
"morn": 286.22
},
"pressure": 1010,
"humidity": 57,
"dew_point": 287.72,
"wind_speed": 8.51,
"wind_deg": 181,
"wind_gust": 18.2,
"weather": [{
"id": 500,
"main": "Rain",
"description": "light rain",
"icon": "10d"
}],
"clouds": 81,
"pop": 0.24,
"rain": 0.34,
"uvi": 6
}, {
"dt": 1649700000,
"sunrise": 1649677832,
"sunset": 1649724202,
"moonrise": 1649706000,
"moonset": 1649668320,
"moon_phase": 0.33,
"temp": {
"day": 293.5,
"min": 291.64,
"max": 295.45,
"night": 292.31,
"eve": 294.46,
"morn": 291.64
},
"feels_like": {
"day": 294.05,
"night": 292.79,
"eve": 295.07,
"morn": 291.95
},
"pressure": 1012,
"humidity": 94,
"dew_point": 292.45,
"wind_speed": 7.82,
"wind_deg": 183,
"wind_gust": 16.53,
"weather": [{
"id": 500,
"main": "Rain",
"description": "light rain",
"icon": "10d"
}],
"clouds": 100,
"pop": 1,
"rain": 6.4,
"uvi": 5.34
}, {
"dt": 1649786400,
"sunrise": 1649764157,
"sunset": 1649810646,
"moonrise": 1649796060,
"moonset": 1649756820,
"moon_phase": 0.36,
"temp": {
"day": 298.89,
"min": 291.18,
"max": 298.89,
"night": 291.18,
"eve": 291.63,
"morn": 292.72
},
"feels_like": {
"day": 299.19,
"night": 291.55,
"eve": 292.07,
"morn": 293.21
},
"pressure": 1011,
"humidity": 64,
"dew_point": 291.74,
"wind_speed": 7.97,
"wind_deg": 182,
"wind_gust": 15.19,
"weather": [{
"id": 501,
"main": "Rain",
"description": "moderate rain",
"icon": "10d"
}],
"clouds": 100,
"pop": 1,
"rain": 17.94,
"uvi": 6
}, {
"dt": 1649872800,
"sunrise": 1649850482,
"sunset": 1649897090,
"moonrise": 1649886180,
"moonset": 1649845140,
"moon_phase": 0.39,
"temp": {
"day": 298.24,
"min": 289.53,
"max": 300.75,
"night": 289.53,
"eve": 296.48,
"morn": 290.12
},
"feels_like": {
"day": 298.79,
"night": 289.42,
"eve": 296.91,
"morn": 290.33
},
"pressure": 1009,
"humidity": 76,
"dew_point": 293.81,
"wind_speed": 7.83,
"wind_deg": 168,
"wind_gust": 16.36,
"weather": [{
"id": 502,
"main": "Rain",
"description": "heavy intensity rain",
"icon": "10d"
}],
"clouds": 63,
"pop": 1,
"rain": 34.14,
"uvi": 6
}, {
"dt": 1649959200,
"sunrise": 1649936807,
"sunset": 1649983535,
"moonrise": 1649976360,
"moonset": 1649933280,
"moon_phase": 0.42,
"temp": {
"day": 293.81,
"min": 283.08,
"max": 296.41,
"night": 291.65,
"eve": 294.02,
"morn": 283.08
},
"feels_like": {
"day": 293.29,
"night": 291.8,
"eve": 294.2,
"morn": 280.57
},
"pressure": 1020,
"humidity": 52,
"dew_point": 283.61,
"wind_speed": 6.33,
"wind_deg": 84,
"wind_gust": 15.44,
"weather": [{
"id": 801,
"main": "Clouds",
"description": "few clouds",
"icon": "02d"
}],
"clouds": 21,
"pop": 0.52,
"uvi": 6
}, {
"dt": 1650045600,
"sunrise": 1650023134,
"sunset": 1650069980,
"moonrise": 1650066660,
"moonset": 1650021420,
"moon_phase": 0.46,
"temp": {
"day": 299.56,
"min": 290.66,
"max": 301.82,
"night": 295.17,
"eve": 298.92,
"morn": 292.45
},
"feels_like": {
"day": 299.56,
"night": 295.73,
"eve": 299.56,
"morn": 292.99
},
"pressure": 1014,
"humidity": 72,
"dew_point": 294.15,
"wind_speed": 5.78,
"wind_deg": 208,
"wind_gust": 13.86,
"weather": [{
"id": 501,
"main": "Rain",
"description": "moderate rain",
"icon": "10d"
}],
"clouds": 92,
"pop": 1,
"rain": 14.67,
"uvi": 6
}],
"alerts": [{
"sender_name": "NWS Shreveport (Shreveport)",
"event": "Red Flag Warning",
"start": 1649419200,
"end": 1649462400,
"description": "...A Red Flag Warning is now in Effect for the Entire ArkLaTex...\n...RED FLAG WARNING IN EFFECT FROM 7 AM THIS MORNING TO 7 PM CDT\nTHIS EVENING FOR STRONG WINDS AND LOW HUMIDITY VALUES FOR ALL OF\nTHE ARKLATEX...\nThe National Weather Service in Shreveport has issued a Red Flag\nWarning, which is in effect from 7 AM this morning to 7 PM CDT\nthis evening.\n* AFFECTED AREA...The Entire ArkLatex.\n* WIND...Wind Speed Values Will Approach 25 MPH at times.\n* HUMIDITY...Relative Humidity Values will fall into the upper\nteens to lower 20s today.\n* IMPACTS...any fires that develop will likely spread rapidly.\nOutdoor burning is not recommended.",
"tags": []
}, {
"sender_name": "NWS Shreveport (Shreveport)",
"event": "Wind Advisory",
"start": 1649430660,
"end": 1649462400,
"description": "...WIND ADVISORY REMAINS IN EFFECT UNTIL 7 PM CDT THIS EVENING...\n* WHAT...Northwest winds near 20 mph with gusts up to 35 mph\nexpected.\n* WHERE...Portions of north central and northwest Louisiana,\nsoutheast Oklahoma, south central and southwest Arkansas and\neast and northeast Texas.\n* WHEN...From 10 AM this morning to 7 PM CDT this evening.\n* IMPACTS...Strong winds and rough waves on area lakes will\ncreate hazardous conditions for small craft.",
"tags": ["Wind"]
}]
}