Trndi is a desktop app that shows the your blood sugar. It works with Night Scout and Dexcom Share. It also supports the xDrip app, connecting over the local network/WiFi.
- Trndi runs natively on your computer, without needing any dependencies on Windows and macOS. (Linux might need packages OpenSSL to be installed). BSD and other systems too.
- Trndi supports multiple languages
- Trndi runs on your Raspberry Pi and other arm computers
- Trndi works on touch-screen devices
Trndi runs on most processors: x86, x64, Apple Sillicon, ARM, Unoficcialy: Sparc, PowerPC.
- Trndi supports modern JavaScript extensions, built-in on most processors.
- Got more than one diabetic? Trndi supports parallel users. See this guide
Hold the reading (or "Setup" text) and choose settings to access settings.
- For NightScout, settings will be fetched from your server and auto-applied
- For Dexcom, see the Dexcom setup guide. The backend does not support all features, but this can be fixed with some manual work.
- For xDrip, you need to turn on the local web server and use that IP/password
- For other backends, feel free to contribute a api driver. See API Drivers
Development tools can be obtained via most distros package managers:
- Fedora/RHEL:
dnf install lazarus
- Ubuntu/Debian:
apt install lazarus
- FreeBSD:
pkg install editors/lazarus
Use the Laarus IDE to build and/or develop the app, set release target in the Project Options.
Build development:
lazbuild Trndi.lpi
Build release:
lazbuild -dRelease Trndi.lpi
Build to a release folder
lazbuild -B output_directory Trndi.lpi
The JS engine, QuickJS, is linked into Trndi.
You need the relevant library files, placed in ../static.
You can get the recommended libraries from https://synopse.info/files/mormot2static.7z - you may remove libraries you don't need! Due to mormot2, the support library Trndi uses, it may currently not be possible to run extensions under ARM64 computers.
Trndi uses JEDI to format code, in Lazarus: Source > JEDI Code Format > Global Settings. Choose JCFSettings.xml
Units should end with .pp
,
Should you choose not to use Lazarus IDE, these are the recommendations for Visual Studio Code:
-
Language Support: https://marketplace.visualstudio.com/items?itemName=alefragnani.pascal
-
Formatting: Name: Pascal Formatter VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=alefragnani.pascal-formatter
-
Debugging: https://marketplace.visualstudio.com/items?itemName=CNOC.fpdebug
Trndi2 is a rewrite, less bloated, version of Trndi 1, which was never released publically. Trndi 1 was originally called Dexmon (and only did Dexcom). The original idea spawns from an old app called TrayTrend which I made with a similar purpose.
Trndi is actively tested on Windows (amd64), Fedora Linux(amd64), Debian Linux(arm64 / Raspberry pi).