Bwired Googlemaps upload data webservice

Forum about Questions, discussions and announcements regarding the Bwired website owned by Pieter Knuvers

Bwired Googlemaps upload data webservice

Postby Digit » Thu Mar 19, 2009 9:03 pm

Yep.
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3101
Joined: March 2006
Location: Netherlands

Bwired Googlemaps upload data webservice

Postby RDNZL » Thu Mar 19, 2009 9:11 pm

I also had to remove the ' from my data, otherwise Pieter's script failed, but that was before I add the utf-8 encoding to my xml, don't know if that fixed it or not.

Regards,
Ron.
User avatar
RDNZL
Forum Moderator
Forum Moderator
 
Posts: 919
Joined: September 2006
Location: Dordrecht, The Netherlands

Bwired Googlemaps upload data webservice

Postby Digit » Thu Mar 19, 2009 9:15 pm

I use a single quote from the beginning, but also UTF-8 encoding:

Image
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3101
Joined: March 2006
Location: Netherlands

Bwired Googlemaps upload data webservice

Postby Bwired » Thu Mar 19, 2009 9:34 pm

Ok Lorenzo
I see the errors coming in but no valid XML.
I send you a sample, please try this and don't change a thing for now.
User avatar
Bwired
Administrator
Administrator
 
Posts: 4735
Joined: March 2006
Location: Netherlands

Bwired Googlemaps upload data webservice

Postby Bwired » Thu Mar 19, 2009 9:36 pm

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by RDNZL</i>
<br />I also had to remove the ' from my data, otherwise Pieter's script failed, but that was before I add the utf-8 encoding to my xml, don't know if that fixed it or not.

Regards,
Ron.
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">Hi Ron
you're UTF-8 is coming in now so special characters should work now.
User avatar
Bwired
Administrator
Administrator
 
Posts: 4735
Joined: March 2006
Location: Netherlands

Bwired Googlemaps upload data webservice

Postby Bwired » Fri Mar 20, 2009 11:45 pm

Sooty
I have your UK time up and running now.
Still have to work on the next day part, because I'm missing you for 1 hour in the Mysql select!
Can you help Drmacchi again, the script is not working, the part of filling the lamp status gives errors. If we deletet that Entry then the script is working. I think it has something to with variable type or so? Can you test this and see if it works on your side.
Thanks again!
User avatar
Bwired
Administrator
Administrator
 
Posts: 4735
Joined: March 2006
Location: Netherlands

Bwired Googlemaps upload data webservice

Postby drmacchi » Fri Mar 20, 2009 11:57 pm

Sooty, Bwired :Thanks to both ! lorenzo
drmacchi
Advanced Member
Advanced Member
 
Posts: 827
Joined: August 2007
Location: Italy

Bwired Googlemaps upload data webservice

Postby Sooty » Sat Mar 21, 2009 12:26 am

Lorenzo,

The problem with the lamp status may be a difficult one. If the status string contains html or other strange characters then it may cause problems, thats why I went for the DeviceStatus in the script. That approach works fine at my end with the DeviceStatus.

I will add this to my script now an do an upload just to check that all is OK and we can go from there.

Paul..
Sooty
Member
Member
 
Posts: 202
Joined: March 2008
Location: United Kingdom

Bwired Googlemaps upload data webservice

Postby Bwired » Sat Mar 21, 2009 12:37 am

ok goes wrong
you need to fill the units

- <Entry>
<Name>Lamp 1</Name>
<ID>8</ID>
<Units />
<Value>ON</Value>
</Entry>
User avatar
Bwired
Administrator
Administrator
 
Posts: 4735
Joined: March 2006
Location: Netherlands

Bwired Googlemaps upload data webservice

Postby Bwired » Sat Mar 21, 2009 12:47 am

What is going wrong? this is coming in but not processed on my side!
I will check this first.....???
Get back on this, thanks Sooty

- <Entry>
<Name>Lamp 1</Name>
<ID>8</ID>
<Units>.</Units>
<Value>ON</Value>
</Entry>
User avatar
Bwired
Administrator
Administrator
 
Posts: 4735
Joined: March 2006
Location: Netherlands

Bwired Googlemaps upload data webservice

Postby Sooty » Sat Mar 21, 2009 12:49 am

Pieter,

I am pretty sure that everything is formatted OK. I also get an error at this end. I was just about to change the value in the lamp status to a manual string entry to see if that was the problem.

Paul..
Sooty
Member
Member
 
Posts: 202
Joined: March 2008
Location: United Kingdom

Bwired Googlemaps upload data webservice

Postby Bwired » Sat Mar 21, 2009 12:57 am

Hi Paul & Lorenzo
I found it, it's a variable type at my side :-)
Running some tests now, will be online within 10 minutes.
The <unit> can be set to blank again.
Thanks!
User avatar
Bwired
Administrator
Administrator
 
Posts: 4735
Joined: March 2006
Location: Netherlands

Bwired Googlemaps upload data webservice

Postby Noel » Sat Mar 21, 2009 1:07 am

<value> can only be numbers!
I found this problem when an anonymous caller cals me, and when I upload the data to your server.
I get a 500 (server) error back from you.

--
Image
User avatar
Noel
Senior Member
Senior Member
 
Posts: 1790
Joined: February 2008
Location: Netherlands

Bwired Googlemaps upload data webservice

Postby Sooty » Sat Mar 21, 2009 1:14 am

Perhaps Peiter is going to change this?

On the Time Zone subject.
I suppose that each users data would need to be "Time Zoned" then "Today" calculated on a per user basis.

Paul..
Sooty
Member
Member
 
Posts: 202
Joined: March 2008
Location: United Kingdom

Bwired Googlemaps upload data webservice

Postby Bwired » Sat Mar 21, 2009 1:18 am

Right Paul & Noel I changed this, so it should be working now. Type is now Varchar for <Value>
@Noel: you can change your phonesettings if you want
@Lorenzo: Your lamp upload should work now also
User avatar
Bwired
Administrator
Administrator
 
Posts: 4735
Joined: March 2006
Location: Netherlands

PreviousNext

Return to Bwired Forum

Who is online

Users browsing this forum: No registered users and 1 guest