2

I have a raspberry PI set-up on my network and I'm tracking movement from a PR sensor. As per this article: http://nicomiceli.com/tracking-your-home-with-google-analytics/

I'm sending movement as hits to Google Analytics with success. However, I'm noticing that any movement is sending multiple hits or triggering multiple times.

Is there any suggestion of amends to the code that could reduce the re-triggering to minimise this issue?

1 Answer 1

1

update: adding something like

time.sleep(0.01)

at the end of the function before looping seems to do the trick fairly well so far as per the example here: http://www.raspberrypi-spy.co.uk/2013/01/cheap-pir-sensors-and-the-raspberry-pi-part-1/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.