Safecast / safecastapi

The app that powers api.safecast.org
44 stars 25 forks source link

Make an airnote-friendly version of the bGeigie Log Viewer #749

Closed matschaffer closed 3 years ago

matschaffer commented 3 years ago

We use bGeigie Log Viewer on pages like https://api.safecast.org/en-US/bgeigie_imports/10758 to show the drive on a map.

We also link off to a version of the map that shows the drive in the context of surrounding data.

We'd like to do something similar for the airnote pages. https://api.safecast.org/en-US/device_stories/140 is an example, though we might make a new page soon.

Ideally we'd like to be able to show the device in the context of larger air devices.

Frangible commented 3 years ago

To be clear the current air data display on the tilemap is not by device but rather by time/location and any query results of device ID are computationally expensive for the DB server and should be considered a legacy feature at this time.

There is no data source for the tilemap to pull from to display individual sensors. This is an entirely different paradigm than what is currently implemented. While it would be possible to move in this direction I think this is probably a misunderstanding of what is currently being shown? If not please elaborate with the use case for this.

matschaffer commented 3 years ago

I'm trying to capture a final point that @rayozzie brought that our airnote customer flow will probably look something like:

Today we don't have any good way to show a given device alongs side the rest of the data.

I was hoping we could do something like https://map.safecast.org/?logids=10758 where you can see the data coming from your own device in the context of the rest of our sensors.

The data is on https://grafana.safecast.cc/d/7wsttvxGk/airnote-device-details?orgId=1&var-device_urn=note:dev:864475041076562 and isn't expensive for a single device on a small (<90 days) timescale.

matschaffer commented 3 years ago

If you don't think our current map is a good fit for the "zoom out to see my device contributing to the world" use case, we could explore other options.

I often look at https://www.iqair.com/air-quality-map as a great example of what might be possible, but I'm sure building that took a lot of work and I don't think any of it is open in a way we could use it.

matschaffer commented 3 years ago

Totally rough, but maybe this helps depict the sort of thing I'm imagining the device owner could land on.

Pasted_Image_2020_12_25_2_46

rayozzie commented 3 years ago

Something like that would be amazing! The reason I like it so much is not just the sexiness, but because (unlike radiation) it really gives you a sense that air is a fluid, and that looking at it is kind-of like the weather report.

matschaffer commented 3 years ago

@nokton @seanbonner @Frangible have we ever reached out to anyone at https://carto.com/ about this sort of thing? Seems like there must be some organization we can rope into giving us really nice mapping tools for free.

No idea if carto is good or not, but it seems to get a lot of hits when I google around the space of building custom geospatial visualizations.

Update: I reached out for a demo anyway, figure can't hurt to have a chat.

nokton commented 3 years ago

Hi Mat,

Not aware we reached out to carto. WE did do some work w ESRI but don’t think we have free access to their tools. @frangible may know more.

Feel free to reach out to carto.com though!

On Dec 25, 2020, at 3:01 PM, Mat Schaffer notifications@github.com wrote:

@nokton https://github.com/nokton @seanbonner https://github.com/seanbonner @Frangible https://github.com/Frangible have we ever reached out to anyone at https://carto.com/ https://carto.com/ about this sort of thing? Seems like there must be some organization we can rope into giving us really nice mapping tools for free.

No idea if carto is good or not, but it seems to get a lot of hits when I google around.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Safecast/safecastapi/issues/749#issuecomment-751180675, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAITQXLHSPXH2WC7YZVPQTTSWQTCXANCNFSM4VGPVZQA.

matschaffer commented 3 years ago

Had a call with Carto, some notes:

matschaffer commented 3 years ago

Noticed https://kepler.gl/ in the UI as well which also looks interesting

matschaffer commented 3 years ago
Safecast_Map

We should be thinking about how to display many sensors as well. Today on the map we don't do any sort of aggregation so the icons just overlap.

This will probably get very messy as we start to have thousands in the field.

nokton commented 3 years ago

As we talked, lets deploy the grafana air-only map by adding it to the data map. We can then reserve the current map as “radiation only”, and only show the radiation “circles” for any sensor that has a radiation sensor on board. AS first step lets get the grafana map going (and can the grafana map, when clicked on a sensor, go to the device story page or grafana device page?)

I can coordinate on getting the menu going, but will need the URL that we should use.

On Apr 14, 2021, at 11:17 AM, Mat Schaffer @.***> wrote:

https://user-images.githubusercontent.com/690/114644659-e57bcc80-9d12-11eb-9a1c-8d4cac313349.png We should be thinking about how to display many sensors as well. Today on the map we don't do any sort of aggregation so the icons just overlap.

This will probably get very messy as we start to have thousands in the field.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Safecast/safecastapi/issues/749#issuecomment-819172095, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAITQXNZB3YZ4RWKURNIRWDTIT3L3ANCNFSM4VGPVZQA.

matschaffer commented 3 years ago

In talking to @jamoross today we're thinking we should drop this in favor of focusing on https://github.com/Safecast/safecastapi/issues/818

The analog to the bGeigie Log Viewer is probably not appropriate for the airnote data.

nokton commented 3 years ago

Lets focus on getting the world air data map going and iterate over time to make it better.

On Jun 2, 2021, at 11:19 AM, Mat Schaffer @.***> wrote:

In talking to @jamoross https://github.com/jamoross today we're thinking we should drop this in favor of focusing on #818 https://github.com/Safecast/safecastapi/issues/818 The analog to the bGeigie Log Viewer is probably not appropriate for the airnote data.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Safecast/safecastapi/issues/749#issuecomment-852660678, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAITQXPNUUMBJNQJSYNEVXTTQWIMBANCNFSM4VGPVZQA.