Skip to content

Very simple widget that queries your nightscout API to display blood glucose.

Notifications You must be signed in to change notification settings

RJGns/Tizen-wearable-nightscout-BG

Repository files navigation

Tizen-nightscout-widget

A very simple widget that queries the nightscout API to display blood glucose in the form of the widget. It is built using Tizen SDK, in the form of a web widget (comes bundled with a normal app, but you can ignore this). All this does is get the current bg in mmol and displays it. An install script is provided in the form of a batch file for windows.

alt text

Building

1. Run the install script

Do this by double clicking on it. This installs the widget to your computer. It also configures your project to use you nightscout URL and desired bg unit.

image

Make sure to pick the version "with IDE installer".

image

Accept license agreements and choose a location to install to. Tizen Studio will now be installed.

image

Press finish to open the package manager. When it is open: install the version that corresponds to your watch Tizen version (you can find this in your watch settings). If you have a Gear S3 and are on the latest firmware, it will likely be 4.0. Press install.

image

In the Extension SDK tab, scroll to the bottom and install both the Samsung Certificate Extension and Wearable Extension.

image

Close the package manager and tick the box to launch Tizen Studio.

3. Opening Project

In Tizen Studio, go to File>Open Projects from file system (your window may look different to mine.

image

Click on Directory... then choose the folder the install script downloaded. It will be in the same place as where you launched the script and the folder is called Tizen-wearable-nightscout-BG

image

Press OK, then Finish. A project should now be visible in the Project Explorer.

Verify your details were set correctly by naviagting to widget>Nightscout>js>Main.js. Double click to open.

You might need to fill in the switch statement with the proper emojis for the arrows as they seem to revert to the default unicode error symbol for some reason.

4. Connect to watch

Open the device manager in Tizen Studio. Click remote device manager in top right. Click add.

On your watch connect to WiFi (set to always on, not auto) then go into wifi details and note the IP address. Enable developer options in watch by going to about and click on build version 5 times. Go into about and scroll down to where it says debugging, click on it and enable it. Restart watch.

Go back to TZ and connect to the watch, the watch screen needs to be on and on a screen that isn't the watch face (any one will do). A connection prompt should appear. Accept.

5. Generate Certificates.

Go to the certificate manager. Follow the steps to generate a Samsung partner certificate. MUST BE A PARTNER CERTIFICATE.

6. Click run

It should now be installed to your watch.