Skip to content

Commit

Permalink
New libreview.io subdomain for the region “la” (Latin America)
Browse files Browse the repository at this point in the history
According the Android Brazilian xDrip user @diego-castilho, there is a new `libreview.io` region, “LA”, very probably for “Latin America”.

In fact, if you request https://api.libreview.io/llu/config/country?country=BR changing the country code for example for AR, CO or MX you keep on getting the entry

`”lslApi":"https://api-la.libreview.io/“`

(timoschlueter/nightscout-librelink-up#148)
  • Loading branch information
gui-dos committed Jul 12, 2024
1 parent 9289577 commit 132b14a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions xdrip/Managers/LibreLinkUp/LibreLinkUpModels.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public enum LibreLinkUpRegion: Int, CaseIterable {
case eu2 = 7
case fr = 8
case jp = 9
case us = 10
case la = 10
case us = 11


init?() {
Expand Down Expand Up @@ -56,6 +57,8 @@ public enum LibreLinkUpRegion: Int, CaseIterable {
self = .fr
case "jp":
self = .jp
case "la":
self = .la
case "us":
self = .us
default:
Expand Down Expand Up @@ -88,6 +91,8 @@ public enum LibreLinkUpRegion: Int, CaseIterable {
return "France"
case .jp:
return "Japan"
case .la:
return "Latin America"
case .us:
return "United States"

Expand Down Expand Up @@ -165,8 +170,10 @@ public enum LibreLinkUpRegion: Int, CaseIterable {
return 8
case 9:// jp
return 9
case 10:// us
case 10:// la
return 10
case 11:// us
return 11
default:
fatalError("in libreLinkUpRawValue, unknown case")
}
Expand Down

0 comments on commit 132b14a

Please sign in to comment.