Author Topic: Logging State Changes ???  (Read 786 times)

maxs

  • Newbie
  • *
  • Posts: 2
Logging State Changes ???
« on: July 02, 2010, 03:50:51 PM »
I'm trying to log state changes.  I have a water meter with a reed switch in it that connects for 4 seconds for every gallon dispensed.  I followed the instructables directions for this project:

http://www.instructables.com/id/Web-Based-Water-Metering-with-ioBridge/

I've tried all the logging options, but it still either doesn't log anything or logs only one event every 10 minutes.  I connected the ground to the digital input (through the water meter).

I called and emailed ioBridge support, but they must all be on vacation because I haven't heard a peep from them.

Does anyone know what I might be doing wrong?  I just want to count the number of pulses in a 10 minute period and then graph them.  Maybe I need to connect the +5VCC to the digital input through the water meter?

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 668
    • ioBridge Support
Re: Logging State Changes ???
« Reply #1 on: July 02, 2010, 04:07:14 PM »
Sorry for the delay.

I think the issue is with push messages. By default, the module does not automatically push messages to the server until it's enabled.

Under the modules tab, find your module. Then under the channel that has the water meter attached, click on Settings.

Change Channel Push Update Mode to Push Update on Digital State Change

You should see the input change as the water meter pulses if you are looking at the digital input. This will also be recorded by your data log.

I have some more info on the Wiki: http://www.iobridge.net/wiki/data-logging

Let us know if that works.
ioBridge Support
Community Team

maxs

  • Newbie
  • *
  • Posts: 2
Re: Logging State Changes ???
« Reply #2 on: July 03, 2010, 01:44:35 PM »
Thanks, I got it working now :)

I made the change you mentioned and then created a log (Digital Input Counting) set to 10 minute intervals.

Thanks for your help.  This will really help when my mom leaves the water on in the garden or when undeground pipes break and we become the water company's favorite customer of the month.

I setup an alert to text message my phone when more than 20 gallons are used in a 10 minute period.  I may have to tweek that number a little so I only get text messages when there is an unusual event like those mentioned above.

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 668
    • ioBridge Support
Re: Logging State Changes ???
« Reply #3 on: July 03, 2010, 02:55:34 PM »
Glad it's working now.

Also that's a great application!
ioBridge Support
Community Team

texasclodhopper

  • Newbie
  • *
  • Posts: 37
Re: Logging State Changes ???
« Reply #4 on: July 04, 2010, 07:54:40 AM »
Yes that is a great application!

I only wish I had it when my teenager was growing up!  Boy, the shower water I could have saved!  His phone would have beeped after 100 gallons, and he would HAVE to get out and go look to see!  ;)

jbatchelor51

  • Newbie
  • *
  • Posts: 9
Re: Logging State Changes ???
« Reply #5 on: October 19, 2010, 11:35:03 AM »
On this note, I am attempting to log the date,time when the state change occurs.  On and Off.   I can do this via Excel XML mapping, VBA refreshing and looking for the state change and driving code accordingly.  This could probably be done in scripting as well, but nothing builtin?  Maybe push a message on state change?  I am going to tie the time back to run time for my boiler and calculate gallons used.  any other ideas?

jim

jbatchelor51

  • Newbie
  • *
  • Posts: 9
Re: Logging State Changes ???
« Reply #6 on: October 26, 2010, 01:40:03 PM »
I managed to get this by enabling an email push to Outlook, where outlook processes a rule, that runs a VBA script to Start Excel, log the date-time stamp, save the book, shut down Excel and wait for the next email.

I have had an email noting the I/O turned off not show up....dunno why...it was either never pushed, or never received...who knows..just 1 though.

Now its off to add VBA to do time subtraction and gallons used calculations.