PlaceOS/drivers

Issue with driver to detect People Count

Closed this issue · 5 comments

Sensor count set to a room once is not retained. To reproduce:

  • Set the sensor count to 10 and execute the command for room 6-09.
  • Worked initially for one event
  • Switched to another system in building zone in backoffice
  • Created another event for room 6-09
  • For system 6-09 on checking the debug logs, people count was shown as 0

Screen Shot 2022-11-09 at 5 56 01 pm

w-le commented

Thanks sravani,
Can you help grab the js console logs from backoffice (Log level info, error and verbose) while the debug checkbox of the Eventattendancerecorder and Staff API modules in that room are selected, at the moment that the event ends? Paste the logs here or link them here to a secret gist.github.com.

This is the moment that eventattendancerecorder module will tell staff-api module to execute patcheventmetadata to store the people count for that event. The key to solving this issue will the be the outcome of that patcheventmetadata (Or confirming that it did not occur at all for some buggy reason). In an initial test in that same system I did confirm that the patcheventmetadata succeeded (Mia, Steve and I spent several weeks debugging it in placeos Dev using the above method and others)

Sure I've created another event now to monitor the logs. I'll share them once event ends

w-le commented

thanks for troubleshooting @ksra08 , steve has made a fix and i've deployed the updated driver to the cluster we were testing on. Do let us know if that has resolved the issue, thanks.

86454d8

@stakach Noticing 0 counts again for few events today. It might have occurred after these back to back meetings in the screenshot below got ended. The last 3 meetings below returned 0 all the previous events worked fine.
Screen Shot 2022-11-17 at 2 58 19 pm
Screen Shot 2022-11-17 at 3 02 19 pm

the issue here is stale data
image

as I was using this to test room booking cancellation, so just need to update it periodically even if it's to the same count