Skip to content

A MagicMirror² module to display pharmacies that are on emergency duty in Germany.

License

Notifications You must be signed in to change notification settings

KristjanESPERANTO/MMM-ApothekenNotdienst

Repository files navigation

MMM-ApothekenNotdienst

MMM-ApothekenNotdienst is a module for the MagicMirror² project. Since the data is only relevant for Germany, it is only available in German.

It shows the next pharmacies on duty in Germany. The data is provided by the website www.aponet.de.

Since there is no official API, the data is scraped from the website. That means that the module may stop working if the website changes anything.

There is also no guarantee that the data is correct. Please always double-check the information before you go to a pharmacy.

Open Data

Emergency pharmacy services are an important part of the healthcare system. So why is this information not available as open data?

This would ensure that people can quickly find life-saving medicines in emergencies, improves public health, supports innovation in healthcare applications and strengthens transparency and trust in the healthcare system.

Screenshot

screenshot

Installation

Just clone the module into your modules directory of your MagicMirror²:

cd ~/MagicMirror/modules
git clone https://github.com/KristjanESPERANTO/MMM-ApothekenNotdienst/

Configuration

To use this module, add it to the config.js file. Here is a minimal example:

    {
      module: "MMM-ApothekenNotdienst",
      header: "Apotheken-Notdienste",
      position: "top_left",
      config: {
        lat: 52.4974,
        lon: 13.4596,
      }
    },

Configuration options

Option Description Type Default
lat Required
Latitude of your location
Float 52.4974
lon Required
Longitude of your location
Float 13.4596
day Optional
Show duties for today or tomorrow.
Possible values: "today" and "tomorrow"
String "today"
radius Optional
Radius in km around your location
Integer 5
maxEntries Optional
Maximum number of entries to show
Integer 3
updateInterval Optional
Update interval in milliseconds
Integer 30 * 60 * 1000 (30 minutes)

Update

Go to the module’s directory and pull the latest version from GitHub:

cd ~/MagicMirror/modules/MMM-ApothekenNotdienst
git pull

Special Thanks

  • The great community of MagicMirror² that keeps this impressive project alive and permanently improves it.
  • aponet.de for providing the data.

Contributing

If you find any problems, bugs or have questions, please open a GitHub issue in this repository.

Pull requests are of course also very welcome 🙂

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Developer commands

  • npm run lint - Run linting and formatter checks.
  • npm run lint:fix - Fix linting and formatter issues.
  • npm run test - Run linting and formatter checks + run spelling check.
  • npm run test:spelling - Run spelling check.

License

This project is licensed under the ISC License - see the LICENSE file for details.

Changelog

All notable changes to this project will be documented in the CHANGELOG.md file.

About

A MagicMirror² module to display pharmacies that are on emergency duty in Germany.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks