krzychb / OnlineHumidifier

How to automatically control humidity in your home - a step by step guide
GNU Lesser General Public License v2.1
42 stars 9 forks source link

Temperature #7

Closed xxvms closed 7 years ago

xxvms commented 7 years ago

Hi Krzychb

first of all Merry Christmas :) i have followed your tutorial thanks for that. However I am struggling to get Humidity and temperature together. so what I have done is in sketch If I have this line ` getJSON += "/input/post.json?json={Temperature:" + (String) temperature + "}"; and of course same goes for Humidity it works fine.

I am able to get temperature readings, however when I try to combine both Temperature and Humidity I am not getting anywhere. my line of code is as follows:

  `getJSON += "/input/post.json?json={Humidity:" + (String) humidity +", Temperature:" + (String) temperature +"}";

` and message I got from console is Data sent to Emoncms Humidity: 45.40 Temperature: 22.60

so I should be able to see 2 feeds one for Humidity and one for temperature, but I don't. Can you suggest what I am doing wrong?

thanks :) `

krzychb commented 7 years ago

Closed as it looks like a duplicate of #8