I have a strong affinity for open data initiatives and open-source projects.
Hence, I found it intriguing to contribute to OpenCellID by sending tower data.
I developed a basic webhook demonstration. It validates GPS tracker data to ensure completeness. Upon verification, it dispatches the data to OpenCellID servers through their API.
All that's required is to insert your OpenCellID API key and start transmitting your tracker data.
{
"triggers": [
{
"filter": {
"payload": "exists(\"position.latitude\") && exists(\"position.longitude\") && exists(\"gsm.mcc\")&& exists(\"gsm.mnc\")&& exists(\"gsm.cellid\")&& exists(\"gsm.lac\")"
},
"topic": "flespi/message/gw/devices/+"
}
],
"enabled": true,
"name": "Contribute to OpenCellID",
"configuration": [
{
"method": "GET",
"type": "custom-server",
"uri": "http://opencellid.org/measure/add?key=YOUR_API_KEY_HERE&lat=%payload['position.latitude']%&lon=%payload['position.longitude']%&mcc=%payload['gsm.mcc']%&mnc=%payload['gsm.mnc']%&lac=%payload['gsm.lac']%&cellid=%payload['gsm.cellid']%"
}
]
}
Just replace "YOUR_API_KEY_HERE" with your OpenCellID API key before importing the webhook settings.
Also you should configure your devices to send gsm.mcc
, gsm.mnc
, gsm.lac
and gsm.cellid
parameters to flespi.