dakboard / Hardware-OS

DAKboard Wall Display, CPU, and Raspberry Pi
25 stars 4 forks source link

Create Ability to Set WIFI Country in Device Configuration Page #29

Closed cocarrig closed 3 years ago

cocarrig commented 3 years ago

Is your feature request related to a problem? Please describe. WIfi Country code is currently unable to be set in Device Configuration page.

Describe the solution you'd like Implement configuration field on Device Configuration Page that allows Wifi Country code to be set. Configurations field exists as drop down and provides all possible results. Default set to 'US'.

Describe alternatives you've considered Modification of /etc/wpa_supplicant/wpa_supplicant.conf is possible but is overwritten when device configuration page is saved.

Additional context N/A

cocarrig commented 3 years ago

Country Codes:

Code Country Name
US United States
CA Canada
JP3 Japan
DE Germany
NL Netherlands
IT Italy
PT Portugal
LU Luxembourg
NO Norway
FI Finland
DK Denmark
CH Switzerland
CZ Czech Republic
ES Spain
GB United Kingdom
KR Republic of Korea (South Korea)
CN China
FR France
HK Hong Kong
SG Singapore
TW Taiwan
BR Brazil
IL Israel
SA Saudi Arabia
LB Lebanon
AE United Arab Emirates
ZA South Africa
AR Argentina
AU Australia
AT Austria
BO Bolivia
CL Chile
GR Greece
IS Iceland
IN India
IE Ireland
KW Kuwait
LI Liechtenstein
LT Lithuania
MX Mexico
MA Morocco
NZ New Zealand
PL Poland
PR Puerto Rico
SK Slovak Republic
SI Slovenia
TH Thailand
UY Uruguay
PA Panama
RU Russia
KW Kuwait
LI Liechtenstein
LT Lithuania
MX Mexico
MA Morocco
NZ New Zealand
PL Poland
PR Puerto Rico
SK Slovak Republic
SI Slovenia
TH Thailand
UY Uruguay
PA Panama
RU Russia
EG Egypt
TT Trinidad and Tobago
TR Turkey
CR Costa Rica
EC Ecuador
HN Honduras
KE Kenya
UA Ukraine
VN Vietnam
BG Bulgaria
CY Cyprus
EE Estonia
MU Mauritius
RO Romania
CS Serbia and Montenegro
ID Indonesia
PE Peru
VE Venezuela
JM Jamaica
BH Bahrain
OM Oman
JO Jordan
BM Bermuda
CO Colombia
DO Dominican Republic
GT Guatemala
PH Philippines
LK Sri Lanka
SV El Salvador
TN Tunisia
PK Islamic Republic of Pakistan
QA Qatar
DZ Algeria

Source: https://www.arubanetworks.com/techdocs/InstantWenger_Mobile/Advanced/Content/Instant%20User%20Guide%20-%20volumes/Country_Codes_List.htm

cocarrig commented 3 years ago

This enhancement has been completed and is available on DAKboard OS 2.23: https://dakboard.freshdesk.com/support/solutions/articles/35000125880-download-and-install-the-dakboard-os-for-raspberry-pi

The country code will be set for those countries that have applicable country codes when the timezone is set automatically via the configuration page. For those countries that do not have a corresponding wifi code, it will default to the US country code.