Azure-Samples/MyDriving

Hard stops & Hard Accelerations: Stream analytics job return 0

babasokale opened this issue · 2 comments

IoT Hub receives the data from the mobile gateway and then stream analytics pulls the data to calculate hard stops and hard accelerations. I have used the same query but it's not calculating the result. It always returns 0. Though I tried to drive fast and getting slowdown to make sure we have data it doesn't calculate the result. Any help on this is much appreciated.

I am not sure if this was 100% integrated, it was a long time ago and this data actually came from machine learning algorithms, not the IoT hub directly. I would have to look at the implementation again, but the odb sensor just sent raw data to the hub combined with location.

Hi,
Machine Learning algorithm calculates driver is Good or Bad. The logic to calculate Hard Stops and Hard Acceleration is there inside Stream Analytics job. The sample data provided on in MyDriving code on GitHub for Machine Learning is different than what now app stores data in Blob Storage.
Stream Analytics Job which calculates Hard Stop & Hard Acceleration:
https://github.com/Azure-Samples/MyDriving/blob/master/src/StreamAnalytics/asa_sqlsink_powerbisink_query.txt