-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support for limiting results #135
Comments
Hi Nils, I think this would indeed be a nice addition to the existing endpoints, and a chance to upgrade our Notes to myself:
|
Hi Jakob, don't hurry. Querying and receiving only the needed information should be easy, maybe there are some values which are mandatory? Or some single values are useless? So just requesting "wind" should deliver all wind related values without requesting all of them separately, querying only "wind_direction" seems currently useless for me... Maybe it makes sense to cluster some values like "get=atmos" might query Which should not replace something like "get=temperature,condition" which will return this two values. Thank you for the quick response |
Hi Jakob, great project! I have a similar issue request to minimize data on the wire & ram: the possibility to query specific dates and times, rather than ranges. For example I am interested only in Currently the only way to get these dates is to either ask a range ( The combined query would return 3 items in |
I am finally getting around to this as part of our new funding round (#138). @derniwi @rscmbbng Maybe you can help me get a better feeling for what this feature should aim at. If the main goal is to reduce the footprint of the response, then it seems consistent to remove everything except the actual values. E.g.:
(Where the ordering of the inner lists matches that of the supplied Would that work for your use cases? Also, do you need the |
Hi Jakob, |
Hi Nils the output is still JSON :) Just that the compressed format is an array and not an object. (If you remove the $ echo '[[-2.9, "clear-night"], [-0.6, "clear-night"]]' | jq .
[
[
-2.9,
"clear-night"
],
[
-0.6,
"clear-night"
]
] |
Hi,
I'm going to test this API i a micro controller. Due to the limited RAM it would be nice to have an additional api call with a limited result set or returning just requested parameters.
As an example
https://api.brightsky.dev/weatherlimited?lat=52&lon=7.6&date=2020-04-21¶ms=timestamp,temperature,condition
should only return
{
"weather": [
{
"timestamp": "2020-04-21T00:00:00+00:00",
"temperature": 10.6,
"condition": "dry"
},
...
]
}
Best egards
Nils
The text was updated successfully, but these errors were encountered: