|
1 | 1 | # Omsi2Komsi |
2 | 2 |
|
3 | | -Omsi2Komsi is a collection of tools for the "OMSI 2" bus simulator, written in Rust. |
| 3 | +[English version](README.en.md) |
4 | 4 |
|
5 | | -## Projects |
| 5 | +Omsi2Komsi ist eine Sammlung von Werkzeugen für den Bussimulator "OMSI 2", geschrieben in Rust. |
6 | 6 |
|
7 | | -### Omsi2Komsi (Main Plugin) |
| 7 | +## Omsi2Komsi (Haupt-Plugin) |
| 8 | +Omsi2Komsi ist eine Plugin-DLL, die Informationen (Geschwindigkeit, Lampen usw.) aus OMSI 2 liest und über eine serielle Schnittstelle (USB) mit dem KOMSI-Protokoll sendet. |
| 9 | +Infos zum Komso-Protokoll gibt es hier: https://github.com/thatzok/Komsi-Protocol |
| 10 | +Ein am USB-Anschluss angeschlossener Arduino/ESP32 oder ein ähnliches Gerät kann diese Nachrichten dann lesen und die Daten auf einem physischen Bus-Dashboard anzeigen (z. B. Geschwindigkeit auf einem Tachometer, Lampenbeleuchtung usw.). |
8 | 11 |
|
9 | | -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](https://github.com/thatzok/Komsi-Protocol). |
| 12 | +### Verwendung |
10 | 13 |
|
11 | | -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.). |
| 14 | +1. Kopiere sowohl `omsi2komsi.dll` als auch `omsi2komsi.opl` in das Verzeichnis "`plugins`" von OMSI 2. |
| 15 | +2. Bearbeite die Datei `omsi2komsi.opl` und ändern den `portname` auf den Anschluss, an dem der Arduino/ESP32 angeschlossen ist. |
| 16 | +3. Starte OMSI 2. |
| 17 | +4. Standardmäßig drücke **F10**, um die Sichtbarkeit des Logger-Fensters umzuschalten und Diagnosemeldungen anzuzeigen. |
12 | 18 |
|
13 | | -#### Usage |
| 19 | +Die Konfiguration erfolgt über die Datei omsi2komsi.opl, die sich auch im Pluginverzeichnis "plugins" von OMSI 2 befinden muss. |
| 20 | +Aus der mitgelieferten Beispiel-Konfiguration sollten die Konfigurationsmöglichkeiten ersichtlich sein. |
| 21 | +Zum Debugging und Fehler suchen kann man das Programm auch ohne serielle Schnittstelle (serialportenabled = false) starten. |
14 | 22 |
|
15 | | -1. Copy both `omsi2komsi.dll` and `omsi2komsi.opl` into the `plugins` directory of OMSI 2. |
16 | | -2. Edit the `omsi2komsi.opl` file and change the `portname` to the one where your Arduino/ESP32 is connected. |
17 | | -3. Start OMSI 2. |
18 | | -4. By default, press **F10** to toggle the logger window visibility. |
19 | 23 |
|
20 | | -The configuration is done via the `omsi2komsi.opl` file, which must be located in the same directory as the DLL. |
| 24 | +## OmsiLogger (Diagnosewerkzeug) |
21 | 25 |
|
| 26 | +OmsiLogger ist ein Diagnosewerkzeug, das Echtzeitwerte von OMSI 2-Variablen in einem Overlay-Fenster anzeigt und in eine Datei protokolliert. |
| 27 | +Es kann dazu dienen herauszufinden, welche OMSI 2 Variablen überhaupt bei bestimmten Bussen eine Funktion haben um diese dann später in der omsi2komsi.opl-Konfiguration zu verwenden. |
| 28 | +Es können bis zu 100 Variablen in die [varlist] eingetragen werden. Werden mehr eingetragen, werden diese ignoriert. |
22 | 29 |
|
23 | | -### OmsiLogger |
| 30 | +### Verwendung |
24 | 31 |
|
25 | | -OmsiLogger is a diagnostic tool that displays real-time values of OMSI 2 variables in an overlay window and logs them to a file. |
| 32 | +1. Kopiere `omsilogger.dll` und `omsilogger.opl` in das Verzeichnis "plugins" von OMSI 2. |
| 33 | +2. Bearbeite die Datei omsilogger.opl und trage da die OMSI 2 Variablen ein, die geprüft werden sollen. |
| 34 | +3. Starte OMSI 2. |
| 35 | +4. Standardmäßig drücke **F10**, um die Sichtbarkeit des Logger-Fensters umzuschalten und Diagnosemeldungen anzuzeigen. |
| 36 | +5. Wenn sich Variablenwerte ändern werden diese auch in eine Datei namens omsilogger_JJJJ-MM-TT.txt im OMSI 2-Verzeichnis protokolliert. |
26 | 37 |
|
27 | | -#### Usage |
| 38 | +Die Konfiguration erfolgt über die Datei omsilogger.opl, die sich auch im Pluginverzeichnis "plugins" von OMSI 2 befinden muss. |
| 39 | +Aus der mitgelieferten Beispiel-Konfiguration sollten die Konfigurationsmöglichkeiten ersichtlich sein. |
28 | 40 |
|
29 | | -1. Copy `omsilogger.dll` (compiled from the example) and `omsilogger.opl` into the `plugins` directory. |
30 | | -2. Start OMSI 2. |
31 | | -3. By default, press **F10** to toggle the logger window visibility. |
32 | | -4. It will log the changed values defined in `omsilogger.opl` to a file named `omsilogger_YYYY-MM-DD.txt` in the OMSI 2 directory. |
| 41 | +Omsi2Komsi und OmsiLogger sollten nicht gleichzeitig im Pluginverzeichnis "plugins" von OMSI 2 installiert sein. |
33 | 42 |
|
34 | | -The configuration file `omsilogger.opl` allows you to define the variables to monitor and the hotkey: |
35 | 43 |
|
| 44 | +**Viel Spaß!** |
36 | 45 |
|
37 | 46 |
|
38 | | -Have fun! |
39 | | - |
40 | | - |
41 | | - |
42 | | -## License |
43 | | - |
44 | | -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. |
45 | | - |
46 | | -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](LICENSE) for more details. |
47 | | - |
48 | | -You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 47 | +## Lizenz |
49 | 48 |
|
| 49 | +Dieses Programm ist freie Software: Sie können es unter den Bedingungen der GNU General Public License, wie von der Free Software Foundation veröffentlicht, entweder gemäß Version 3 der Lizenz oder (nach Ihrer Option) jeder späteren Version weitergeben und/oder modifizieren. |
| 50 | +Dieses Programm wird in der Hoffnung verteilt, dass es nützlich sein wird, aber OHNE JEDE GEWÄHRLEISTUNG; sogar ohne die implizite Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. Siehe die GNU General Public License für weitere Details. |
| 51 | +Sie sollten eine Kopie der GNU General Public License zusammen mit diesem Programm erhalten haben. Wenn nicht, siehe <https://www.gnu.org/licenses/>. |
0 commit comments