Ubidots Community

Water meter pulse counter

Hi,

We have a water meter that sends a pulse every so often which is connected to a digital input module. We are sending the 1 or 0 to ubidots, we now would like to count these 1’s. Can you help me please ?

Hi @ronald,

Thank you for sharing your questions with the community.

To count the number of 1 received you have two options:

  1. Create a synthetic variable that sums the ones within a period.

Please refer to the article below to learn more.

  1. Create a metric widget in a dashboard and set the aggregation method to sum. In that way, you avoid creating a new variable, and the value would change based on the date span selected.

Let me know if you have further questions!
-Isabel