Discovered this on a raspberry-pi running raspbian (don't know if debian specific as I saw someone else commenting on it in the archives)
https://gist.github.com/Elwell/5538497 pi@raspberrypi /usr/bin $ pi@raspberrypi /usr/bin $ curl -v http://127.0.0.1:8080/text/10.67C6697351FF * About to connect() to 127.0.0.1 port 8080 (#0) * Trying 127.0.0.1... * connected * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) > GET /text/10.67C6697351FF HTTP/1.1 > User-Agent: curl/7.26.0 > Host: 127.0.0.1:8080 > Accept: */* > * additional stuff not fine transfer.c:1037: 0 0 * HTTP 1.0, assume close after body < HTTP/1.0 200 OK < Date: Wed, 08 May 2013 06:14:46 GMT < Server: owhttpd < Last-Modified: Wed, 08 May 2013 06:14:46 GMT < Content-Type: text/plain < { "address":"1067C6697351FF8D", "alias":"", "crc8":"8D", "errata":[], "family":"10", "id":"67C6697351FF", "locator":"vwtxlbznryjdohbv", "power":"false", "r_address":"8DFF517369C66710", "r_id":"FF517369C667", "r_locator":"hmyuiggtyqjtmuqi", "temperature":" 81.2006", "temphigh":" 7.08083", "templow":" 85.8895", "type":"DS18S20", * nread <= 0, server closed connection, bailing * Closing connection #0 }pi@raspberrypi /usr/bin $ curl -v http://127.0.0.1:8080/json/10.67C6697351FF * About to connect() to 127.0.0.1 port 8080 (#0) * Trying 127.0.0.1... * connected * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) > GET /json/10.67C6697351FF HTTP/1.1 > User-Agent: curl/7.26.0 > Host: 127.0.0.1:8080 > Accept: */* > * additional stuff not fine transfer.c:1037: 0 0 * HTTP 1.0, assume close after body < HTTP/1.0 200 OK < Date: Wed, 08 May 2013 06:14:53 GMT < Server: owhttpd < Last-Modified: Wed, 08 May 2013 06:14:53 GMT < Content-Type: text/plain < address 1067C6697351FF8D alias crc8 8D errata family 10 id 67C6697351FF locator qmihntkddnalwnms power 1 r_address 8DFF517369C66710 r_id FF517369C667 r_locator satqqeldacnnpjfe temperature 84.1657 temphigh 76.6387 templow 71.5065 type DS18S20 * nread <= 0, server closed connection, bailing * Closing connection #0 pi@raspberrypi /usr/bin $ dpkg -l owhttpd Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===========================-==================-==================-=========================================================== ii owhttpd 2.8p15-1 armhf HTTP daemon providing access to 1-Wire networks pi@raspberrypi /usr/bin $ it'd also be nice if the json version could be sent with Content-Type: application/json to be standards compliant http://tools.ietf.org/html/rfc4627 Ta Andrew ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
