Bwired Googlemaps upload data webservice

Forum about Questions, discussions and announcements regarding the Bwired website owned by Pieter Knuvers
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post 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
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post 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
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post by Bwired »

Welkom MO046'S INFO (Maurice) te Schinnen, limburg ook op de kaart nu :-)
Geweldig veel data ook!
dutchnomad
Member
Member
Posts: 52
Joined: Fri Oct 24, 2008 9:03 am
Location: Netherlands

Bwired Googlemaps upload data webservice

Post 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
User avatar
Rene
Global Moderator
Global Moderator
Posts: 1689
Joined: Wed Oct 08, 2008 3:54 pm
Location: Netherlands

Bwired Googlemaps upload data webservice

Post 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.
Alexander
Global Moderator
Global Moderator
Posts: 1532
Joined: Sat Mar 10, 2007 11:19 pm
Location: Netherlands

Bwired Googlemaps upload data webservice

Post by Alexander »

wow... growing rapidly!!
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post 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
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post 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
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post 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)
Lennart
Member
Member
Posts: 497
Joined: Sat Jul 22, 2006 10:58 am
Location: Netherlands

Bwired Googlemaps upload data webservice

Post 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
Sooty
Member
Member
Posts: 204
Joined: Sat Mar 22, 2008 11:29 pm
Location: United Kingdom

Bwired Googlemaps upload data webservice

Post 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">
Sooty
Member
Member
Posts: 204
Joined: Sat Mar 22, 2008 11:29 pm
Location: United Kingdom

Bwired Googlemaps upload data webservice

Post 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..
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Bwired Googlemaps upload data webservice

Post 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.
Lennart
Member
Member
Posts: 497
Joined: Sat Jul 22, 2006 10:58 am
Location: Netherlands

Bwired Googlemaps upload data webservice

Post 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
Sooty
Member
Member
Posts: 204
Joined: Sat Mar 22, 2008 11:29 pm
Location: United Kingdom

Bwired Googlemaps upload data webservice

Post by Sooty »

Lennart,

I have uploaded version 0.0.0.4.

This fixes the issue when adding the 11th device.

Paul..
Post Reply

Return to “Bwired Forum”