We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Im probably reading this wrong, you use the first daily element to define today
daily
today
owmDaily = owm?.daily != null ? (List)owm.daily : null BigDecimal t_p0 = (owmDaily==null || !owmDaily[0]?.rain ? 0.00 : owmDaily[0].rain.toBigDecimal()) + (owmDaily==null || !owmDaily[0]?.snow ? 0.00 : owmDaily[0].snow.toBigDecimal()) myUpdData('rainToday', (Math.round((myGetData(sRMETR) == 'in' ? t_p0 * 0.03937008 : t_p0) * mult_r) / mult_r).toString())
But it appears that the first element is actually tomorrow (for posterity, this was written on Sat Feb 19th)
"daily": [ { "dt": 1645336800, "sunrise": 1645318743, "sunset": 1645357667, "moonrise": 1645371900, "moonset": 1645325640, "moon_phase": 0.62,
where dt: 1645336800 is Sunday, February 20, 2022 https://www.epochconverter.com/ I suck with date math, so I could very well be wrong here
dt: 1645336800
Sunday, February 20, 2022
request URL
https://api.openweathermap.org/data/2.5/onecall?lat=19.8968&lon=155.5828&exclude=minutely,hourly&mode=json&units=imperial&appid=API_KEY
The text was updated successfully, but these errors were encountered:
more info
current has todays timestamp
"current": { "dt": 1645295216,
dt": 1645295216 is Saturday, February 19, 2022
dt": 1645295216
Saturday, February 19, 2022
Sorry, something went wrong.
Digging into this more, it looks like that timestamp is the time of end-of-day so it is in fact today
end-of-day
No branches or pull requests
Im probably reading this wrong, you use the first
daily
element to definetoday
But it appears that the first element is actually tomorrow (for posterity, this was written on Sat Feb 19th)
where
dt: 1645336800
isSunday, February 20, 2022
https://www.epochconverter.com/I suck with date math, so I could very well be wrong here
request URL
The text was updated successfully, but these errors were encountered: