Failure to get location at startup
At startup local_latlon() function freezes script at
local url="http://ip-api.com/json/$local_ip"
local res=$(curl -Ls "$url" | jq -r '"\(.lat)\n\(.lon)"')
Curl can't get requested result. Trying access http://ip-api.com/json/ via browser, returns error: message "SSL unavailable for this endpoint, order a key at https://members.ip-api.com/"
I think, that now ip-api.com requires key, for getting info about IP
Thanks for the report. Tested it over here and was unable to reproduce it. Accessing that endpoint in a browser will not function the same as when using curl due to parameters being sent differently:
- Browser: fails
- curl (terminal): succeeds
Are you sure the local IP was being resolved correctly before being interpolated into the URL? (Lines 476-480)
Can you send the full error message?
Closed due to inactivity