malaow3 / Glucose-Widget

13 stars 6 forks source link

repl it dont build the .env #5

Open bernienightscout opened 2 years ago

bernienightscout commented 2 years ago

hi there,

i want to build it your way, but replit change the way to add .env files. can you tell me a "how to" how i can add it? 9i use ios 15.1 is it possible to use this widget on my iphone? have you a new how to for it or can you create it?

malaow3 commented 2 years ago

Just checked on replit and unfortunately they did change things... Kinda annoying on their end, but it's a simple enough fix. To add env variables now, go to the "Secrets" tab (the lock icon). Then the easiest way to do it is scroll down to the "Open raw editor" and click on that. The just copy/paste the following, with your details obviously:

{ "username": "Enter your username here", "password": "Enter your password here" }

Then just click save! Let me know if there are any issues w/ that!

bernienightscout commented 2 years ago

ok i will trie it. but which username and password should or i have to use?

and whats with key and value above?

malaow3 commented 2 years ago

username and password are for you Dexcom account (e.g. the account info you use to access / share data with others in the app)

you can ignore the key / value stuff, since we set that using the raw json editor

bernienightscout commented 2 years ago

ok...

i run it but it exit with status 2. is tzhis ok? and where i can find the link of the webpage which is set up?

malaow3 commented 2 years ago

status 2 indicates a failure; could you send a screenshot the output and attach here (making sure there are no leaked usernames / passwords, wouldn't want you to accidentally send those)

bernienightscout commented 2 years ago

Von meinem iPhone gesendet

Am 27.10.2021 um 21:41 schrieb malaow3 @.***>:

status 2 indicates a failure; could you send a screenshot the output and attach here (making sure there are no leaked usernames / passwords, wouldn't want you to accidentally send those)

bernienightscout commented 2 years ago

Unbenannt

malaow3 commented 2 years ago

Ah seems like one of the libraries has updated and it has broken compatibility; I'd suggest maybe using the python setup in the meantime

bernienightscout commented 2 years ago

Unbenannt

malaow3 commented 2 years ago

Hmmm that is odd that both aren't working. Are you a Dexcom user outside of the United States by chance? If that is the case, that could be the root of the issue as Dexcom has different endpoints for OUS users.

bernienightscout commented 2 years ago

im from germany but i have both accounts i could check it with my us account…

Von meinem iPhone gesendet

Am 28.10.2021 um 15:46 schrieb malaow3 @.***>:

 Hmmm that is odd that both aren't working. Are you a Dexcom user outside of the United States by chance? If that is the case, that could be the root of the issue as Dexcom has different endpoints for OUS users.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

malaow3 commented 2 years ago

Yes, please try with the US based account, and if that doesn't work I can look into how to help you set up the OUS account. Thanks!

bernienightscout commented 2 years ago

Unbenannt

bernienightscout commented 2 years ago

i think its the same

malaow3 commented 2 years ago

Here is a precompiled binary of the Go code (make sure to unzip), you should be able to just drag+drop this into repl and then run with the following -- make sure you are on the shell tab!

./getBG

Let me know if there are still any issues - and try running w/ the US account first.

getBG.zip

bernienightscout commented 2 years ago

Unbenannt

malaow3 commented 2 years ago

Please rename the file to remove the "._" before hand. The file name should be just "getBG" and then run it with ./getBG like you had just done!