Skip to content

Instantly share code, notes, and snippets.

View Yokii908's full-sized avatar

Alexis Coquard Yokii908

  • Lognes
View GitHub Profile
@Yokii908
Yokii908 / wifissid.py
Created July 17, 2020 08:01 — forked from satishgunjal/wifissid.py
Get connected wifi SSID using python on Raspberry pi
import subprocess
try:
output = subprocess.check_output(['sudo', 'iwgetid'])
print("Connected Wifi SSID: " + output.split('"')[1])
except Exception, e:
print e