{"action":"created","issue":{"url":"https://api.github.com/repos/brendanwhitfield/python-OBD/issues/21","labels_url":"https://api.github.com/repos/brendanwhitfield/python-OBD/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/brendanwhitfield/python-OBD/issues/21/comments","events_url":"https://api.github.com/repos/brendanwhitfield/python-OBD/issues/21/events","html_url":"https://github.com/brendanwhitfield/python-OBD/issues/21","id":82564732,"number":21,"title":"0.4.0 with async causes traction control and flat tire warning to trigger randomly","user":{"login":"HawtDogFlvrWtr","id":6370666,"avatar_url":"https://avatars.githubusercontent.com/u/6370666?v=3","gravatar_id":"","url":"https://api.github.com/users/HawtDogFlvrWtr","html_url":"https://github.com/HawtDogFlvrWtr","followers_url":"https://api.github.com/users/HawtDogFlvrWtr/followers","following_url":"https://api.github.com/users/HawtDogFlvrWtr/following{/other_user}","gists_url":"https://api.github.com/users/HawtDogFlvrWtr/gists{/gist_id}","starred_url":"https://api.github.com/users/HawtDogFlvrWtr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HawtDogFlvrWtr/subscriptions","organizations_url":"https://api.github.com/users/HawtDogFlvrWtr/orgs","repos_url":"https://api.github.com/users/HawtDogFlvrWtr/repos","events_url":"https://api.github.com/users/HawtDogFlvrWtr/events{/privacy}","received_events_url":"https://api.github.com/users/HawtDogFlvrWtr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-05-29T20:00:52Z","updated_at":"2015-06-16T10:28:10Z","closed_at":null,"body":"This didn't happen in 0.2.0, but with 0.3.0+, it triggers a few vehicle warning randomly. After looking at the changes, I think it's the async sleep being changed from 1.0 to 0.25. I believe it's attempting to push multiple commands at once and tripping over each and actually sending false signals to the vehicle that it interprets as an issue. "},"comment":{"url":"https://api.github.com/repos/brendanwhitfield/python-OBD/issues/comments/112378263","html_url":"https://github.com/brendanwhitfield/python-OBD/issues/21#issuecomment-112378263","issue_url":"https://api.github.com/repos/brendanwhitfield/python-OBD/issues/21","id":112378263,"user":{"login":"HawtDogFlvrWtr","id":6370666,"avatar_url":"https://avatars.githubusercontent.com/u/6370666?v=3","gravatar_id":"","url":"https://api.github.com/users/HawtDogFlvrWtr","html_url":"https://github.com/HawtDogFlvrWtr","followers_url":"https://api.github.com/users/HawtDogFlvrWtr/followers","following_url":"https://api.github.com/users/HawtDogFlvrWtr/following{/other_user}","gists_url":"https://api.github.com/users/HawtDogFlvrWtr/gists{/gist_id}","starred_url":"https://api.github.com/users/HawtDogFlvrWtr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HawtDogFlvrWtr/subscriptions","organizations_url":"https://api.github.com/users/HawtDogFlvrWtr/orgs","repos_url":"https://api.github.com/users/HawtDogFlvrWtr/repos","events_url":"https://api.github.com/users/HawtDogFlvrWtr/events{/privacy}","received_events_url":"https://api.github.com/users/HawtDogFlvrWtr/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T10:28:10Z","updated_at":"2015-06-16T10:28:10Z","body":"I'm still getting the ding now and again and can't seem to figure out what's causing it. i'm going to switch from async to regular calls for the time being to see if I still get it. It's the only way I can think of, to determine if it's my code. I'm adding each \"static\" metric to the watch list and merely pulling the information from it every 5 seconds or so, yet it's still dinging shortly after start, sometimes.\r\n\r\ndef mainLoop(connection, portName, engineStatus):\r\n    dumpObd(connection)\r\n    for metrics in metricsArray:\r\n        if metrics != 'time':\r\n            obdWatch(connection, metrics)  # Watch all metrics\r\n\r\n    connection.start()  # Start async calls now that we're watching PID's\r\n    time.sleep(5)  # Wait for first metrics to come in.\r\n\r\n    # FIX: NEED TO MAKE THIS HIS 01 TO DETERMINE SUPPORTED PID'S\r\n    while engineStatus is True:\r\n        callBack('1', '1')  # Telling uhacknect the pi is online\r\n        tempValues = []\r\n        timeValue = time.time()\r\n        for metrics in metricsArray:\r\n            if metrics == 'time':  # Grab current time if metric is asking to provide the time.\r\n                value = int(timeValue)\r\n            else:\r\n                value = connection.query(obd.commands[metrics])\r\n                value = value.value\r\n"}}