Campbell Datalogger
Stevens Connect supports two-way communication with Campbell dataloggers. This support allows you to configure your Campbell datalogger to transmit data to Stevens Connect for reporting and analysis, as well as update the station's reporting interval and sensor logging intervals directly from .
Configuring your Campbell Datalogger
In order for your Campbell datalogger to communicate with , you must update the script on your datalogger. Your script must include an HTTP POST to the following destination:
- https://api.stevens-connect.com/incoming/campbell/v1
Next you must ensure that your datalogger script is configured to transmit it's data to in the following format:
Fixed header ( 1st line ):
SUI, Report timestamp, Record number, Latitude, Longitude, Altitude
CR1000_5190,2018-08-21 05:55:30,35428,44.06658,-122.5745,167
Data package ( start from 2nd line ):
Logging timestamp, data 1, data 2, … , data n-1, data n
2018-08-21 05:35:00,35426,12.19,30.91,338,0.1,29.8,67.8,1007,4
Example:
CR1000_5190,2018-08-21 05:45:30,35428,44.06658,-122.5745,167
2018-08-21 05:35:00,35426,12.19,30.91,338,0.1,29.8,67.8,1007,4
2018-08-21 05:40:00,35427,12.18,30.90,338,0.1,29.7,67.8,1004,5
2018-08-21 05:45:00,35428,12.17,30.87,339,0.1,29.7,67.8,1003,3
After receiving a POST from the Campbell logger, will send an HTTP response.
If the POST is successful, will send back the logging and reporting interval along with the record number in the following format:
{
"errors": false,
"data": {
"config": {
"reporting": 3600,
"sensor_logging": 60
},
"record": 35428
}
}
If the POST fails, will send back the following error package:
{
"errors": true,
"message": {
"errors": {
"station": "not found"
}
}
}
Creating a Campbell Station in
Once your Campbell datalogger is configured you can follow the Creating a New Station guide, selecting 'Campbell Logger' as your station type.
Campbell Station Sensor Configuration
After you've created your new station, you're ready to configure your sensors. Navigate to Station Management and select the 'Parameters' option from the side menu. Note that for the Campbell station type, parameters from all physical sensors should be added to the single 'Station Sensor' within . Be sure to mirror your dataloggers configuration based on the corresponding 'Incoming Order' field. Once your datalogger and station sensor is configured you should begin receiving data in . You can update the sensors logging interval at anytime within , and the changes will take affect after the next scheduled reporting interval.