home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.internet.wireless      Fun with wireless Internet access      55,960 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 55,849 of 55,960   
   Marian to Marian   
   Re: Discussion: How to set up your mobil   
   15 Dec 25 02:52:30   
   
   XPost: misc.phone.mobile.iphone, alt.comp.os.windows-10, comp.mobile.android   
   From: marianjones@helpfulpeople.com   
      
   Marian wrote:   
   > For my slightly modified apple_bssid_locator.py   
   > a. You give it a BSSID   
   > b. it forces Apple to return the entire Wi-Fi cluster.   
   > c. it writes every BSSID + GPS coordinate to results.txt.   
      
   If you want to view results.txt in a map showing all your neighbors' APs   
    python.exe bssidplot.py   
      
   Where bssidplot.py is the following script I wrote to map results.txt:   
      
    import folium   
    # This is C:\app\os\python\bssidplot.py   
    # USAGE: python bssidplot.py   
    # v1p0 20251214   
    #  Plots the 400 BSSID:GPS results.txt pairs using Folium   
    # v1p1 20251215   
    #  Generates bssid_map.html from results.txt using Folium   
    # v1p2 20251215   
    #  Brings up the bssid_map.html GPS:BSSID map in the default browser   
      
    import folium   
      
    # Read results.txt   
    points = []   
    with open("results.txt") as f:   
        for line in f:   
            parts = line.strip().split("\t")   
            if len(parts) == 3:   
                mac, lat, lon = parts   
                points.append((mac, float(lat), float(lon)))   
      
    if not points:   
        print("No points found in results.txt")   
        exit()   
      
    # Center map on the first point   
    start_lat, start_lon = points[0][1], points[0][2]   
    m = folium.Map(location=[start_lat, start_lon], zoom_start=15)   
      
    # Add markers   
    for mac, lat, lon in points:   
        folium.Marker(   
            location=[lat, lon],   
            popup=f"{mac}\n({lat}, {lon})",   
            icon=folium.Icon(color="blue", icon="wifi", prefix="fa")   
        ).add_to(m)   
      
    # Save map   
    m.save("bssid_map.html")   
    print("Map saved to bssid_map.html")   
      
    # Open map in Microsoft Edge   
    import subprocess   
    import os   
    map_path = os.path.abspath("bssid_map.html")   
    import subprocess   
    subprocess.Popen(['cmd', '/c', 'start', '', map_path])   
    # end of C:\app\os\python\bssidplot.py   
   --   
   I am not here for my ego; nor for my amusement; but to teach & learn.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca