Nightscout Profile Convert
Convert Nightscout profiles to OpenAPS format
(so you can run Autotune on them)
Code example
const nsProfileConvert = const fetchProfile = nsProfileConvertfetchProfileconst convertProfile = nsProfileConvertconvertProfile const my_nightscout_url = "https://my.ns.site" // Load the default Profile from a Nightscout sitelet profile_default = await // Load a profile by namelet profile_autotune = await // 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 =