I got rid of the backslashes and now it's just sitting there, doing nothing.I got an error about Unix shell quoting issues. I even removed the quotes and typed them back in: View attachment 48756
I got rid of the backslashes and now it's just sitting there, doing nothing.I got an error about Unix shell quoting issues. I even removed the quotes and typed them back in: View attachment 48756
I'm learning significantly more about how each of these scripts works now. I see that Jack keeps the server name in the description but you change it to be the city name to make it more user-friendly. Because Jack has the server name, he can query the exact page for server load for the specific server in question which loads quickly.
You must use the main page because you don't have the server name (e.g., us9360) and search for the IP from the list of all servers and their loads. It seems my issue is that loading that page is taking forever and causing a timeout to occur.
That led me to this page which helped me find the two search methods:
Would it be possible for you to create a variable (or save to a temp file that overwrites the values when the servers change) to save the server names to so that you could use the fast method, instead? Or maybe even reduce the limit and loop through multiple times until found?
Could you please post the entire command? I'll try it on my end.It finally finished and this was the result: View attachment 48758
curl --silent --retry 3 https://api.nordvpn.com/v1/servers?limit=16384 | jq '.[] | select(.station == "185.202.220.154") | .load'
In the interim... you can turn this functionality off by going into setup -> option 10... and turn off the extended near-realtime info? That might alleviate you from dealing with this, and still give you most of the functionality?It finally finished and this was the result: View attachment 48758
Here you go:Could you please post the entire command? I'll try it on my end.
Should looks something like:
Code:curl --silent --retry 3 https://api.nordvpn.com/v1/servers?limit=16384 | jq '.[] | select(.station == "185.202.220.154") | .load'
...and I get a load response in about 2 seconds.
curl --silent --retry 3 https://api.nordvpn.com/v1/servers?limit=16384 | jq '.[] | select(.station == "185.202.220.154") | .load'
That led me to this page which helped me find the two search methods:
Would it be possible for you to create a variable (or save to a temp file that overwrites the values when the servers change) to save the server names to so that you could use the fast method, instead? Or maybe even reduce the limit and loop through multiple times until found?
curl --silent --retry 3 https://api.nordvpn.com/server/stats/us9943.nordvpn.com | jq .percent
curl --silent --retry 3 https://api.nordvpn.com/v1/servers?limit=16384 | jq '.[] | select(.station == "185.202.220.154") | .load'
I did that, and that allowed vpnmon to run. Then I tried a reset, it looks like that will also timeout when it is "Reaching out to NordVPN API to download Server IPs."In the interim... you can turn this functionality off by going into setup -> option 10... and turn off the extended near-realtime info? That might alleviate you from dealing with this, and still give you most of the functionality?
The first command took about 18 seconds.I was just playing with these 2 different methods, and they literally take the same amount of time on my end. Could you please try on your end?
Code:curl --silent --retry 3 https://api.nordvpn.com/server/stats/us9943.nordvpn.com | jq .percent curl --silent --retry 3 https://api.nordvpn.com/v1/servers?limit=16384 | jq '.[] | select(.station == "185.202.220.154") | .load'
Could you please try to see how long this one takes for you?The first command took about 18 seconds.
The second one hasn't finished after one minute. I'll keep monitoring and update this post when it is done.
18 minutes, still not done.
curl --silent --retry 3 https://api.nordvpn.com/server | jq '.[] | select(.ip_address == "185.202.220.154") | .domain'
This only happens 1x when the script initially starts, and specifies using the WAN connection in order to find its public IP address, which then gets used to translate to a certain city.I noticed line 2112 of vpnmon-r2.sh obtains the city name. You can also grab the country name from the WAN. What if you could use an active VPN interface to pull information using curl if the country is Turkey? The issue is that going through the WAN when making the API calls is exceptionally slow, but going through the VPN isn't. They don't block it; they make it take forever.
I think I have an alternate way around this. I'll send you another curl statement in a bit.I did that, and that allowed vpnmon to run. Then I tried a reset, it looks like that will also timeout when it is "Reaching out to NordVPN API to download Server IPs."
Definitely better than not finishing at all! Sorry to hear you're dealing with these latency/throttling issues out there...I'm running both now.
They aren't fast. On my Mac, which is running through the VPN on the router, it took 7 seconds for the curl and 16 seconds for jq to run the second command you gave me, and 5 + 11 seconds for the first command.
View attachment 48765
It might not finish. It's still running on the router.Definitely better than not finishing at all! Sorry to hear you're dealing with these latency/throttling issues out there...
I'd ask for your money back at that airbnb! LOL You're talking like the equivalency of 300baud on an old-skool modem with speeds like that!It might not finish. It's still running on the router.
Haha, I didn't realize how much of a pain Turkey would be. Using the recommended list from Nord works marginally better. Maybe an additional config option to use that for people that are in countries that limit VPN API access?I'd ask for your money back at that airbnb! LOL You're talking like the equivalency of 300baud on an old-skool modem with speeds like that!
curl --silent "https://api.nordvpn.com/v1/servers/recommendations?filters\[country_id\]=228&limit=3" | jq --raw-output '.[].hostname'
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!