I noticed while I was setting up a couple of RoPieee nodes that it was not setting the country code properly.
/opt/RoPieee/lib/get_country_code makes a curl call to http://freegeoip.net/xml/
If you happen to hit that url with a browser (or just curl), you get a cute message along the following lines:
{
“0”: “#################################################################################################################################”,
“1”: “# #”,
“2”: “# IMPORTANT - PLEASE UPDATE YOUR API ENDPOINT #”,
“3”: “# #”,
“4”: “# This API endpoint is deprecated and has now been shut down. To keep using the freegeoip API, please update your integration #”,
“5”: “# to use the new ipstack API endpoint, designed as a simple drop-in replacement. #”,
“6”: “# You will be required to create an account at https://ipstack.com and obtain an API access key. #”,
“7”: “# #”,
“8”: “# For more information on how to upgrade please visit our Github Tutorial at: https://github.com/apilayer/freegeoip#readme #”,
“9”: “# #”,
“a”: “#################################################################################################################################”
}
This is playing havoc with the ability to use a number of 5ghz channels. Any manual changes to the wpa_supplicant config file get totally blown away by the init scripts or web config. If the config is going to be completely managed via the UI, it’d sure be nice if I could just pick US from a dropdown. Or at the bare minimum be able to supply my own country code without having to use an external service to set a config I could do myself.