Trafficweb Manager
About
A Go service that integrates Trafficweb API data with the IoTOpen platform. It synchronizes traffic detection data by creating corresponding devices and functions in IoTOpen.
- Automatically syncs traffic detector data from Trafficweb to IoTOpen periodically
- Creates and manages devices and functions in IoTOpen for each Trafficweb detector
- Creates functions for each type of vehicle type detected
Default sync interval is 1h but can be changed by setting sync_interval
in the config.
Data representation
A installation in IoTOpen represents a group
in Trafficweb A device in IoTOpen represents a detector
in Trafficweb A function in IoTOpen is based on information from detections
from Trafficweb
Functions
Data from each detection will be split and published on several functions, counter of each vehicle type and information regarding the detection. The different function can be linked together by detection_id
in the value or message field.
Functions created
Functions for each type of vehicle that can be detected will be created. Function value represents how many of that vehicle type was detected during that specific detection
There will also be functions created for detection_id,velocity, bearing and lane number.
Installation settings
Installations need to be manually setup up in IoTOpen for each trafficweb group that should be monitored. Set metadata trafficweb.group_id
on installation to corresponding trafficweb group_id
to make it possible for the manager to detect the installation and create devices and functions.