BraydenMoore commited on
Commit
19137a2
1 Parent(s): 3c76c1a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -3
main.py CHANGED
@@ -38,9 +38,10 @@ def index():
38
  timezone = pytz.timezone(info['timezone'])
39
  time = dt.datetime.now(timezone)
40
  loc = info['loc']
 
41
  X, Y = latlon_to_pixel(info['loc'])
42
- proxied_url = f"/video/{ip}/mjpg/video.mjpg" # Replace with your specific path
43
- return render_template('index.html', name=name, url=proxied_url, info=info, time=time, ip=ip, org=org, loc=loc, X=X, Y=Y)
44
 
45
  if __name__ == '__main__':
46
- app.run(host='0.0.0.0', port='7860')
 
38
  timezone = pytz.timezone(info['timezone'])
39
  time = dt.datetime.now(timezone)
40
  loc = info['loc']
41
+ print(info)
42
  X, Y = latlon_to_pixel(info['loc'])
43
+ print(url)
44
+ return render_template('index.html', name=name, url=url, info=info, time=time, ip=ip, org=org, loc=loc, X=X, Y=Y)
45
 
46
  if __name__ == '__main__':
47
+ app.run(host='0.0.0.0', port='7860', debug=True)