balassy / MMM-RemoteTemperature

MagicMirror module that displays temperature from a remote sensor.
MIT License
15 stars 6 forks source link

cURL example #7

Closed egomes951 closed 5 years ago

egomes951 commented 5 years ago

Hi,

I've an Arduino project where a collect temperature and humidity of each room. I'd like to post all rooms temp and hum from my central Aurduino. Can you please give a cURL example?

Thanks, Elisio

egomes951 commented 5 years ago

Ok.... after struggling with this a few days... where goes the solution: curl -X POST http://192.168.1.113:8080/remote-temperature -H 'content-type: application/json' -d '{"temp":"12", "humidity":"1", "sensorId": "1" }'

balassy commented 5 years ago

I'm glad it finally solved and thanks for sharing the solution!