- Tue Dec 30, 2014 4:30 am
#5941
Hi Pigs Fly
I saw this code from you in another post i cannot get it to work, tied it on 0.9.2 (219) & 0.9.4 (222) it just produces :
stdin:1: attempt to compare number with nil
Hi Sancho
I don't think the script is crappy, the getTemp() function is working great it gets both my sensor readings perfectly however, although the automated post part again works exactly how I want it to work (its constantly sending the temperature of my second sensor to my web page) my skill is so low that I cannot figure out how get and send both sensor reading (whether in a single POST or 2 separate POSTS) I don't think your suggestion of a separate web interface will personalty help me as I want to incorporate the sensor reading into my own web page,
Finally sorry for the confusion when I said "web page" what i meant was: when I enter
http://192.168.0.179:8080/ into chrome browser address bar and press enter it displays on the screen only the second sensor reading, its clear to me that although getTemp successfully reads both my sensors the srv=net.createServer(net.TCP) part of the code is not designed to POST both sensor readings, currently.