Using Colota with GeoPulse
Colota can send location updates to GeoPulse over HTTP using a simple JSON payload. This guide explains how to configure both GeoPulse and your Colota instance.
Step 1: Configure GeoPulse
First, create a new location source in GeoPulse that will receive the data from Colota.
- In your GeoPulse account, navigate to Settings -> Location Sources.
- Click Add New Source and select Colota.
- Enter a unique Username and a strong Password. You will need these credentials for Colota, so save them.
- Click Save to create the source. GeoPulse is now ready to receive data at
/api/colota.
Step 2: Configure Colota
After creating the source in GeoPulse, configure Colota to post to the endpoint below:
-
Set the endpoint URL to:
https://geopulse.yourdomain.com/api/colotaReplace
geopulse.yourdomain.comwith the public URL of your GeoPulse instance. -
Use Basic Authentication with the credentials from Step 1.
-
Use the JSON payload format:
{
"lat": 48.135,
"lon": 11.582,
"acc": 12,
"alt": 519,
"vel": 0,
"batt": 85,
"bs": 2,
"tst": 1704067200,
"bear": 180.5
}Fields:
lat,lon- coordinatesacc- accuracy in metersalt- altitude in metersvel- speed in m/s (GeoPulse converts to km/h internally)batt- battery levelbs- battery statustst- Unix timestamp (seconds)bear- bearing in degrees
-
Save/apply the settings in Colota and send a test update.
Once sent, GeoPulse should start receiving points on the same basis as other HTTP sources.