Author Topic: Logging External Data - web service?  (Read 1120 times)

chrisjx

  • Newbie
  • *
  • Posts: 3
Logging External Data - web service?
« on: April 07, 2010, 02:04:09 AM »
I have set up a Basic User account because I don't have an IO-204 yet.  I noticed that the Basic account allows External Data Logging and Remote Access to Data. 

I set up a Module of type: External Input and I see the API key, but I can't figure out how to input my data or what the call would be to insert my data.

I am experimenting with a remote monitoring camera setup which captures an image once every minute.  I am collecting 1440 images a day.  I have a method to generate the average brightness of each image and I would like to push that value into the data log (thereafter charting it).  Then I could display the overview the brightness at the location and be able to correspond that with the next input, the performance of the panels.

Anyway, is there a web service call I can make to insert records into the data log?  I happen to be using C# in ASP.NET, but I'll work with whatever I can get.

Thanks for any advice,
Chris.

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
Re: Logging External Data - web service?
« Reply #1 on: April 11, 2010, 01:26:13 AM »
The API is up and running, it's undocumented at the moment. We are still working on the documentation and testing. I will send you how to use it via email so you try it out.
ioBridge Support
Community Team

Ollie

  • Newbie
  • *
  • Posts: 19
Re: Logging External Data - web service?
« Reply #2 on: April 21, 2010, 10:49:44 PM »
May I test this as well?

uknative

  • Newbie
  • *
  • Posts: 28
Re: Logging External Data - web service?
« Reply #3 on: April 22, 2010, 08:54:48 AM »
Could I also be included in the testing?  ;D

irkgreen

  • Newbie
  • *
  • Posts: 48
Re: Logging External Data - web service?
« Reply #4 on: July 26, 2010, 06:11:39 PM »
Is the external data log tied to an ioBridge module?

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
Re: Logging External Data - web service?
« Reply #5 on: July 26, 2010, 09:25:51 PM »
No, anything that can POST/GET can use the service.
ioBridge Support
Community Team

irkgreen

  • Newbie
  • *
  • Posts: 48
Re: Logging External Data - web service?
« Reply #6 on: July 27, 2010, 09:13:51 AM »
Perhaps I am missing something here.  This isn't documented in the wiki yet, correct?

I was hoping to log data sent via a serial device.  Would this service be the way to go?  Could I hook a serial device to the serial smart board and have it log serial messages?  Does it need to send a [[[data_log|key|timestamp|data]]] message and that would create the log?

Sorry for all the questions.

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
Re: Logging External Data - web service?
« Reply #7 on: July 27, 2010, 10:17:43 AM »
You're right, you can also use the API to data log serial strings with the IO-204.

[[[data_log|key|timestamp|data]]]

Create the external data log and you will be given the key. If you use leave the timestamp blank, the service fills in the current timestamp.
ioBridge Support
Community Team