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.

config.js 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /* Magic Mirror Config Sample
  2. *
  3. * By Michael Teeuw https://michaelteeuw.nl
  4. * MIT Licensed.
  5. *
  6. * For more information on how you can configure this file
  7. * see https://docs.magicmirror.builders/getting-started/configuration.html#general
  8. * and https://docs.magicmirror.builders/modules/configuration.html
  9. */
  10. let config = {
  11. electronOptions: {
  12. webPreferences: {
  13. webviewTag: true,
  14. },
  15. },
  16. address: "localhost", // Address to listen on, can be:
  17. // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
  18. // - another specific IPv4/6 to listen on a specific interface
  19. // - "0.0.0.0", "::" to listen on any interface
  20. // Default, when address config is left out or empty, is "localhost"
  21. port: 8080,
  22. basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy
  23. // you must set the sub path here. basePath must end with a /
  24. ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
  25. // or add a specific IPv4 of 192.168.1.5 :
  26. // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
  27. // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
  28. // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
  29. useHttps: false, // Support HTTPS or not, default "false" will use HTTP
  30. httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true
  31. httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true
  32. language: "de",
  33. locale: "de-DE",
  34. logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
  35. timeFormat: 24,
  36. units: "metric",
  37. // serverOnly: true/false/"local" ,
  38. // local for armv6l processors, default
  39. // starts serveronly and then starts chrome browser
  40. // false, default for all NON-armv6l devices
  41. // true, force serveronly mode, because you want to.. no UI on this device
  42. modules: [
  43. {
  44. module: "alert",
  45. },
  46. {
  47. module: 'MMM-DynamicWeather',
  48. position: 'fullscreen_above',
  49. config: { // See https://github.com/scottcl88/MMM-DynamicWeather for more information.
  50. api_key: "b5c1eee1956050dbcf9c922625c8c182",
  51. locationID: "2861650",
  52. effectDuration: 30000,
  53. effectDelay: 60000
  54. }
  55. },
  56. {
  57. module: 'MMM-flick-gestures'
  58. },
  59. {
  60. module: 'MMM-pages',
  61. config: {
  62. modules:
  63. [["newsfeed", "MMM-EasyPix", "MMM-WebView"],
  64. ["MMM-COVID19-AMPEL",]],
  65. fixed: ["MMM-connection-status", "clock", "MMM-page-indicator", "MMM-DynamicWeather","MMM-PublicTransportHafas", "weather"],
  66. rotationTime: 15000,
  67. }
  68. },
  69. {
  70. module: 'MMM-page-indicator',
  71. position: 'bottom_bar',
  72. config: {
  73. pages: 2,
  74. }
  75. },
  76. {
  77. module: "clock",
  78. position: "top_left"
  79. },
  80. {
  81. module: "weather",
  82. position: "top_right",
  83. header: "Wetter: ",
  84. config: {
  85. weatherProvider: "openweathermap",
  86. type: "forecast",
  87. tableClass: "medium",
  88. location: "Nürnberg",
  89. locationID: "2861650", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  90. apiKey: "b5c1eee1956050dbcf9c922625c8c182"
  91. }
  92. },
  93. {
  94. module: "MMM-PublicTransportHafas",
  95. position: "bottom_right",
  96. config: {
  97. // Departures options
  98. stationID: "8004442", // Replace with your stationID!
  99. stationName: "Verbindung Dürrenhof -> Hauptbahnhof", // Replace with your station name!
  100. direction: "8000284", // Show only departures heading to this station. (A station ID.)
  101. excludedTransportationTypes: ["bus", "subway", "national"], // Which transportation types should not be shown on the mirror? (comma-separated list of types) possible values: "tram", "bus", "suburban", "subway", "regional" and "national"
  102. ignoredLines: [], // Which lines should be ignored? (comma-separated list of line names)
  103. timeToStation: 0, // How long do you need to walk to the next Station?
  104. // Look and Feel
  105. displayLastUpdate: true, // Display the last time of module update.
  106. maxUnreachableDepartures: 0, // How many unreachable departures should be shown?
  107. maxReachableDepartures: 7, // How many reachable departures should be shown?
  108. showColoredLineSymbols: true, // Want colored line symbols?
  109. customLineStyles: "", // Prefix for the name of the custom css file. ex: Leipzig-lines.css (case sensitive)
  110. showOnlyLineNumbers: false, // Display only the line number instead of the complete name, i. e. "11" instead of "STR 11"
  111. showTableHeadersAsSymbols: true, // Table Headers as symbols or text?
  112. useColorForRealtimeInfo: true, // Want colored real time information (timeToStation, early)?
  113. updatesEvery: 180 //Sekunden Biatch
  114. }
  115. },
  116. {
  117. module: "MMM-EasyPix",
  118. position: "middle_center",
  119. config: {
  120. picName: "th-qrCode.png", // Enter the picture file name.
  121. maxWidth: "8%", // Size picture precisely. Retains aspect ratio.
  122. //sounds: ["1.mp3", "me2.mp3"], // mp3 sound file names in quotes seperated by commas for Hello-Lucy
  123. //updateInterval: 30 * 60 * 1000, // updates display
  124. //animationSpeed: 3000,
  125. }
  126. },
  127. //{
  128. //module: 'MMM-Canteen',
  129. //position: 'top_center',
  130. //config: {
  131. //canteenName: 'Mensateria Ohm Nürnberg',
  132. //updateInterval: 600000,
  133. //canteen: 268,
  134. //status: "students",
  135. //truncate: 100,
  136. //switchTime: "16:00"
  137. //}
  138. //},
  139. {
  140. module: "newsfeed",
  141. position: "bottom_center",
  142. config: {
  143. feeds: [
  144. {
  145. title: "Teschnische Hochschule Nürnberg",
  146. url: "https://www.th-nuernberg.de/news-archiv/rss.xml"
  147. }
  148. ],
  149. showDescription: true,
  150. showSourceTitle: true,
  151. showPublishDate: true,
  152. broadcastNewsFeeds: true,
  153. broadcastNewsUpdates: true,
  154. updateInterval: 20000
  155. }
  156. },
  157. {
  158. module: 'MMM-COVID19-AMPEL',
  159. position: 'bottom_center',
  160. config: {
  161. header: 'COVID-19 Inzidenzwert', // Header Title of Display on MagicMirror
  162. cityID: ["284", "282"], // City ID from https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/917fc37a709542548cc3be077a786c17_0/data
  163. infoRowClass: "medium", // small, medium
  164. showUpdateDateInHeader: true, //Show update date in header
  165. showUpdateDateInRow: false, //Show update date in each row
  166. showStatusLightLeft: true, //Show left status light
  167. showStatusLightRight: true, // Show right status light
  168. showTitle: true, //Show Title row with headlines if you want to display more than one information
  169. showSKLK: false, //Show the Region information if the Pace displayed is the city or regional area (Stadt or Land)
  170. showCases: true, //Show amount of active cases in city
  171. showCasesPerPeople: false, //Show Percentage of active cases per inhabitant
  172. showDeathRatePerPeople: true, //show death rate in % of infected people
  173. show7DayIncidence: true, // Show 7 day incidence value for your location
  174. landModeOnly: false, // Shows Bundesland instead of City in Bundesland (Thos who want to display only the Bundesland)
  175. showVaccinations: false, //Shows the total quota of fist shots people got in the whole country in header
  176. numberOfDigits: 2, //Round the Percentage and incidence value to number of digits
  177. updateInterval: 3600000, // update interval in milliseconds // 1 Hour - Values are only refreshed every 24 H on Server
  178. fadeSpeed: 4000,
  179. }
  180. },
  181. {
  182. module: 'MMM-WebView',
  183. position: 'bottom_left',
  184. config: {
  185. url: 'file:///home/pi/Desktop/Git/smartMirror/speiseplan-skript/speiseplan.html',
  186. width: '20rem',
  187. height: '25rem',
  188. autoRefresh: true,
  189. autoRefreshInterval: 1800000
  190. },
  191. },
  192. ]
  193. };
  194. /*************** DO NOT EDIT THE LINE BELOW ***************/
  195. if (typeof module !== "undefined") {module.exports = config;}