Merge pull request #11 from rrika/master

Add TransPennine Express to list of recognized SSIDs
This commit is contained in:
embr 2022-03-12 13:36:28 +01:00 committed by GitHub
commit 2cb14704fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -18,6 +18,9 @@ case "SWR WiFi"
case "VirginTrainsEC-WiFi"
set ambient_icomera_country GB
set ambient_icomera_provider "Virgin Trains East Coast"
case "TPE Wi-Fi"
set ambient_icomera_country GB
set ambient_icomera_provider "TransPennine Express"
case "SJ"
set ambient_icomera_country SE
set ambient_icomera_provider SJ

View file

@ -3,7 +3,7 @@ function ambient_get_ssid
if test (uname) = "Darwin"
set -g ambient_ssid (/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | sed -n 's/^ *SSID: //p')
else
set -g ambient_ssid (iw dev | grep ssid | awk '{print $2}')
set -g ambient_ssid (iw dev | grep ssid | sed -n 's/^\s*ssid //p')
end
end
echo $ambient_ssid

View file

@ -0,0 +1,3 @@
if set -q AMBIENT_ICOMERA_POSITION_SPEED
echo "💨 $AMBIENT_ICOMERA_POSITION_SPEED km/h"
end