ACC UDP interface listener written in python 😀.
Basic code example.
# Setup basic information
info = {
"name": "Ryan Rennoir",
"password": "asd",
"speed": 250,
"cmd_password": ""
}
# Create UDP listener instance
aui = accUpdInterface("127.0.0.1", 9000, info)
aui.start()
while condition:
# Receive most latest data available
data = aui.udp_data # Return a dict
# Close listener process and socket
aui.stop()
Kunos don't give any documentation on their udp interface except the code example they give and I'm too lazy to write one myself 😅
{
"connection": {
"id": ...,
"connected": ...
},
"entries": {},
"session": {
"track": "None",
"session_type": ...,
"session_time": ...,
"session_end_time": ...,
"air_temp": ...,
"track_temp": ...
},
}