Mobile pollution sensor

Hello

Ive an idea for a mobile pollution sensor with GPS that I can use on my bike but the bit I’m struggling with is getting that data into my HA and here’s where i was hoping others could maybe help.

The plan would be to use VINDRIKTNING Air quality sensor - IKEA as it’s cheap as, small and easy to hack with. Ill add a wemos with GPS and use a hotspot on my phone. Where it all comes unstuck is the data from the pm2.5 and GPS. What’s the best way to sync the data so it can be pushed into HA? Is that even possible?

Appreciate any pointers here, thanks

I don’t think getting the data in is the problem.
It could be two separate sensors.
The issue is to display it in my opinion.

I know I have seen some lightning tracking, perhaps that is something that could be used for this also.
Create some device trackers with names as the recorded time and value and display it on the map.

But how would one get that data in? currently the sensors all connect to the same wifi network where the API is but via a mobile hotspot, that wont happen and sure I could maybe add some kind of VPN → but that’s clunky.

Is there a way to maybe store it in a queue on the device (say SD card) and then when it connects to the wifi, a sync happens?

Yes it would require a VPN or something like it.
Another solution is to not use Home Assistant and just an arduino and have it record to a csv file in a SD card as you say.
This is a very niche thing and not really in the scope of Home Assistant as I see it.

1 Like

It is niche, but one I hope to try and solve :wink: thanks for the pointers

As it’s tricky (read impossible) to push “offline” readings in HA after the fact, I would suggest to use influxdb as a “buffer”, where you can push your recordings.
Thereafter, it’s quite easy to re-read them from influxdb into HA if necessary.

this! thank you, that has created a flood of ideas.