Scripting in Practice: Custom Device Logic for Real Fleet Needs
Every fleet works differently. Vehicles, cargo, and daily routines all differ, and so do the rules each fleet needs its devices to follow. Standard device configurations handle most of these needs, but sooner or later almost every project runs into something they don’t cover: a specific alert, an extra safety check, or a piece of data the platform doesn’t show yet.
Ruptela Scripting Solution lets you define custom logic for requirements like these and run it directly on the device.
Premium customization is available even on basic segment devices. The use cases presented here can be implemented with Eco5 and Eco5 Lite, as well as Smart5, Pro5 Lite, and HCV5 Lite, while scripting is supported across a broader range of Ruptela devices.
How different industries use scripting
Goods transport and logistics
Challenge: In a cold chain van, cargo temperature must stay in range even when the door is opened during deliveries.
Script: An alert is triggered when the average of two temperature sensors stays above 8 °C for 10 minutes while the cargo door is open. The minutes spent out of range are reported as a custom I/O value.
Result: Temperature issues are flagged during the delivery, with the time out of range on record.
Driver fatigue reminder
Challenge: Long stretches of driving without breaks increase the risk of fatigue.
Script: After 4 hours of continuous driving without a 15-minute stop, the buzzer activates, and a fatigue event is recorded.
Result: Drivers get a timely reminder, and each fatigue event is recorded.
Two-step driver authorization
Challenge: Opening the vehicle and starting the engine had to be authorized separately.
Script: The setup uses two RFID readers and two relays. The first card unlocks the door, and a second card on the second reader is required to start the engine. The door relay switches off after 5 seconds, so the first card alone cannot start the engine.
Result: The engine cannot be started without the second card.
Safe engine blocking
Challenge: Cutting off a moving vehicle abruptly is a safety risk. Standard speed-based activation and the immobilizer command cannot add the 10-second condition.
Script: The engine is blocked only after speed stays at or below 20 km/h for 10 continuous seconds.
Result: A moving vehicle is never cut off abruptly.

Industrial and agricultural machinery
Fast stop detection for indoor electric forklifts
Challenge: The standard movement sensor takes about 60 seconds to reset after a stop. Forklifts make short moves inside buildings where the GPS signal is weak, so the client needed stops detected within about 5 seconds.
Script: The script applies its own stop-detection logic, recognizing a stop within about 5 seconds.
Result: Accurate activity data for short indoor moves.
Speed control for agricultural spraying
Challenge: Chemicals are applied evenly only when the sprayer moves at 6 to 10 km/h.
Script: An alert is triggered when the sprayer is on and the speed stays outside this range for more than 20 seconds.
Result: Uneven application is flagged within seconds.
Engine shutdown after excessive idling
Challenge: Machinery was regularly left idling for too long.
Script: The engine switches off automatically after a set idle time.
Result: Less unnecessary idling, without relying on the operator.

Passenger transport and corporate fleets
Child check on school buses
Challenge: Every route must end with a check that no child is left on board.
Script: After the ignition is switched off, the driver must press a button at the rear of the bus within 2 minutes. If the button is not pressed, the buzzer sounds and authorized personnel receive an SMS.
Result: The end-of-route check becomes a fixed step that cannot be skipped unnoticed.
Speeding rules during working hours only
Challenge: The client needed speeding control only during working hours.
Script: Speeding alerts and the in-cab buzzer are active from 08:00 to 18:00. Outside these hours, no violations are recorded.
Result: Speeding reports cover working time only, and drivers receive no alerts outside working hours.
Driver registration mode as a new I/O parameter
Challenge: Driver registration mode defines how the device handles driver identification: iButton, RFID card, magnetic card, or BLE beacon. The client wanted the platform to show which mode each vehicle is running, for example, after the mode was changed remotely. The firmware has no I/O parameter for this, which would normally mean a feature request.
Script: The script queries the device’s own configuration, reads the mode value from the reply, and publishes it as a custom I/O parameter.
Result: The mode reaches the platform like any other data, with no firmware change.
Making device logic fit the operation
Each of these cases started with one specific requirement and became working device logic, without hardware changes or new firmware. Teams with programming knowledge can write scripts themselves, while Virtual Engineer, Ruptela’s AI assistant, can turn a plain-language requirement into a ready-to-deploy script.
Technical details are available at doc.ruptela.com. To discuss a specific requirement, contact the Ruptela team.