Bwired Googlemaps upload data webservice

Forum about Questions, discussions and announcements regarding the Bwired website owned by Pieter Knuvers
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 »

@Wifi: You need to use the vb extension for the script name

Rene.
User avatar
Noel
Senior Member
Senior Member
Posts: 1887
Joined: Tue Feb 12, 2008 12:13 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post by Noel »

LOL.. I've got BV :-)

--
Image
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 »

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by Bwired</i>
I'm thinking about selling this data to the highest bidder
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
As long as Nieuwegein is plotted where it is right now, you won't get 1 cent [:D][:D]
User avatar
Noel
Senior Member
Senior Member
Posts: 1887
Joined: Tue Feb 12, 2008 12:13 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post by Noel »

Hmmm<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"> Error 1 Running script xml2bwired.vb :method not found <hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
It's not my day..

--
Image
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 »

Chak is covering up his real location;-)

Rene.
User avatar
Noel
Senior Member
Senior Member
Posts: 1887
Joined: Tue Feb 12, 2008 12:13 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post by Noel »

this is what I have.
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Imports System.IO
Imports System.Net
Imports System.Text

sub main(parms As Object)
const url = "http://www.bwired.nl/Bwiredservice/receive.asp"
const screenname="wifi"
const name="wifi"
const passwd="xxxxxxx"
const city="Almere"
const gpslat="52.364463"
const gpslong="5.068431"
const title="Home"
const temp ="[5"
dim myXML
dim xmlhttp

myXML = hs.CreateStringClass
myXML.Add("<?xml version=""1.0"" encoding=""UTF-8"" ?>")
myXML.Add("<BWired>")
myXML.Add("<Init>")
myXML.Add("<DateTime>" & Now() & "</DateTime>")
myXML.Add("<UserName>" & name & "</UserName>")
myXML.Add("<Password>" & passwd & "</Password>")
myXML.Add("<ScreenName>" & screenname & "</ScreenName>")
myXML.Add("<Gpslat>" & gpslat & "</Gpslat>")
myXML.Add("<Gpslong>" & gpslong & "</Gpslong>")
myXML.Add("<City>" & city & "</City>")
myXML.Add("<Website />")
myXML.Add("<WebCamPicUrl />")
myXML.Add("<Title>" & title & "</Title>")
myXML.Add("</Init>")
myXML.Add("<Entry>")
myXML.Add("<Name>Outside Temperature</Name>")
myXML.Add("<ID>1</ID>")
myXML.Add("<Units>C</Units>")
myXML.Add("<Value>" & CStr(hs.DeviceValue(temp) / 10).Replace(",", ".") & "</Value>")
myXML.Add("</Entry>")
myXML.Add("</BWired>")

xmlhttp = WebRequest.Create(url)
xmlhttp.Method = "POST"
Dim byteArray As Byte() = Encoding.UTF8.GetBytes(myXML.Value)
xmlhttp.ContentType = "text/xml"
xmlhttp.ContentLength = byteArray.Length
Dim dataStream As Stream = xmlhttp.GetRequestStream()
dataStream.Write(byteArray, 0, byteArray.Length)
dataStream.Close()
Dim response As WebResponse = xmlhttp.GetResponse()
response.Close()

myXML.Reset
End Sub<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

--
Image
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 »

@Wifi: I don't know what is causing this error, seems something to do with .Net

@Chak: You are probably using the coordinates you configured in Homeseer by choosing the Amsterdam presets.

Rene.
Droezel
Member
Member
Posts: 104
Joined: Sun Jul 29, 2007 4:02 pm
Location: Belgium

Bwired Googlemaps upload data webservice

Post by Droezel »

Ok, I'm in. Sent a sample for authorisation.
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 wifi</i>
<br />Hmmm[quote] Error 1 Running script xml2bwired.vb :method not found <hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">Chak Or Rene can you mail wifi the script, perhaps that helps, could be something in the format etc, then we can rule those things out!
User avatar
TANE
Forum Moderator
Forum Moderator
Posts: 4806
Joined: Fri Apr 06, 2007 9:46 pm
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post by TANE »

52.052846;5.093622
This what I'm using.
did change it few times to see why it was not working
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post by Bwired »

We got out first foreigner (Belgium) on the data service! [:)]
Welcome Droezel!

@chak: you are all set now, Coordinates changed.
User avatar
Noel
Senior Member
Senior Member
Posts: 1887
Joined: Tue Feb 12, 2008 12:13 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post by Noel »

Okay.
I redid the script, and it looks like I've got it working (no clue why it did not work 1st)
So.. You should see some stuff comig in from me'. At the moment only one device, but I will be adding more later.

--
Image
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post by Bwired »

Works, saw you coming in!
I authorized you, so if you send again you are on the map (close to Rene :-))
User avatar
Noel
Senior Member
Senior Member
Posts: 1887
Joined: Tue Feb 12, 2008 12:13 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post by Noel »

Data is on it's way.
Re: close to Rene.
Yes I (we) know. Just as well that I have a netfilter :-)

--
Image
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Bwired Googlemaps upload data webservice

Post by Bwired »

Welcome Wifi, you're there :-)
Post Reply

Return to “Bwired Forum”