Skip to content

slicke/trndi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trndi
CGM Data Viewer
Nightscout - Dexcom - xDrip WiFi

Introduction

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.

What differs Trndi from apps?

Fully native

  • 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

Devices

  • 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.

Extensions

  • Trndi supports modern JavaScript extensions, built-in on most processors.

Multi-user support

  • Got more than one diabetic? Trndi supports parallel users. See this guide

Setup

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

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

Building

GUI

Use the Laarus IDE to build and/or develop the app, set release target in the Project Options.

Command line

Build development: lazbuild Trndi.lpi

Build release: lazbuild -dRelease Trndi.lpi

Build to a release folder lazbuild -B output_directory Trndi.lpi

Dependancies

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.

Style

Linter

Trndi uses JEDI to format code, in Lazarus: Source > JEDI Code Format > Global Settings. Choose JCFSettings.xml

Naming

Units should end with .pp,

VSCode

Should you choose not to use Lazarus IDE, these are the recommendations for Visual Studio Code:

History

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.

Testing

Trndi is actively tested on Windows (amd64), Fedora Linux(amd64), Debian Linux(arm64 / Raspberry pi).