IvanGlinkin / CCTV

Close-Circuit Telegram Vision revolutionizes location tracking with its open-source design and Telegram API integration. Offering precise tracking within 50-100 meters, users can monitor others in real-time for logistics or safety, redefining how we navigate our surroundings
GNU General Public License v3.0
2.31k stars 319 forks source link

Reduce API calls by downloading avatars directly #1

Closed ask0n closed 2 months ago

ask0n commented 2 months ago

did some cleanup:

IvanGlinkin commented 2 months ago

hey man. let me check it tomorrow and if it's working well will pull you request

IvanGlinkin commented 2 months ago

Man, something wrong with data collection - some areas of collecting data are missing hence no actual coordinates

ask0n commented 2 months ago

Sure will take a look. Which data was missed?

IvanGlinkin commented 2 months ago

just launch the script and see results on the map and compare the same with my out original output. Seems like the combine of coordinates isn't working or the points of collection don't collect it all. if you see the original output - you can see the proper square but right now it like chaotic

Screenshot 2024-05-01 at 20 29 27
ask0n commented 2 months ago

oh, I see you mean this polygon figures? image image

it seems I was confused by this logic https://github.com/IvanGlinkin/CCTV/blob/main/start.py#L178-L187 my plan was to move html generation outside of the loop and use combined json for it. Lemme check.

IvanGlinkin commented 2 months ago

yeah, the second one screenshot is what i meant - it's showing more accurate locations. I liked what you did regarding frontend - great job) thanks for allocating your time and efforts. Really appreciate it But due to the application is not working - there is no point of frontend. let's find out together what has been broken in logic, fix it and put all of your addons to the master branch :)

IvanGlinkin commented 2 months ago

any luck so far?

ask0n commented 2 months ago

any luck so far?

hey, yes, lemme prepare a new PR. Collected data looks identical now but I discovered that https://t.me url also throttles requests and returns a dummy page. Need to update logic to not fetch default logo instead of avatar.