Open dbaelz opened 7 years ago
Good suggestion! Another place where an resource link could be returned is the image of the box (in the same call).
We're planning to rebuild the sensor definitions soon and will think about including links to these kind of resources!
As you maybe already know, the icon
s are implemented as webfont, which you'll find here. Maybe this will help you short-term.
This would also help me a lot with OpenSenseFish, my SailfishOS app to access the OpenSenseMap.
As an external developer who uses the API it's extremely helpful when the API supplies not only the required information, but also the referenced assets. At the moment the openSenseMap-API reference some standard
osem-*
icons. As far as I can see, there's no way to fetch these resources with the API.It would be convenient if the API provides:
osem-humidity
) as image file like png or jpg. This asset could be provided with an separate API-call as static resource.Example of an expanded sensor data entry (extract from the Get one senseBox call)