Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 6.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # MMM-COVID19-AMPEL
  2. A [MagicMirror²](https://magicmirror.builders) helper module to display the COVID 19 INCIDENCE Value in form of the five stages in Germany (Green, Yellow, Red, Dark - Red and Purple).
  3. [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://raw.githubusercontent.com/magic21nrw/MMM-COVID19-AMPEL/master/LICENSE)
  4. ![Example](screenshot.png)
  5. ## Installation
  6. In your terminal, go to your MagicMirror's Module folder:
  7. ````
  8. cd ~/MagicMirror/modules
  9. ````
  10. Clone this repository:
  11. ````
  12. git clone https://github.com/magic21nrw/MMM-COVID19-AMPEL.git
  13. ````
  14. run to install needed packages
  15. ````
  16. cd MMM-COVID19-AMPEL
  17. npm install
  18. ````
  19. Add the module to the modules array in the `config/config.js` file:
  20. ````javascript
  21. {
  22. module: "MMM-COVID19-AMPEL"
  23. },
  24. ````
  25. ## Configuration options
  26. The following properties can be configured:
  27. | Option | Description
  28. | ---------------------------- | -----------
  29. | `header` | The header text <br><br> **Default value:** `'COVID-19 Inzidenzwert'`
  30. | `cityID` | The ObjectID of the GEN City from this database in an array: `'https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/917fc37a709542548cc3be077a786c17_0/data'` <br><br>Go on "map view" at the top right and click the area on the map to get the ObjectID.<br><br> **Possible values:** Array: `["224" , "223"]` for Ingolstadt and München <br> **Default value:** `["224"]`
  31. | `infoRowClass` | The font size of data <br><br> **Possible values:** `'small'`, `'medium'` <br> **Default value:** `'small'`
  32. | `showUpdateDateInHeader` | Show date of update in Header (of last received item) <br><br> **Possible bool values:** `true`, `false` <br> **Default value:** `true`
  33. | `showUpdateDateInRow` | Show date of update in each row <br><br> **Possible bool values:** `true`, `false` <br> **Default value:** `false`
  34. | `showStatusLightLeft` | Show status light on left side according to incidence value<br><br> **Possible bool values:** `true`, `false` <br> **Default value:** `true`
  35. | `showStatusLightRight` | Show status light on right side according to incidence value <br><br> **Possible bool values:** `true`, `false` <br> **Default value:** `false`
  36. | `updateInterval` | How often does the content needs to be fetched? (Milliseconds) <br><br> **Possible values:** `1000` - `86400000` <br> **Default value:** `3600000` (60 minutes)
  37. | `showTitle` | Show a title over each column of information provided if you want to show more than one information.<br><br> **Possible bool values:** `true`, `false` <br> **Default value:** `true`
  38. | `showSKLK` | Switch for displaying the additional information for the place if it is a city area or regional area (Stad or Landkreis)<br><br> **Possible bool values:** `true`, `false` <br> **Default value:** `true`
  39. | `showCases` | Show total number of people infected <br><br> **Possible bool values:** `true`, `false` <br> **Default value:** `true`
  40. | `showCasesPerPeople` | Show % of cases per people in this city/region <br><br> **Possible bool values:** `true`, `false` <br> **Default value:** `true`
  41. | `showDeathRatePerPeople` | Show death rate of people <br><br> **Possible bool values:** `true`, `false` <br> **Default value:** `true`
  42. | `show7DayIncidence` | Show 7 day incidence value which corresponds to the status light <br><br> **Possible bool values:** `true`, `false` <br> **Default value:** `true`
  43. | `showVaccinations` | Show quota of first shot vaccinations in header as well for whole Germany. <br><br> **Possible bool values:** `true`, `false` <br> **Default value:** `true`
  44. | `numberOfDigits` | Number of digits for percentage values to show.<br><br> **Possible int values:** `0`, `1` or `2` <br> **Default value:** `2`
  45. | `landModeOnly` | Shows only values for the Bundesland instead of the selected region. <br> Example: If City Munich is selected and landModeOnly is true, Bayern will be displayed instead of Munich.<br><br> **Default value:** `false`
  46. | `fadeSpeed` | Fading speed when module is updating. No need to change it... <br><br> **Possible values:** `1000` - `86400000` <br> **Default value:** `4000`
  47. ## Config Example
  48. ````javascript
  49. {
  50. module: 'MMM-COVID19-AMPEL',
  51. position: 'top_center',
  52. config: {
  53. header: 'COVID-19 Inzidenzwert', // Header Title of Display on MagicMirror
  54. cityID: ["224","223"], // City ID from https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/917fc37a709542548cc3be077a786c17_0/data
  55. infoRowClass: "small", // small, medium
  56. showUpdateDateInHeader: true, //Show update date in header
  57. showUpdateDateInRow: false, //Show update date in each row
  58. showStatusLightLeft: true, //Show left status light
  59. showStatusLightRight: true, // Show right status light
  60. showTitle: true, //Show Title row with headlines if you want to display more than one information
  61. showSKLK: true, //Show the Region information if the Pace displayed is the city or regional area (Stadt or Land)
  62. showCases: true, //Show amount of active cases in city
  63. showCasesPerPeople: true, //Show Percentage of active cases per inhabitant
  64. showDeathRatePerPeople: true, //show death rate in % of infected people
  65. show7DayIncidence: true, // Show 7 day incidence value for your location
  66. landModeOnly: false, // Shows Bundesland instead of City in Bundesland (Thos who want to display only the Bundesland)
  67. showVaccinations: true, //Shows the total quota of fist shots people got in the whole country in header
  68. numberOfDigits: 2, //Round the Percentage and incidence value to number of digits
  69. updateInterval: 3600000, // update interval in milliseconds // 1 Hour - Values are only refreshed every 24 H on Server
  70. fadeSpeed: 4000
  71. }
  72. },
  73. ````
  74. ## Updating
  75. To update the module to the latest version, use your terminal to go to your MMM-COVID19-AMPEL module folder and type the following command:
  76. ````
  77. git pull && npm install
  78. ````
  79. Feel free to open any Issue :smiley: