diff --git a/Juggluco/webserver.html b/Juggluco/webserver.html index 7de0edc..e154014 100644 --- a/Juggluco/webserver.html +++ b/Juggluco/webserver.html @@ -20,15 +20,14 @@

Web server

Juggluco contains a web server. You can turn it on with Left menu->Settings->Web server. Via the web server other programs -can make use of the data in Juggluco. In the following localhost -or equivalently 127.0.0.1 is used for the hostname or IP of +can make use of the data in Juggluco. In the following 127.0.0.1 is used for the hostname or IP of the web server. In this way you can try out the commands by opening the web page on the same phone where Juggluco is running. If you unset "Local only" in Left menu->Settings -> Web server, you can also use it from other hosts on your home network by -replacing localhost or 127.0.0.1 with the IP of the +replacing 127.0.0.1 with the IP of the phone. If Use SSL is set, you can replace -http://localhost:17580 with https://ahostname:aport. +http://127.0.0.1:17580 with https://ahostname:aport. Whereby "ahostname" is the hostname associated with the SSL certificate and "aport" is the port that your modem redirects to "SSL Port" (set in left @@ -47,31 +46,31 @@

Juggluco export web server

Stream

-

http://localhost:17580/x/stream

+

http://127.0.0.1:17580/x/stream

Scans

-

http://localhost:17580/x/scans

+

http://127.0.0.1:17580/x/scans

History

-

http://localhost:17580/x/history

+

http://127.0.0.1:17580/x/history

Amounts

-

http://localhost:17580/x/amounts

+

http://127.0.0.1:17580/x/amounts

Meals

-

http://localhost:17580/x/meals

+

http://127.0.0.1:17580/x/meals

@@ -104,7 +103,7 @@

Juggluco export web server

a header with the meaning of each column above the columns.

- http://localhost:17580/x/stream?header

+ http://127.0.0.1:17580/x/stream?header

@@ -116,7 +115,7 @@

Juggluco export web server

for how many days data should be returned.

- http://localhost:17580/x/history?header&days=0.8

+ http://127.0.0.1:17580/x/history?header&days=0.8

@@ -130,7 +129,7 @@

Juggluco export web server

defaults to 5 hours.

- http://localhost:17580/x/stream?duration=3600

+ http://127.0.0.1:17580/x/stream?duration=3600

@@ -142,7 +141,7 @@

Juggluco export web server

time in Unix time (seconds since 00:00 1 January 1970 GMT).

- http://localhost:17580/x/amounts?starttime=1698266963

+ http://127.0.0.1:17580/x/amounts?starttime=1698266963

@@ -154,7 +153,7 @@

Juggluco export web server

time in Unix time (seconds since 00:00 1 January 1970 GMT).

- http://localhost:17580/x/stream?endtime=1698266963

+ http://127.0.0.1:17580/x/stream?endtime=1698266963

@@ -167,7 +166,7 @@

Juggluco export web server

local time (Nightscout uses GMT).

- http://localhost:17580/x/scans?header&start=2023-02-23T8:43:00&days=8

+ http://127.0.0.1:17580/x/scans?header&start=2023-02-23T8:43:00&days=8

@@ -179,7 +178,7 @@

Juggluco export web server

end time.

- http://localhost:17580/x/stream?end=2023-10-28T23:10&header

+ http://127.0.0.1:17580/x/stream?end=2023-10-28T23:10&header

@@ -203,7 +202,7 @@

Juggluco export web server

3c4bc8e59079403cb17a03a19c889769faadfdc8

- http://localhost:17580/x/history?token=xyx

+ http://127.0.0.1:17580/x/history?token=xyx

@@ -582,4 +581,4 @@

find[date][$lte]=datemsec

- \ No newline at end of file +