Skip to content

Convert Nightscout profiles to OpenAPS format (so you can run Autotune on them)

License

Notifications You must be signed in to change notification settings

nielsmaerten/nightscout-profile-convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nightscout Profile Convert

Convert Nightscout profiles to OpenAPS format
(so you can run Autotune on them)

Code example

const nsProfileConvert = require("nightscout-profile-convert")
const fetchProfile = nsProfileConvert.fetchProfile
const convertProfile = nsProfileConvert.convertProfile

const my_nightscout_url = "https://my.ns.site"

// Load the default Profile from a Nightscout site
let profile_default = await fetchProfile(my_nightscout_url)

// Load a profile by name
let profile_autotune = await fetchProfile(my_nightscout_url, "autotune")

// Convert a profile to OpenAPS format
// (!) You have to provide min_5m_carbimpact yourself, 
// (!) since Nightscout profiles don't contain this value.
let openaps_profile = convertProfile(profile_default, /*min_5m_carbimpact*/ 3)

About

Convert Nightscout profiles to OpenAPS format (so you can run Autotune on them)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published