Select to view content in your preferred language

Raspberry Pi Data in Dashboard

939
3
04-11-2023 05:31 AM
emmabard
New Contributor

Hello, I am trying to create an ArcGIS Dashboard that shows real time data from a raspberry pi. My first question is, is this possible to do in ArcGIS Online or do I need to do this in Pro? My second question is how to do I get the data from the raspberry pi to ArcGIS in realtime? Thank you in advance! 

0 Kudos
3 Replies
TomGeo
by
Frequent Contributor

Hi, first tings first, I am not sure if it is possible to link your RasPi data to ArcGIS.

Also, I do not know what data from the RasPi you want to show. I would assume that you have to write your data into one or the other database. Since the database can be connected through a data store it should be theoretically possible to do such thing.
On the other hand, there are a couple of dashboards available that you can run on your RasPi…

- We are living in the 21st century.
GIS moved on and nobody needs a format consisting out of at least three files! No, nobody needs shapefiles, not even for the sake of an exchange format. Folks, use GeoPackage to exchange data with other GIS!
0 Kudos
BrianBaldwin
Esri Regular Contributor

Great question @emmabard - what kind of data? Does it have an 'XY' or a geolocation? Or, do you want to 'join' it to an existing location (location of stream gauge sensor, or weather sensor, etc.).

Short answer is for sure - I would take a look at using ArcGIS Online and then scheduling a push/sync/update of your data from the Raspberry Pi via a Python script. The ArcGIS Python API has some great documentation and you could even use one of the ArcGIS Notebooks to schedule the script to run.

There is a blog right here with some older instructions/workflow: https://community.esri.com/t5/k12-instruction-questions/arcgis-api-for-python-on-a-raspberry-pi-happ...

-----------------------------------

Brian Baldwin, Esri Inc., Lead Solution Engineer
https://www.linkedin.com/in/baldwinbrian
jcarlson
MVP Esteemed Contributor

I think @BrianBaldwin  has the right answer here. I'd add, though, that the ArcGIS Python API can be a bit bloated for single-purpose scripts like updating a feature / layer. Odds are you only need a couple of the submodules or dependencies, and the rest will be wasted space.

If you use the requests and json modules, you should be able to do everything you need making POST requests to the feature layer's REST endpoint. We have a couple of lightweight scripts for updating single layers, and they can execute in less time than it takes to import the arcgis module.

- Josh Carlson
Kendall County GIS