marcelstoer / open-data-smn Goto Github PK
View Code? Open in Web Editor NEWAn API to serve publicly available data from the SwissMetNet in 10min intervals
Home Page: https://open-data-smn.fly.dev
License: MIT License
An API to serve publicly available data from the SwissMetNet in 10min intervals
Home Page: https://open-data-smn.fly.dev
License: MIT License
Hello,
Since today around 9:42, I don't have anymore data.
Is there any issue ongoing ?
Thank you very much!
Therefore it needs an API discovery JSON specified here: http://apisjson.org/
Working copy at /open-data-smn/src/main/resources/apis.json
.
I am running the open-data-smn container on a aarch64 platform. It seems that the container crashes from time to time hard due to a Java Runtime Error:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (assembler_aarch64.hpp:1156), pid=1, tid=0x0000ffff9e7d9aa0
# guarantee(Rs != Rn && Rs != Rt) failed: unpredictable instruction
#
# JRE version: OpenJDK Runtime Environment (8.0_212-b04) (build 1.8.0_212-b04)
# Java VM: OpenJDK 64-Bit Server VM (25.212-b04 mixed mode linux-aarch64 compressed oops)
# Derivative: IcedTea 3.12.0
# Distribution: Custom build (Sat May 4 17:44:26 UTC 2019)
# Core dump written. Default location: //core or core.1
#
# Can not save log file, dump to screen..
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (assembler_aarch64.hpp:1156), pid=1, tid=0x0000ffff9e7d9aa0
# guarantee(Rs != Rn && Rs != Rt) failed: unpredictable instruction
#
# JRE version: OpenJDK Runtime Environment (8.0_212-b04) (build 1.8.0_212-b04)
# Java VM: OpenJDK 64-Bit Server VM (25.212-b04 mixed mode linux-aarch64 compressed oops)
# Derivative: IcedTea 3.12.0
# Distribution: Custom build (Sat May 4 17:44:26 UTC 2019)
# Core dump written. Default location: //core or core.1
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# https://icedtea.classpath.org/bugzilla
...
Reading on the internet it seems that Java 11 or maybe already the latest alpine Java 8 packages don't show that problem: openhab/openhab-docker#233
java.net.URL#openStream()
doesn't automatically follow HTTP redirects when switching HTTP scheme (e.g. from HTTP to HTTPs) or HTTP method is required even when HttpURLConnection.setFollowRedirects(true)
or conn.setInstanceFollowRedirects(true)
was invoked.
Replace the java.net.URL
-based implementation with one based on a HTTP client lib (Apache or Jersey).
It'd be great to have a service to retrieve all stations /smn/stations
this nice api seems to be broken since a few days. It may be a consequence of the new open-data forum "https://opendata.swiss/de/", which went online at 2. februar 2016.
It would be great if this work could be conitnued and the api could be adapted to recent changes?
Best regards,
Christian
Request from Nicola Fankhauser by email to support GeoJSON. Example for the CH1903 projection:
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "urn:ogc:def:crs:EPSG::21781"
}
},
"features": [
{
"type": "Feature",
"properties": {
"name": "Wynau",
"id": "WYN",
"ch1903Y": 626400,
"ch1903X": 233850,
"lat": 47.255031533783,
"lng": 7.78740270818214,
"code": "WYN",
"dateTime": "2014-11-04T11:30:00.000Z",
"temperature": "11.8",
"sunshine": "0",
"precipitation": "0.0",
"windDirection": "270",
"windSpeed": "0.7",
"qnhPressure": "995.1",
"gustPeak": "2.2",
"humidity": "87",
"qfePressure": "946.0",
"qffPressure": "994.8"
},
"geometry": {
"type": "Point",
"coordinates": [
626400,
233850
]
}
}
]
}
If application/json; charset=UTF-8
or application/json
isn't specified explicitly in the Accept
header the API returns GeoJSON instead of plain JSON.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.