#? what i was after was an easy way to

1 messages · Page 1 of 1 (latest)

kindred karma
#

The integration is highly unlikely to support that

languid radish
#

But you could try to create something with the RESTful Command integration, if you want to push HA data to them. If the work is worth it.

high hatch
#

Well it only has to be done once... and it could benefit other... and I live in a remote area so chances that others have done it are slim

high hatch
#

bummer.... their api documentation is above what my head can figure, ie what i miss is an example on how to upload data

ie some examples with complete url and what fields can be put in there

high hatch
#

oh well i came as far as creating a weather station with them and being able to list the onces created

#

only need to figure how to actual send data and verify it

high hatch
#

well.. i have emailed them back and forth and they suggest to use postman

#

ie i take its a test tool and its used to build up an example url that you can use with curl post data to them

#

the response i get this time is:

{
"code": 400001,
"message": "unmarshal type error: expected=[]types.MeasurementRequest, got=object, offset=1"
}

but that leaves me stranded as google is the enemy here

#

no where i found an explanation as to what is wrong

somber hound
#

I'm pretty sure it could be done fairly easily with some tinkering, looking at their docs. https://openweathermap.org/stations

I gather you want to send a one-time post request for creating a station - this would probably be easiest done with Postman. You will get a respone like this with some unique identifiers like an ID and user id etc:

{
  "ID": "583436dd9643a9000196b8d6",
  "updated_at": "2016-11-22T12:15:25.96727176Z",
  "created_at": "2016-11-22T12:15:25.967271732Z",
  "user_id": "557066d0ff7a7e3897531d94",
  "external_id": "SF_TEST001",
  "name": "San Francisco Test Station",
  "latitude": 37.76,
  "longitude": -122.43,
  "altitude": 150,
  "source_type": 5
}

This should then be used in your automation when you send data. (The [POST]/measurements section in their docs).

Bit limited on time here so cant give you a full example (and what would be the fun in that), but have a look at the restful integration and figure out how to send sensor data as arguments that their api accepts. https://www.home-assistant.io/integrations/rest_command/

high hatch
#

as they suggested in email to me is to use postman to figure it out...

#

so the response is empty and i only changed the data sent in