Open Weather Map

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

I will remove that link
as I do not actually know how to view on the web the data you send to open weather map?
does any one know?

I have updated to this one: http://www.weather-display.com/downloadfiles/weatherdisplaytest.zip but I don’t appreciate any difference with the previous version. Also tried the openweathercron update. No station Id or “create station” or something like this, only same information as before (lat, lon, name, and altitude).

In the case to test data send, the api tells this one:
https://api.openweathermap.org/data/3.0/measurements?station_id=816aXXXXX&type=h&limit=100&appid=b1b1XXXXXX
With the type as the kind of agregated information of your station: “Type of the aggregated data - minute, hour or day. Specifies the letters m, h or d respectively”
“This method is used for receiving the aggregated measurements from the station. In total are supported 3 types of units - minute, hour and day”

It returns something like this:
[
{
“type”: “m”,
“date”: 1480508280,
“station_id”: “583d7bbbebb3ff000123f1ce”,
“temp”: {
“max”: 22.7,
“min”: 21.7,
“average”: 22.03,
“weight”: 3
},
“humidity”: {
“average”: 76.33,
“weight”: 3
},
“wind”: {
“deg”: 160,
“speed”: 3.3
},
“pressure”: {
“min”: 1031,
“max”: 1033,
“average”: 1031.67,
“weight”: 3
},
“precipitation”: {}
},
{
“type”: “m”,
“date”: 1480599660,
“station_id”: “583d7bbbebb3ff000123f1ce”,
“temp”: {
“max”: 21.7,
“min”: 21.7,
“average”: 21.7,
“weight”: 1
},
“humidity”: {
“average”: 77,
“weight”: 1
},
“wind”: {},
“pressure”: {
“min”: 1031,
“max”: 1031,
“average”: 1031,
“weight”: 1
},
“precipitation”: {}
}
]

In the sample, lacks to params, the from and to timestamp in unix format:
I have tested this one (but my station hasn’t currently any data):
https://api.openweathermap.org/data/3.0/measurements?station_id=5c927d0XXXXXXX&type=h&limit=100&from=1554076800&to=1554657771&appid=ab19d2f302dXXXXXXX

Ruben

yes, I do know of that, that is how I know the data was being sent OK, as I was able to get it back OK
but that is not all that useful information, being just average data ?
anyway, try again that download, new update
http://www.weather-display.com/downloadfiles/weatherdisplaytest.zip

I am testing it… but not apreciable diference. I can’t see stationid (and also I can’t put apikey to avoid all people use yours).
And it is the last test version, because has MQTT option (this is the next thing I have to try with OpenHab).

Ruben

The station id
Should be showing
Just after where it says
Station id:

That works for me
Maybe u do not have the latest
Cronopenweathermap.exe
That is included in the latest full install

You might want to blank your password in that screen shot?

Thanks, I don’t realize that WUnderground password appears bottom ;-)… :lol: Thanks!

I have replaced with the Cronopenweathermap.exe that is on last weatherdisplaytest.zip
Is this ok?

No Id yet… maybe I need to change lat/lon/name?

I think could be better that we could put our own apikey, or we can’t recover data from our station (as we need to put always apikey to see it).

Ruben
PD: Maybe a apikey textbox, plus a button “Create station” that returns and fill station id, could be great :wink:

just tested here again
brand new setup
it works
(after clicking on test and then go back into that setup)
see the attached

http://www.weather-display.com/downloadfiles/cronopenweathermap.zip


Working last update!
I have to remove blank whitespaces on station name… maybe this was the problem before.

Ruben

spaces should never be used on the internet for data ideally (use _ instead of a space if you need to use a space)?

Could you consider the option of putting the apikey also?
In other case, this is not very useful as we can’t read our station data…

Thanks in advance
Ruben

Enviat des del meu SM-T280 usant Tapatalk

normally developer api keys are not supposed to be made public
I could make it where the aggregated data is downloaded at each data send to a file
but what is the point of that…you know your data anyway, you are sending it from WD?

Exactly, not your apikey, each user must put his apikey (like un WU you each user must put his user and password)
Now I can’t know if I am sending anything, I can’t retrieve my station data (for example to do some application, or to use in OpenHab). In fact, I can’t know if all is working correctly, or delete my station.
Moreover, with a little computer skill (very little), actually anybody can retrieve your apikey, watch all the stations that WD (and you) have created, delete it, etc.

I think that the correct working process is that anybody that want to send his data to OWM, needs his apikey to put in WD to manage his station (like other providers).

Ruben

OK, i will make it so that you can enter your own api key