Open VTS vehicle tracking software logo
TutorialsPricingFree Tools

Industries

Logistics & TransportationEnd-to-end fleet visibility and route optimization
Construction & InfrastructureHeavy equipment monitoring and geofencing
Oil, Gas & Energy OperationsRemote asset tracking across pipeline networks
Mining & Heavy IndustryFleet management for mining operations

 

Agriculture & Agri-Fleet OperationsSmart field and farm vehicle management
Waste Management & Sanitation ServicesRoute and collection fleet optimization
School & Institutional TransportationStudent safety and bus fleet tracking
Security Patrol & Response FleetsReal-time patrol monitoring and dispatch

 

Electric Vehicle Fleet OperationsEV fleet range and charge management
Banking & Cash-in-Transit OperationsSecure transit and armored vehicle tracking
Insurance Telematics & Field InvestigationDriver behavior and claims fleet tracking
Field Service & Mobile WorkforceTechnician dispatch and workforce routing

Learn

BlogGuides & E-booksCustomer Stories

Product

Product TourSupported Devices

Help

DocumentationContent Library

Developers

API Reference

Contact

Contact Us

Company

Our StoryCareers

Ecosystem

Partner ProgramAffiliate Program
Download Now
PricingFree Tools
Logistics & TransportationConstruction & InfrastructureOil, Gas & EnergyMining & Heavy IndustryAgriculture & Agri-FleetWaste Management & SanitationSchool & Institutional TransportSecurity Patrol & ResponseElectric Vehicle FleetsBanking & Cash-in-TransitInsurance & TelematicsField Service & Mobile Workforce

Learn

BlogGuides & E-booksCustomer Stories

Product

Product TourSupported Devices

Help

DocumentationContent Library

Developers

API Reference

Contact

Contact Us

Company

Our StoryCareers

Ecosystem

Partner ProgramAffiliate Program
Download Now
All Docs

Getting Started

Installation

  • System Requirements
  • Install on Linux
  • Install with Docker

Quick Start

  • First Login & Setup

Platform Guides

Tracking

  • Real-Time Tracking
  • Route History & Playback
  • Product Overview
  • Dashboard
  • Maps & Live Tracking
  • Vehicle Management
  • Driver Management
  • User Management
  • Computed Sensors
  • Route Optimization
  • Support Tickets
  • Troubleshooting Guide
  • Roles & Permissions

Geofencing

  • Geofence Setup
  • Landmarks — Geofences, POI & Routes

Alerts & Notifications

  • Alert Configuration
  • Alerts & Notification Configuration

Configuration

Server

  • Server Configuration
  • Platform Settings & Administration

Database

  • Database Setup

Integrations

Devices

  • Device Protocols

REST API

  • REST API Overview
  1. Home
  2. Resources
  3. Documentation
  4. Platform Guides
  5. Computed Sensors

Computed Sensors

Define custom telemetry calculations using JavaScript expressions with a live testing playground.

Last updated April 17, 2026

The Sensors module enables per-vehicle computed metrics. Each sensor runs a JavaScript expression against raw telemetry attributes from the GPS device, producing a derived value (fuel level, temperature, battery voltage, etc.).

Creating a Sensor#

  1. Navigate to Vehicles > select a vehicle > Sensors tab
  2. Click Add New Sensor
  3. Enter Name (e.g., "Fuel Level") and Unit (e.g., "liters")
  4. Select an Icon from the gallery
  5. Write a JavaScript expression in the code editor, or choose a pre-built Template
  6. Click Run to test against live telemetry or a sample payload
  7. Review the result in the Preview panel
  8. Click Save

Sensor Fields#

FieldRequiredDescription
NameYesDisplay name
UnitNoMeasurement unit (liters, °C, %, V)
IconNoDisplay icon from searchable gallery
CodeYesJavaScript expression for computation

Playground#

The built-in playground lets you test sensor expressions before saving:

  • Live Telemetry panel — view raw device attributes
  • Insert button — add attribute names directly into code
  • Sample Payload — editable JSON for testing edge cases
  • Run button — execute expression and show result
  • Templates — pre-built formulas for fuel level, temperature, battery voltage

Example Expressions#

javascript
// Fuel level from analog input
var raw = attributes.adc1 || 0;
var fuel = (raw - 100) * 0.5;
Math.max(0, Math.min(fuel, 100));
javascript
// Battery voltage (mV to V)
(attributes.battery || 0) / 1000;

Sensor Status#

StatusMeaningAction
OKExpression computes successfullyNo action needed
ErrorExpression failedCheck attribute names, syntax, and handle missing values with || 0
N/ANo data available yetWait for next device telemetry packet
Tip
Start with a simple expression like 42 to verify the sensor framework works, then build up your actual formula.
PreviousUser ManagementNextRoute Optimization

On this page

  • Creating a Sensor
  • Sensor Fields
  • Playground
  • Example Expressions
  • Sensor Status
Self-HostedFull Data Control
10,000+Vehicles Tracked
50+Countries
99.9%Uptime SLA
Open VTS — Vehicle Tracking Software

Vehicle tracking software built for scale. Own your data, control your fleet, and track without limits with our GPS fleet management platform.

Product

  • Vehicle Tracking Software
  • Vehicle Tracking Application
  • Video Telematics
  • Self-Hosted vs SaaS
  • Free Tools
  • Pricing

Industries

  • Logistics & Transportation
  • Construction & Infrastructure
  • Oil, Gas & Energy
  • Agriculture & Agri-Fleet
  • Mining & Heavy Industry
  • School Transportation
  • Electric Vehicle Fleets

Resources

  • Blog
  • Guides & E-books
  • Documentation
  • API Reference
  • Tutorials
  • Help Center
  • Supported Devices

Company

  • Our Story
  • Careers
  • Contact Us
  • Partner Program
  • Affiliate Program
  • Customer Stories
  • Content Library

© 2026 Open VTS. All rights reserved.

Privacy PolicyRefund PolicyTerms of UseSecuritySitemap