Code Monkey home page Code Monkey logo

aufnahmekh-json's Introduction

aufnahmekh-json

Gets the reception hospital in Linz from a public listing and formats it machine readable.

aufnahmekh-json is using a public listing from the austrian red cross to load the data. It is really useful for example if you want to send automatic reminders for ambulance services with the hospital that accepts patients today.

The source of the data looks like this:

Public listing

Installation

The installation is fairly simple. Just copy the aufnahmekh.php in your desired location and make sure it has write permission in it's folder. The script will make a cache for the current day, this cache file is called aufnahmekh.json.

Now you are setup and ready to go!

Example output

[
  {
    "from_ts": 1569560400,
    "from_date": "27.09.2019 07:00",
    "to_ts": 1569646800,
    "to_date": "28.09.2019 07:00",
    "name": "Barmherzige Brüder Linz",
    "short_name": "BHB",
    "address": "Seilerstätte 2, 4021 Linz",
    "contact": "Telefon: 0732 / 7897- 0 "
  },
  {
    "from_ts": 1569560400,
    "from_date": "27.09.2019 07:00",
    "to_ts": 1569646800,
    "to_date": "28.09.2019 07:00",
    "name": "Elisabethinen Linz - Ordensklinikum",
    "short_name": "ELIS",
    "address": "Fadingerstraße 1, 4010 Linz",
    "contact": "Telefon: 0732 / 7676 - 0 "
  },
  {
    "from_ts": 1569646800,
    "from_date": "28.09.2019 07:00",
    "to_ts": 1569733200,
    "to_date": "29.09.2019 07:00",
    "name": "Barmherzige Schwestern Linz - Ordensklinikum",
    "short_name": "BHS",
    "address": "Seilerstätte 4, 4010 Linz",
    "contact": "Telefon: 0732 / 7677 - 0 "
  }
]

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.