This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import time | |
from geopy.distance import geodesic | |
last_coords = None | |
speed = None | |
time_btwn_change = 1 | |
check_freq = 10 | |
#https://server.ad.logic-prod.viasat.io/afr.php?zoneid=95¶meters=%7B%22origin%22:%22KMCO%22,%22destination%22:%22KDFW%22%7D&fid=N132AN-KMCO-KDFW-2022-03-05T01:56:12Z&fleetType=&isUSDomestic=true&guid=6f3003e9-9c27-11ec-927e-06df78a0305b&subtag=&source=https:%2F%2Fwww.aainflight.com%2F&origin=https:%2F%2Fwww.aainflight.com&li=0 | |
#https://www.aainflight.com/iptv/channelList | |
#https://www.aainflight.com/iptv/programGuide/grid?channelId=12%2C13%2C14%2C15%2C16%2C17%2C19%2C24%2C26%2C27%2C34%2C35&startDateTime=20220305T0300Z&endDateTime=20220305T0700Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"detected_networks": [ | |
{ | |
"vlan_id": "default", | |
"ip_address": "100.110.152.81", | |
"domain": "w-194.orld.fl.wtsky.net" | |
}, | |
{ | |
"vlan_id": 6, | |
"rx_bytes": 23426, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import random | |
def generate_random_number_string(length): | |
numbers = '0123456789' | |
return ''.join(random.choice(numbers) for _ in range(length)) | |
phone_number = "13529993108" | |
print("--------------------------------------") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def standardize_longitude(longitude): | |
while longitude < -180: | |
longitude += 360 | |
while longitude > 180: | |
longitude -= 360 | |
return longitude | |
def standardize_latitude(latitude): | |
while latitude < -90: |
OlderNewer