We are glad to announce our new API version for managing your personal weather stations – Weather Stations API 3.0 (beta). It went through some essential changes in comparison with the previous version.
Access current weather data for any location on Earth including over 200,000 cities! Current weather is frequently updated based on global models and data from more than 40,000 weather stations. Data is available in JSON, XML, or HTML format.

http://www.softwareschule.ch/examples/weatherapp47.txt
The main improvement is that users now have more flexible control of their stations and allowed to share and transfer data related to them. New API in RESTful style makes this process easy and convenient. In the previous version user’s account was limited to single station, but with our new version users are allowed to add as many stations as they need.
API call:
api.openweathermap.org/data/2.5/weather?q={city name}
api.openweathermap.org/data/2.5/weather?q={city name},{country code}
Parameters:
q city name and country code divided by comma, use ISO 3166 country codes
Examples of API calls:
api.openweathermap.org/data/2.5/weather?q=London
api.openweathermap.org/data/2.5/weather?q=London,uk
http://api.openweathermap.org/data/2.5/forecast?q=bern&units=metric&APPID=key
{"cod":"200","message":0,"cnt":40,"list":[{"dt":1572814800,"main":{"temp":7.9
4,"temp_min":6.7,"temp_max":7.94,"pressure":996,"sea_level":996,"grnd_level":926,
"humidity":91,"temp_kf":1.24},"weather":[{"id":500,"main":
"Rain","description":"light rain","icon":"10n"}],"clouds":{"all":93},
"wind":{"speed":5.25,"deg":228},"rain":{"3h":1},"sys":{"pod":"n"},
"dt_txt":"2019-11-03 21:00:00"},{"dt":1572825600,"main":{"temp":7.68,
"temp_min":6.75,"temp_max":7.68,"pressure":997,"sea_level":997,"grnd_level":927,
"humidity":93,"temp_kf":0.93},"weather":[{"id":500,"main":"Rain","description":
"light rain","icon":"10n"}],"clouds":{"all":96},"wind":{"speed":3.01,"deg":200},
"rain":{"3h":2.38},"sys":{"pod":"n"},"dt_txt":"2019-11-04 00:00:00"},{"dt":1572836400,"main":
By city ID
Description:
You can call by city ID. API responds with exact result.
List of city ID city.list.json.gz can be downloaded here http://bulk.openweathermap.org/sample/
We recommend to call API by city ID to get unambiguous result for your city.
Parameters:
id City ID
Examples of API calls:
api.openweathermap.org/data/2.5/weather?id=2172797
api.openweathermap.org/data/2.5/weather?q=London
api.openweathermap.org/data/2.5/weather?q=London,uk
http://api.openweathermap.org/data/2.5/forecast?q=bern&units=metric&APPID=key

A Lazarus package is a collection of units and components, containing information how they can be compiled and how they can be used by projects or other packages or the IDE. The IDE automatically compiles packages if some of its files are modified. In contrast to Delphi, packages are not limited to libraries and they can be OS independent. (Library Packages are specially compiled libraries used by applications, the IDE or both. Delphi/Library packages require in-compiler support, which FPC is not capable of at the moment and of course this magic is OS dependent.)

Recently I started playing around with BMP180 Temperature and Humidity sensor, at that time around, I had an idea to make a small yet effective Weather Station, so in this project, we will use the BMP180 sensor from the previous tutorial and turn it into mini weather station for our desk and your browser with the help of OpenWeatherMap:
For the Mac we run the desk weather station on wine:

So this is a test for a picture competition. The simple way is to select the image which you know the TEE train-name for the most (for example TEE Merkur Pic 1 or TEE Edelweiss Pic 4) and maybe the model name too (for example LIMA Pic 1 and Märklin Pic 4) :
I think we believe that most of use are fundamentally guided by self-interest, but patterns show more and more a collective behaviour.
Web (runtime) applications are more and more abundant. You can program the web using FPC’s pas2js.
With pas2js it is possible to develop VS Code, Atom or Electron applications based on V8.
TMS Software has unveiled a Object Pascal RAD IDE for VS Code plugin, based on pas2js and TMS Web Core or maXbox Web.
This raises the question whether a dedicated Object Pascal IDE is still a necessity.

Web (runtime) applications are abundant. You can program the web using FPC’s pas2js.
With pas2js it is possible to develop VS Code, Atom or Electron applications.
TMS Software has unveiled a Object Pascal RAD IDE for VS Code plugin, based on pas2js and TMS Web Core. This raises the question whether a dedicated Object Pascal IDE is still a necessity.

At the moment the aggregation uses the fixed list of parameters from the collection of measurements – temperature, humidity, pressure, speed and wind direction, precipitation. In the future this list will extend.
What about a weather station that writes weather instead of read and measures. Writing weather means manipulating or modification of the weather state. Such a writing weather station (WWS) could look like a synthesizer:
https://maxbox4.wordpress.com/2019/11/03/weather-forecast-api/
LikeLike
Reblogged this on breitschtv and commented:
Weather Forcast
LikeLike