View Full Version : Send data to a website?
04-14-2007, 01:10 AM
The above is what I need to send.
Is there a way to do this with a stamp or stamp accesories?
I am trying to create a weather station that does not need a PC connected and on to update from my weather station. Any and all ideas will be greatly appreciated, thanks.
04-15-2007, 01:17 AM
Have a look at the Pink: http://www.parallax.com/detail.asp?product_id=30013
04-15-2007, 08:13 AM
The pink cannot generate http requests on its own with the current firmware. This means you will have to look at other device servers. I have used the siteplayer telnet for generating http requests before, and it works relatively well. Other device servers that come to mind are the xport and digi devices.
I have also wanted to make my weather station talk directly with wunderground's update servers. Unfortunately I could not do this since I had a embedded web server that could not do requests, so I put a cron script on a linux box that would parse the data and submit it directly to wunderground. This also loosened the need for having to calculate the UTC time format required for wunderground.
04-15-2007, 11:18 AM
Thanks skylight and Harrison, I looked at the pink and could not see a way to send the data needed. I'm looking at the xport and have a siteplayer (not the telnet though) and have it displaying some data from my Dallas 1-wire station. I have the station feeding a TAPR T238 which outputs a serial text string to a stamp that parses the data and sends another string to the siteplayer. I still have more sensors to add and then (if I can figure this out) will go live. Thanks and if I come up with anything I'll let you know.
04-15-2007, 06:16 PM
It's not exactly clear what you need to do.
What do you mean by "send"? To a phone? by e-mail?
If all you need is a web page to display data sent from a Stamp, then the PINK can certainly do the job.
04-16-2007, 04:32 AM
According to the instructions on the site I need to send the above from my browser and the other site will get the info and process it. I just don't know how to do that without a PC involved. The pink will send email and others will send telnet or udp packets but I'm not sure how to send to an HTTP address. I'm still looking elsewhere for the answer. Thanks though.
04-16-2007, 07:07 AM
To be able to send a request like a browser does, you need to have a device that supports telnet or raw tcp connections.
A browser simply sends the following via a tcp socket to a server during the request cycle:
GET /blah.php?a=2&b=4 HTTP/1.1
This in effect does the same as going to http://www.example.com/blah.php?a=2&b=4 in your browser.