Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

current.is_day indicates "no" at 10 AM local #8

Open
evohnave opened this issue Oct 8, 2020 · 0 comments
Open

current.is_day indicates "no" at 10 AM local #8

evohnave opened this issue Oct 8, 2020 · 0 comments

Comments

@evohnave
Copy link

evohnave commented Oct 8, 2020

Was wondering why the weather icon was https://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0008_clear_sky_night.png at 10 AM local (2PM UTC) and noticed current.is_day was "no"

Here's the api call I made (minus my access key):
http://api.weatherstack.com/current?access_key=&query=Arlington,%20Virginia&units=f

And the response:

{
"request": {
"type": "City",
"query": "Arlington, United States of America",
"language": "en",
"unit": "f"
},
"location": {
"name": "Arlington",
"country": "United States of America",
"region": "Virginia",
"lat": "38.890",
"lon": "-77.084",
"timezone_id": "America/New_York",
"localtime": "2020-10-08 10:02",
"localtime_epoch": 1602151320,
"utc_offset": "-4.0"
},
"current": {
"observation_time": "02:02 PM",
"temperature": 64,
"weather_code": 113,
"weather_icons": [
"https://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0008_clear_sky_night.png"
],
"weather_descriptions": [
"Clear"
],
"wind_speed": 15,
"wind_degree": 330,
"wind_dir": "NNW",
"pressure": 1019,
"precip": 0,
"humidity": 50,
"cloudcover": 0,
"feelslike": 64,
"uv_index": 1,
"visibility": 10,
"is_day": "no"
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant