Hi Everyone,

Lovely to say hello to you :-)

A fast question in regards to getting weewx talking with OpenWeatherMap.

I'm almost there, but want to clarify a few things,

I followed the instructions here:
https://github.com/weewx/weewx/wiki/openweathermap

Ok, here's what's been successful so far.

1. Created an account with OpenWeatherMap
2. Created my API key
3. Via POSTMAN generated a station by utilising 
http://api.openweathermap.org/data/3.0/stations?appid=<MY-APP-KEY> 
and also pushing in the raw dat
{ "external_id": "HOWARD_SPRINGS", "name": "Howard Springs Updated 
Station", "latitude": -12.491170, "longitude": 131.073288, "altitude": 10 }


This is the 201 response I'm getting back.
{
    "ID": "5c92fa926c634e000131b6c2",
    "updated_at": "2019-03-21T02:44:34.153306891Z",
    "created_at": "2019-03-21T02:44:34.153306865Z",
    "user_id": "5c921de6a90c4e0007e54189",
    "external_id": "HOWARD_SPRINGS",
    "name": "Howard Springs Updated Station",
    "latitude": -12.49117,
    "longitude": 131.073288,
    "altitude": 10,
    "rank": 10,
    "source_type": 5
}


My question is, what values should I be using in the weewx.conf file?

[StdRESTful]
    [[OpenWeatherMap]]
        appid = OWM_APPID
        station_id = STATION_ID


*appid*, I'm presuming is the API key that I generated via the 
OpenWeatherMap website?

and looking at the doco it states this:

*"Copy that ID in to your weewx config, along with your API key, as shown 
in step 2 under "Installation" above."*

Sorry, but which ID am I meant to be utilising? Is it *ID*, *user_id?*

--------

Also of note is that I've utilised the 
http://api.openweathermap.org/data/3.0/stations 
API call a few times now and its returning a different ID (which makes 
sense).

In checking the logs, I do see this entry:

Mar 21 12:25:17 raspberrypi weewx[20585]: restx: OWM: Published record 
2019-03-21 12:25:00 ACST (1553136900)

So it looks like it's published something to OWM??? Or is that totally 
unrelated?

I obviously want to see if my data has been successfully exported to 
OpenWeatherMap - but how can I do this?

Finally, how do I find my city id? that has now been associated with this 
station?

Sorry for the basic questions here. I really appreciate your time in 
reviewing this post!

Take Care. Benjamin








-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to