Skip to content

Temperature problem #8

@xxvms

Description

@xxvms

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 :)
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions