• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Contribute to openweathermap
#11
Just my two cents: I would go for possibility 3, in case someone would not want to publish their data, so that they can choose not to. Or possibility 2, and add an option for enabling/disabling share (disabled by default).
 
Reply
#12
Of course one must be able to decide to share or not.

Therefor I mentioned "Extra setting to enable/disable sending the weather data........"
 
Reply
#13
@curlymo: I am not sure whether I understand your question but ist has to be formated just like any other POST request:
( have not tried this because I use cURL)

POST /data/post HTTP/1.1
host: openweathermap.org
Authorization: Basic Base64($username:$pass)
temp=$temperature&humidity=$humidity&lat=$lat&long=$long&name=$name
 
Reply
#14
Exactly the answer to my question. So it's not a urlencoded stringified json object that i post, but a regular name=value pair.
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)