A weather station that uses GPS and WiFi to get the weather where you are. Almost better than actually going outside!
Dependencies: 4DGL-uLCD-SE ESP8266NodeMCUInterface GPS MbedJSONValue mbed-rtos mbed-src
Diff: query.lua
- Revision:
- 0:c4da54879553
diff -r 000000000000 -r c4da54879553 query.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/query.lua Sun Mar 13 21:09:49 2016 +0000 @@ -0,0 +1,6 @@ +LUA( + sk=net.createConnection(net.TCP, 0); + sk:on("receive", function(sck, c) print(c) end); + sk:connect(80, "%s"); + sk:send("GET /api/%s/geolookup/q/%f,%f.json HTTP/1.1\r\nHost: api.wunderground.com\r\nConnection: keep-alive\r\nAccept: */*\r\n\r\n"); +) \ No newline at end of file