Omsi2Komsi is a collection of tools for the "OMSI 2" bus simulator, written in Rust.
Omsi2Komsi is a plugin DLL that reads information (speed, lamps, etc.) from OMSI 2 and sends it to a serial port (USB) using the KOMSI protocol.
An Arduino/ESP32 or similar device connected to the USB port can then read these messages and display the data on a physical bus dashboard (e.g., speed on a speedometer, lamp lighting, etc.).
- Copy both
omsi2komsi.dllandomsi2komsi.oplinto thepluginsdirectory of OMSI 2. - Edit the
omsi2komsi.oplfile and change theportnameto the one where your Arduino/ESP32 is connected. - Start OMSI 2.
- By default, press F10 to toggle the logger window visibility.
The configuration is done via the omsi2komsi.opl file, which must be located in the same directory as the DLL.
OmsiLogger is a diagnostic tool that displays real-time values of OMSI 2 variables in an overlay window and logs them to a file.
- Copy
omsilogger.dll(compiled from the example) andomsilogger.oplinto thepluginsdirectory. - Start OMSI 2.
- By default, press F10 to toggle the logger window visibility.
- It will log the changed values defined in
omsilogger.oplto a file namedomsilogger_YYYY-MM-DD.txtin the OMSI 2 directory.
The configuration file omsilogger.opl allows you to define the variables to monitor and the hotkey:
Have fun!
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.