Giter VIP home page Giter VIP logo

open-data-smn's People

Contributors

corecomic avatar dependabot[bot] avatar marcelstoer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

open-data-smn's Issues

No more data

Hello,

Since today around 9:42, I don't have anymore data.

Is there any issue ongoing ?

Thank you very much!

Unstable on aarch64

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

Add auto-redirect to fetching SMN resources

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).

Changes in data structure?

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

Add support for GeoJSON

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
        ]
      }
    }
  ]
}

Returns GeoJSON by default

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.