Open Weather Map

@Dan: I couldn’t get it to switch to F either :frowning:

@bitsofstring: Not such a wide area but still questionable whether all parameters would be the same for 6 stations over 30 miles.


omap2.png

The temps are not realistic for my area either which has a lot of micro climates. At the moment, all stations in the bay area are showing 25C. It seems they are taking the temp from one station and replicating it to the rest.

https://openweathermap.org/weathermap?basemap=map&cities=true&layer=temperature&lat=37.59633&lon=-122.06967&zoom=10

On their About page:

Who we are

Openweather is a small IT company, established in 2014 by a group of engineers and experts in Big Data, data processing, and satellite imagery processing. Our headquarters is in the UK, we have an office in the US, and the development team in Latvia (EU).

Since all my local “stations” have just town/city place names I wonder if they have any real “stations” in this area at all, or whether they are just interpolating. . .

All those high priced engineers and programmers for the ‘big data’ company should be a wee bit better than this, even at their first offering.

I wonder if they are determined not to access any official weather stations? There are plenty in the area I posted that could generate a better map than what they have.

This is sort of a shame. Like many others I have been looking around for something to replace WU’s API and OpenWeatherMap showed promise. I got an API key and did some fishing around only to discover what others are saying in that their coverage is spotty. You get identical readings over large distances. So I thought what they need is more stations reporting to them.

They NEED to make it easy to sign up and send data to them! I would love to register a station and turn on a switch in WD to start feeding them station data and I am sure Brian would add the method to WD. Can anybody rattle their cage and tell them they are missing an opportunity?

I should be able to get WD to send them data
but there has been very little interest from users for me to do that

i have it working in a test program :wink:

i have added support to this version
http://www.weather-display.com/downloadfiles/weatherdisplaytest.zip

I am trying to use, but I don’t know how to setup. I don’t find place to put API id key, and station id.

Thanks in advance.

Ruben

you dont need an api key
as I have one . i.e that is used
the station ID is generated on the fly (live)
based on the lat/long and altitude of your station

that is all you need

that is how it works via the api
(and I know it is working as I am able to get the history data back for the data I have sent)
someone might correct me though

there is no place to view your data. i.e like you can with say wunderground
you are just hopefully providing data to help with the models and forecast data and generated current condition data for your lat/long

I am not sure if that is true…
I have an API key, that I use for example Xamarin Weather App for my students, but also I have generated an station and the API tells that you upload to the generated station ID.
At least, that is what I have read here:

I think you could probably create one and use based on lat-lon, but I am not sure if every time I start Weather-Display, a diferent station is created. I am not sure also if you have any limit with your apikey. You could see all the stations that OWM have created using your api key.
http://api.openweathermap.org/data/3.0/stations

And also I think that you could retrieve your station information only if you know your id and station id. On the map, you can see it, I think that the stations also, but only current basic information. But maybe you can retrieve to use with your personal apps for example (Like OpenHAB).

I try now your setup, and tomorrow try to see if new station appears on map.

Ruben


Anotación 2019-04-03 232430.jpg

you might be right
I think the way I am doing it, there is a new station created each time
and instead I need to have it where you can set the station ID?
(but where/how do you get that?)

The problem is that OWM doesn’t have a web UI to create the stations, so it must be created with a POST web petition. I have used some web services that allow do POST, GET, etc petitions with custom headers (I don’t remember which one, but I can search, because not all works correctly). So doing this:
[POST] http://api.openweathermap.org/data/3.0/stations?appid=ab19XXXXXXX and adding this JSON header:
{
“external_id”: “SF_TEST001”,
“name”: “San Francisco Test Station”,
“latitude”: 37.76,
“longitude”: -122.43,
“altitude”: 150
}
with your custom data, external_id is like a code that you can asign, in my case I have used “OWMALCOIBARA1”, name: “Alcoi - Baradello Gelat”, lat, lon and altitude of my station.
If all works correctly, it returns this:
{
“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
}
The ID could be used for future petitions to your station.
So you can send data to your station with this:
[POST] http://api.openweathermap.org/data/3.0/measurements?appid=ab19XXXXXXX
putting the data and station ID on the JSON header content:
[
{
“station_id”: “583436dd9643a9000196b8d6”,
“dt”: 1479817340,
“temperature”: 18.7,
“wind_speed”: 1.2,
“wind_gust”: 3.4,
“pressure”: 1021,
“humidity”: 87,
“rain_1h”: 2,
“clouds”: [
{
“condition”: “NSC”
}
]
}
]

I only have created the station, and I am waiting Weather-Display could upload data to it :lol: :lol: :lol:
All the API documentation is here:
https://openweathermap.org/stations

Ruben

that is what I have done
but
what I am doing wrong
is am the doing the first part every time
and so a new station id is created and used each time
looks like I only need to do that once, store that station id, and use next time for data send
I will make that change now…
standby

use this update
http://www.weather-display.com/downloadfiles/cronopenweathermap.zip
I guess I should though have that station id made visible,once its created, e.g back in the setup ?

I haven’t tested yet the new version, when I could test it, I tell you here.
Maybe you can put a “Register Station” button, and then the station id is shown in a text label and remain saved on config.

Ruben

Enviat des del meu SM-T280 usant Tapatalk

the latest test update has it
Where the station ID is shown now
The next time you go back to the setup

Hi

Following this with interest. Tried the latest build. When I click on “view your data” it goes off to the Wunderground site. Probably low on priorities, but thought I would mention it!

Cheers