Skip to content
New issue

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

Data returned is for wrong date #9

Closed
adamhsparks opened this issue Apr 10, 2023 · 1 comment
Closed

Data returned is for wrong date #9

adamhsparks opened this issue Apr 10, 2023 · 1 comment

Comments

@adamhsparks
Copy link
Member

Requesting data for 2023-01-01 returns data for 2022-12-30 to 2022-12-31

weatherOz::get_dpird_summaries(station_id = "ME", first = "20230101", 
    last = "20230101", api_key = keyring::key_get("DPIRD_API"), 
    interval = "daily", which_vars = "all")
#> Requesting daily data from 31 December 2022 to 31 December 2022 for location code ME
#>    station_id                 from                   to year month day
#> 1:         ME 2022-12-30T16:00:00Z 2022-12-31T16:00:00Z 2022    12  31
#>    airtemp_min      airtemp_mintime airtemp_max      airtemp_maxtime
#> 1:        15.2 2022-12-30T19:57:00Z        34.2 2022-12-31T06:34:00Z
#>    airtemp_avg rain wind_height wind_avg_speed wind_max_speed
#> 1:        24.4    0           3          11.85          44.42
#>           wind_max_time wind_max_direction_degrees
#> 1: 2022-12-31T13:43:00Z                        137
#>    wind_max_direction_compasspoint wind_erosion_minutes wind_erosion_starttime
#> 1:                              SE                    6   2022-12-31T13:52:00Z

Created on 2023-04-10 with reprex v2.0.2

@adamhsparks
Copy link
Member Author

Fixed with 1e2ca9c

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

No branches or pull requests

1 participant