added more cameras, working on image to video conversion

This commit is contained in:
1MalcolmS
2026-03-23 20:56:20 -07:00
parent ae7fb6fe3d
commit e8fcba378d
27 changed files with 159 additions and 6 deletions

View File

@@ -20,8 +20,15 @@ x7 = requests.get("https://ehub.portvancouver.com/Webcams/Photos/ColumbiaContain
x8 = requests.get("https://ehub.portvancouver.com/webcams/Photos/TerminalDock?" + str(milliseconds))
x9 = requests.get("https://ehub.portvancouver.com/Webcams/Photos/CommEntrance?" + str(milliseconds))
x10 = requests.get("https://ehub.portvancouver.com/Webcams/Photos/CommOverMcGill?" + str(milliseconds))
x11 = requests.get("https://ehub.portvancouver.com/Webcams/Photos/CameraDP_FS1?" + str(milliseconds))
x12 = requests.get("https://ehub.portvancouver.com/Webcams/Photos/DeltaportGate1?" + str(milliseconds))
x13 = requests.get("https://ehub.portvancouver.com/Webcams/Photos/DMSWest?" + str(milliseconds))
x14 = requests.get("https://ehub.portvancouver.com/Webcams/Photos/FSMainIntersection?" + str(milliseconds))
x15 = requests.get("https://ehub.portvancouver.com/Webcams/Photos/FSTruckInGate?" + str(milliseconds))
x16 = requests.get("https://ehub.portvancouver.com/Webcams/Photos/FSVACSGates?" + str(milliseconds))
x17 = requests.get("https://ehub.portvancouver.com/Webcams/Photos/FS5TrackCrossing?" + str(milliseconds))
x18 = requests.get("https://ehub.portvancouver.com/Webcams/Photos/PortsideNo8?" + str(milliseconds))
x19 = requests.get("https://ehub.portvancouver.com/Webcams/Photos/PortsideCoast2000?" + str(milliseconds))
while True:
milliseconds = int(time() * 1000)
@@ -35,6 +42,15 @@ while True:
str8 = "https://ehub.portvancouver.com/webcams/Photos/TerminalDock?" + str(milliseconds)
str9 = "https://ehub.portvancouver.com/Webcams/Photos/CommEntrance?" + str(milliseconds)
str10 = "https://ehub.portvancouver.com/Webcams/Photos/CommOverMcGill?" + str(milliseconds)
str11 = "https://ehub.portvancouver.com/Webcams/Photos/CameraDP_FS1?" + str(milliseconds)
str12 = "https://ehub.portvancouver.com/Webcams/Photos/DeltaportGate1?" + str(milliseconds)
str13 = "https://ehub.portvancouver.com/Webcams/Photos/DMSWest?" + str(milliseconds)
str14 = "https://ehub.portvancouver.com/Webcams/Photos/FSMainIntersection?" + str(milliseconds)
str15 = "https://ehub.portvancouver.com/Webcams/Photos/FSTruckInGate?" + str(milliseconds)
str16 = "https://ehub.portvancouver.com/Webcams/Photos/FSVACSGates?" + str(milliseconds)
str17 = "https://ehub.portvancouver.com/Webcams/Photos/FS5TrackCrossing?" + str(milliseconds)
str18 = "https://ehub.portvancouver.com/Webcams/Photos/PortsideNo8?" + str(milliseconds)
str19 = "https://ehub.portvancouver.com/Webcams/Photos/PortsideCoast2000?" + str(milliseconds)
image_name = "image" + str(milliseconds) + ".jpg"
@@ -148,6 +164,97 @@ while True:
else:
print("Copy detected and removed (x10)")
image_check = copy.deepcopy(x11)
x11 = requests.get(str11, headers=headerz)
if x11.content != image_check.content:
with chdir('Deltaport causeway'):
if x11.status_code == 200:
with open(image_name, 'wb') as f:
f.write(x11.content)
else:
print("Copy detected and removed (x11)")
image_check = copy.deepcopy(x12)
x12 = requests.get(str12, headers=headerz)
if x12.content != image_check.content:
with chdir('Deltaport gate 1'):
if x12.status_code == 200:
with open(image_name, 'wb') as f:
f.write(x12.content)
else:
print("Copy detected and removed (x12)")
image_check = copy.deepcopy(x13)
x13 = requests.get(str13, headers=headerz)
if x13.content != image_check.content:
with chdir('Delta truck staging'):
if x13.status_code == 200:
with open(image_name, 'wb') as f:
f.write(x13.content)
else:
print("Copy detected and removed (x13)")
image_check = copy.deepcopy(x14)
x14 = requests.get(str14, headers=headerz)
if x14.content != image_check.content:
with chdir('Fraser Surrey main intersection'):
if x14.status_code == 200:
with open(image_name, 'wb') as f:
f.write(x14.content)
else:
print("Copy detected and removed (x14)")
image_check = copy.deepcopy(x15)
x15 = requests.get(str15, headers=headerz)
if x15.content != image_check.content:
with chdir('Fraser Surrey in gate'):
if x15.status_code == 200:
with open(image_name, 'wb') as f:
f.write(x15.content)
else:
print("Copy detected and removed (x15)")
image_check = copy.deepcopy(x16)
x16 = requests.get(str16, headers=headerz)
if x16.content != image_check.content:
with chdir('Fraser Surrey VACS gates'):
if x16.status_code == 200:
with open(image_name, 'wb') as f:
f.write(x16.content)
else:
print("Copy detected and removed (x16)")
image_check = copy.deepcopy(x17)
x17 = requests.get(str17, headers=headerz)
if x17.content != image_check.content:
with chdir('Fraser Surrey track crossing'):
if x17.status_code == 200:
with open(image_name, 'wb') as f:
f.write(x17.content)
else:
print("Copy detected and removed (x17)")
image_check = copy.deepcopy(x18)
x18 = requests.get(str18, headers=headerz)
if x18.content != image_check.content:
with chdir('PortsideBlundellNo.8 road intersection'):
if x18.status_code == 200:
with open(image_name, 'wb') as f:
f.write(x18.content)
else:
print("Copy detected and removed (x18)")
image_check = copy.deepcopy(x19)
x19 = requests.get(str19, headers=headerz)
if x19.content != image_check.content:
with chdir('Portside road - westbound'):
if x19.status_code == 200:
with open(image_name, 'wb') as f:
f.write(x19.content)
else:
print("Copy detected and removed (x19)")
image_check = copy.deepcopy(x1)