Page 11 of 22

Bwired Googlemaps upload data webservice

Posted: Sun Mar 29, 2009 2:03 am
by Digit
AFAIK there is no xsd. But i think the examples posted in this topic are sufficient for you to create something that will be accepted and get you on the map.
I understand why an XSD is a good thing, however in this case i think referring to an XSD would scare people from trying to implement uploading to Bwired. Producing XML is one thing, using XSD is maybe a little to much to ask for, considering most members are here for domotica, not for IT.[:)]

Bwired Googlemaps upload data webservice

Posted: Sun Mar 29, 2009 2:54 am
by Bwired
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by dutchnomad</i>
<br />Hi I created a .net c# class to send data to Bwired. Not sure if the data will arrive, but I sent some.

Is there a description available of the data formats that can be send? Maybe an xsd, that would be the best?
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">I received you're XML file, so you did a good job!
You are authorized now, so start sending and you're on the map!
You are number 25!
Thanks.

Bwired Googlemaps upload data webservice

Posted: Sun Mar 29, 2009 11:37 pm
by Bwired
Welkom MO046'S INFO (Maurice) te Schinnen, limburg ook op de kaart nu :-)
Geweldig veel data ook!

Bwired Googlemaps upload data webservice

Posted: Mon Mar 30, 2009 10:54 am
by dutchnomad
As I said before, I created a simple class (C# .net 3.5) to upload sensor data. I added a small console program to show how it can be used. I included the complete Visual Studio 2008 solution. as the code is not relying on special features of C# .net 3.5 it is also easy to use it in .net 2.0.

Follow the link: http://www.myotherdrive.com/file/000.39 ... Bwired.zip

Extract with subdirectories!!

Suggestions and comments are welcome, code is subject to change

Dutchnomad

Bwired Googlemaps upload data webservice

Posted: Mon Mar 30, 2009 11:34 am
by Rene
Pieter, I included highs and lows for humidity and temperature. However to include the timestamp of these highs and lows these cannot be added to the value field because the timestamp will than be displayed between the value and the unit, e.g. '10.4 (12/03/2009 11:04:12) C'. For this reason I added the timestamp to the unit field, 'C (12/03/2009 11:04:12)'. But this means I added dynamic data to a more or less static field which might cause problems with any future developments. Is there a better way to do this?

Rene.

Bwired Googlemaps upload data webservice

Posted: Mon Mar 30, 2009 12:35 pm
by Alexander
wow... growing rapidly!!

Bwired Googlemaps upload data webservice

Posted: Mon Mar 30, 2009 1:40 pm
by Bwired
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by dutchnomad</i>
<br />As I said before, I created a simple class (C# .net 3.5) to upload sensor data. I added a small console program to show how it can be used. I included the complete Visual Studio 2008 solution. as the code is not relying on special features of C# .net 3.5 it is also easy to use it in .net 2.0.
Dutchnomad
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">Great for the Dot.Net guys, thanks for the codesample!

Bwired Googlemaps upload data webservice

Posted: Mon Mar 30, 2009 1:44 pm
by Bwired
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by rklootwijk</i>
<br />Pieter, I included highs and lows for humidity and temperature. However to include the timestamp of these highs and lows these cannot be added to the value field because the timestamp will than be displayed between the value and the unit, e.g. '10.4 (12/03/2009 11:04:12) C'. For this reason I added the timestamp to the unit field, 'C (12/03/2009 11:04:12)'. But this means I added dynamic data to a more or less static field which might cause problems with any future developments. Is there a better way to do this?

Rene.
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">I have low and high values in my database as well. If your temp etc. comes in I check for Low and High values and save it in your record with date and time. But it's not applicable for all devices and everybody has other devicename :-) So like dutchnomad is telling we need some kind off standard, but then again I don't want to make it to difficult like XSD's etc.

Bwired Googlemaps upload data webservice

Posted: Tue Mar 31, 2009 12:07 am
by Bwired
Hi All,
First welcome Lennart on the map!

I have added the Element <UTCTimeZone></UTCTimeZone> in the Init section of the XML.
There is no need to ADD this element if you are on Dutch time, the Bwired webservice can handle both XML layouts with or without the timezone element.
Values for the Timezone can be like -5, -4, 0, 1, 2, 3, 4 etc, if not filled Bwired local time will be set.
Sooty is it possible to update Xml2Bwired configuration tool for Homeseer, No Hurry! In the first topic you can see the new XML layout. (thanks to Willem for the info)

Bwired Googlemaps upload data webservice

Posted: Tue Mar 31, 2009 12:49 am
by Lennart
@Pieter: Thanks, everything seems to work fine using Pauls configuration tool.

@Paul: Would it be possible to extend the number of devices to upload to - let's say - 15 or 20?

Thanks!

Lennart

Bwired Googlemaps upload data webservice

Posted: Tue Mar 31, 2009 12:55 am
by Sooty
Hi Lennart.

It seems like ages since we met. Are you keeping OK.

I will add the time zone option and increase the devices to 20 tomorrow.

Paul..

<font size="1"><i>Bwired: Thanks Paul!</i></font id="size1">

Bwired Googlemaps upload data webservice

Posted: Tue Mar 31, 2009 9:48 am
by Sooty
I have added the time zone option (General Settings) and increased the maximum number of devices to 20.

The download links further up this post have been updated.
This version can just be installed over the top of the previous version.

Paul..

Bwired Googlemaps upload data webservice

Posted: Tue Mar 31, 2009 10:35 am
by drmacchi
Thank you Paul , i'll try that. Then, i've just bought an OREGON weather station wmr928, but i don't have RFXCOM. i was thinking to use virtual weather station, extract csv data and use VWS plugin for Homeseer, then use you utility. It should work.

Bwired Googlemaps upload data webservice

Posted: Tue Mar 31, 2009 11:17 am
by Lennart
Hi Paul,

Indeed, almost half a year ago... :-)

Anyway, thanks for increasing the number of devices. I installed the new version on top of the previous version (using the pending.txt and the zip). Everything works, except when adding the 11th device :-). I'm getting this error:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
System.Collections.ArrayList.get_Item(Int32 index) +7485640
Config.Btn_Add_Click(Object sender, EventArgs e) +576
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +78
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +100
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2863

Lennart

Bwired Googlemaps upload data webservice

Posted: Tue Mar 31, 2009 12:13 pm
by Sooty
Lennart,

I have uploaded version 0.0.0.4.

This fixes the issue when adding the 11th device.

Paul..