Shop OBEX P1 Docs P2 Docs Learn Events
Send data to a website? — Parallax Forums

Send data to a website?

FranklinFranklin Posts: 4,747
edited 2007-04-15 23:07 in BASIC Stamp
[url=http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=KCASANFR5&PASSWORD=XXXXXX&][u][color=#0000ff]http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=KCASANFR5&PASSWORD=XXXXXX&[/color][/u][/url]dateutc=2000-01-01+10%3A32%3A35&winddir=230&windspeedmph=12&windgustmph=12&tempf=70&rainin=0&baromin=29.1&dewptf=68.2&humidity=90&weather=&clouds=&softwaretype=vws%20versionxx&action=updateraw

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.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen

Comments

  • skylightskylight Posts: 1,915
    edited 2007-04-14 17:17
  • Harrison.Harrison. Posts: 484
    edited 2007-04-15 00:13
    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.

    Harrison
  • FranklinFranklin Posts: 4,747
    edited 2007-04-15 03:18
    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.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • RDL2004RDL2004 Posts: 2,554
    edited 2007-04-15 10:16
    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.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Rick
  • FranklinFranklin Posts: 4,747
    edited 2007-04-15 20:32
    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.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Harrison.Harrison. Posts: 484
    edited 2007-04-15 23:07
    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
    Host: www.example.com

    This in effect does the same as going to http://www.example.com/blah.php?a=2&b=4 in your browser.

    Harrison
Sign In or Register to comment.