Die Klasse unseres Sohnes nimmt momentan am Step-Fit Wettbewerb Teil. Die Schüler bekommen Fitness-Armbänder die Schritte zählen, damit sammelt jeder Schritte für die Klasse.
Was allerdings Schade ist, ist der Umstand dass man immer nur die Schritte der gesamten Klasse sieht, aber nicht wieviele Schritte man selbst gesammelt hat. Natürlich geht es hier darum, als Gemeinschaft zusammen zu arbeiten, und nicht sich zu vergleichen. Da das Band nach Ende des Wettbewerbs weiterbenutzt werden kann würde sich aber grade hier ein Mehrwert ergeben wenn man seine täglichen Schritte sehen könnte. Dafür ist dieses Program gedacht.
Zum Upload der Schritte wird ein Java-Program Schritte auslesen.jnlp benutzt. Dieses legt glücklichweise eine Log-Datei namens step_synchronizer.log an, in der die übertragenen Daten enthalten sind. Das Program liest die Datei, extrahiert die Daten und stellt sie aufbereitet dar.
Ich habe das Projekt vor allem als Aufhänger benutzt, um Rust und die Rust-GUI Druid zu lernen. Ich freue mich über jede(n) Anregung, Kommentar, Kritik, Wunsch oder Fork. Eine graphische Darstellung der Daten wäre natürlich nett, ich bin mir aber nicht sicher ob das mit Druid so ohne weiteres möglich ist. Was ich in Zukunft noch implementieren möchte ist ein Export der aufbereiteten Daten (z.B. in CSV), damit sie zumindest einfacher visualisiert werden können. Ansonsten ist bisher nichts weiteres geplant.
This program is aimed at users of the fitness trackers used in the school competiton Step-Fit. This competition is currently run in german elementary schools, I do not know if it also exists in other countries. In this competition, the kids collect steps as a class. Unfortunately (or maybe by design), one can only see the steps that the entire class collected so far, but not the individual contribution. This program solves this issue.
The log-file generated by the program that uploads the steps is used to extract the individual steps. The program reads the file, extracts the data and prints it out in a readable format.
I mainly used this project as a way to learn more about Rust and the Rust-GUI Druid. I am glad about every kind of comment, critic, stimulation or fork. I do not know if a graphic representation of the data, which would be nice, is possible with druid. I will probably implement some data export (to CSV), so the data can be visualized by other programs. Other then that, nothing more is planned so far.