Hello and have a nice day or night,
I have this Milesight TrafficX Camera up and running and there ais a setting in dashboard named POST which you can see in below picture:
all I want is to know how to set up these setting ( based on what actually i mean) to be able to receive data in my Python code.
the data is going to be as below no matter the protocol:
full data presentation :
<!-- language: python -->
{
"event_type": "event_type",
"device_name": "device_name",
"GPS": "GPS",
"time": "time",
"detection_region": "detection_region",
"license_plate": "license_plate",
"country_region": "country_region",
"plate_type": "plate_type",
"plate_color": "plate_color",
"vehicle_type": "vehicle_type",
"vehicle_color": "vehicle_color",
"vehicle_brand": "vehicle_brand",
"direction": "direction",
"event_data":
[
...
]
"license_plate_coordinates": "license_plate_coordinates",
"vehicle_coordinates": "vehicle_coordinates",
"snapshot": "snapshot"
}
I`ve done almost any idiotic things that came across my mind or across empty internet about this and maybe alot of them are unrelatable but ive did it and im going to tell:
i did wanted to use MQTT and came across and mqtt broker which i dont knwo if i was successfully configuring or not and even i couldn’t manage to see the data using the excellent (android lollipop looking lol) project MQTT EXPLORER.
ive found some resources in milesight documentation with zero SEO that didn’t even came up in google when ive previously searched for and im going to leave link hereso you dont have to look it up yourself in case you want to put effort to answer me (and ill be grateful :
- Development Platform
- The Only related (maybe) question on whole internet which is unanswered
- API Interface List (idk if its helfull but maybe related)
- The exact related article
the point that you can see in the last one and making me disappointed and making me to ask another question is the title of article which is : Integration between LPR Camera and NVR(VMS),
which made me (idk even if its a right question to ask) , well what is the difference between my pc and that VMS or NVR? how should they be able to catch the data and im not? there should be a way i mean. does it have some kind of server or something that i cant run on a pc? how could it be possible to cant do something with a pc?
- i also tried to install VMS(Video Managemnt system) apps like AGENT DVR and geniusvision to see if they can catch the data or not but agent dvr had a lot of setting and couldn’t make it (also it was limited version don’t know if it has anything to do with it ) and the genius vision had a community liscense to active which led me to some what of a fail to register community license and also deleted that one.
-i also ran an http server in python usingpython -m http.server
and put the link of it in the camera http setting which led me to a ( now what?) situation - also downloaded Postman to send get or post requests using variables in the article (last un numbered link) but also coudlnt move further to send a packet.
- also tried to make TCP/IP connection using python but i didn’t know what to send as a packet.
- tbh also installed Wireshark to listen to the camera IP but at that point i just felt the whole concept of me and what im doing and where i am looking to go is just WRONG so i didn’t yet.
At last this is my set up of everything i have and feel free to suggest if i need to purchase anything :
- Windows 11 pro 23H2 build 22631.3958
- Camera is in another city and i routed it, so i can ping it and it can ping me too
You can see my level of miserable ness (if the word even exist) so i will drastically accept any related and unrelated help or even a friendly short convo with out any info thanks much.