Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. // Hello.
  2. //
  3. // This is JSHint, a tool that helps to detect errors and potential
  4. // problems in your JavaScript code.
  5. //
  6. // To start, simply enter some JavaScript anywhere on this page. Your
  7. // report will appear on the right side.
  8. //
  9. // Additionally, you can toggle specific options in the Configure
  10. // menu.
  11.  
  12. function main() {
  13. return 'Hello, World!';
  14. }
  15.  
  16. main();
  17.  
  18. /* Magic Mirror Config Sample
  19. *
  20. * By Michael Teeuw http://michaelteeuw.nl
  21. * MIT Licensed.
  22. *
  23. * For more information how you can configurate this file
  24. * See https://github.com/MichMich/MagicMirror#configuration
  25. *
  26. */
  27.  
  28. var config = {
  29. address: "localhost", // Address to listen on, can be:
  30. // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
  31. // - another specific IPv4/6 to listen on a specific interface
  32. // - "", "0.0.0.0", "::" to listen on any interface
  33. // Default, when address config is left out, is "localhost"
  34. port: 8080,
  35. ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
  36. // or add a specific IPv4 of 192.168.1.5 :
  37. // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
  38. // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
  39. // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
  40.  
  41. language: "en",
  42. timeFormat: 24,
  43. units: "metric",
  44.  
  45. modules: [
  46. {
  47. module: "alert",
  48. },
  49. {
  50. module: "MMM-NowPlayingOnSpotify",
  51. position: "top_right",
  52.  
  53. config: {
  54. showCoverArt: true,
  55. clientID: "",
  56. clientSecret: "",
  57. accessToken: "",
  58. refreshToken: ""
  59. }
  60. },
  61. {
  62. module: "updatenotification",
  63. position: "top_bar"
  64. },
  65. {
  66. module: "clock",
  67. position: "top_left"
  68. },
  69. {
  70. module: "calendar",
  71. header: "US Holidays",
  72. position: "top_left",
  73. config: {
  74. calendars: [
  75. {
  76. symbol: "calendar-check",
  77. url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics" }
  78. ]
  79. }
  80. },
  81. {
  82. module: "compliments",
  83. position: "lower_third"
  84. },
  85. {
  86. module: "currentweather",
  87. position: "top_right",
  88. config: {
  89. location: "Vara,Sweden",
  90. locationID: "2665018", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  91. appid: "YOUR_OPENWEATHER_API_KEY"
  92. }
  93. },
  94. {
  95. module: "weatherforecast",
  96. position: "top_right",
  97. header: "Weather Forecast",
  98. config: {
  99. location: "Vara,Sweden",
  100. locationID: "2665018", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  101. appid: "YOUR_OPENWEATHER_API_KEY"
  102. }
  103.  
  104.  
  105.  
  106. },
  107. {
  108. module: "newsfeed",
  109. position: "bottom_bar",
  110. config: {
  111. feeds: [
  112. {
  113. title: "Aftonbladet",
  114. url: "http://www.aftonbladet.se/nyheter/rss.xml"
  115. }
  116. ],
  117. showSourceTitle: true,
  118. showPublishDate: true,
  119. broadcastNewsFeeds: true,
  120. broadcastNewsUpdates: true
  121. }
  122. },
  123. ]
  124.  
  125. };
  126.  
  127. /*************** DO NOT EDIT THE LINE BELOW ***************/
  128. if (typeof module !== "undefined") {module.exports = config;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement