Move under www to ease rsync
This commit is contained in:
215
www/eps/hpr3039/hpr3039_config.js
Executable file
215
www/eps/hpr3039/hpr3039_config.js
Executable file
@@ -0,0 +1,215 @@
|
||||
/* Magic Mirror Config Sample
|
||||
*
|
||||
* By Michael Teeuw http://michaelteeuw.nl
|
||||
* MIT Licensed.
|
||||
*
|
||||
* For more information how you can configurate this file
|
||||
* See https://github.com/MichMich/MagicMirror#configuration
|
||||
*
|
||||
* This is a modified version of my live file with API keys and similar removed. To be used in the
|
||||
* HPR show "Making a Raspberry Pi status display"
|
||||
*
|
||||
*/
|
||||
|
||||
var config = {
|
||||
address: "0.0.0.0", // Address to listen on, can be:
|
||||
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
|
||||
// - another specific IPv4/6 to listen on a specific interface
|
||||
// - "", "0.0.0.0", "::" to listen on any interface
|
||||
// Default, when address config is left out, is "localhost"
|
||||
port: 8080,
|
||||
// Modified for MMM-Remote-Control
|
||||
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.0.0/24", "::ffff:192.168.0.0/24"],
|
||||
// Set [] to allow all IP addresses or add a specific IPv4 of 192.168.1.5
|
||||
// : ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], or
|
||||
// IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format
|
||||
// : ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
|
||||
|
||||
language: "en",
|
||||
timeFormat: 24,
|
||||
units: "metric",
|
||||
|
||||
modules: [
|
||||
// Update Notification
|
||||
{
|
||||
module: "updatenotification",
|
||||
position: "top_bar"
|
||||
},
|
||||
// Clock
|
||||
{
|
||||
module: "clock",
|
||||
position: "top_left",
|
||||
showWeek: true,
|
||||
timezone: 'Europe/London'
|
||||
},
|
||||
// Calendar
|
||||
{
|
||||
module: "calendar",
|
||||
header: "Calendar",
|
||||
position: "top_left",
|
||||
config: {
|
||||
colored: true,
|
||||
maxTitleLength: 30,
|
||||
fade: false,
|
||||
calendars: [{
|
||||
// Secret address. Go to "Settings" in the calendar, click on the particular
|
||||
// calendar that's wanted, and scroll down to "Integrate Calendar"
|
||||
name: "Google Calendar",
|
||||
url: "https://calendar.google.com/calendar/ical/dave.morriss%40gmail.com/private-##########/basic.ics",
|
||||
symbol: "calendar-check",
|
||||
color: "#825BFF" // violet-ish
|
||||
},
|
||||
{
|
||||
// Calendar uses repeated 'RDATE' entries, which this iCal parser
|
||||
// doesn't seem to recognise. Only the next event is visible, and
|
||||
// the calendar has to be refreshed *after* the event has passed.
|
||||
name: "HPR Community News recordings",
|
||||
url: "http://hackerpublicradio.org/HPR_Community_News_schedule.ics",
|
||||
symbol: "calendar-check",
|
||||
color: "#C465A7" // purple
|
||||
},
|
||||
{
|
||||
name: "Bank Holidays England and Wales",
|
||||
url: "https://www.gov.uk/bank-holidays/england-and-wales.ics",
|
||||
symbol: "calendar",
|
||||
color: "#0040FF" // medium blue
|
||||
},
|
||||
{
|
||||
name: "Bank Holidays Scotland",
|
||||
url: "https://www.gov.uk/bank-holidays/scotland.ics",
|
||||
symbol: "calendar",
|
||||
color: "#C05A58" // brownish
|
||||
},
|
||||
{
|
||||
name: "Bank Holidays NI",
|
||||
url: "https://www.gov.uk/bank-holidays/northern-ireland.ics",
|
||||
symbol: "calendar",
|
||||
color: "#006600" // darker green
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
// Current Weather
|
||||
{
|
||||
module: "currentweather",
|
||||
position: "top_right",
|
||||
config: {
|
||||
location: "City of Edinburgh",
|
||||
locationID: "3333229",
|
||||
appid: "############################",
|
||||
useLocationAsHeader: true
|
||||
}
|
||||
},
|
||||
// Weather Forecast
|
||||
{
|
||||
module: "weatherforecast",
|
||||
position: "top_right",
|
||||
header: "Weather Forecast",
|
||||
config: {
|
||||
location: "City of Edinburgh",
|
||||
locationID: "3333229",
|
||||
appid: "############################",
|
||||
useLocationAsHeader: true,
|
||||
fade: false,
|
||||
colored: true,
|
||||
}
|
||||
},
|
||||
// News Feed
|
||||
{
|
||||
module: "newsfeed",
|
||||
position: "bottom_bar",
|
||||
config: {
|
||||
feeds: [{
|
||||
title: "Guardian World",
|
||||
url: "https://www.theguardian.com/world/rss",
|
||||
},
|
||||
{
|
||||
title: "BBC World",
|
||||
url: "http://feeds.bbci.co.uk/news/world/rss.xml",
|
||||
},
|
||||
{
|
||||
title: "BBC UK",
|
||||
url: "http://feeds.bbci.co.uk/news/uk/rss.xml",
|
||||
},
|
||||
],
|
||||
showSourceTitle: true,
|
||||
showPublishDate: true,
|
||||
broadcastNewsFeeds: true,
|
||||
broadcastNewsUpdates: true
|
||||
}
|
||||
},
|
||||
// MMM-MQTT
|
||||
{
|
||||
module: 'MMM-MQTT',
|
||||
position: 'top_left',
|
||||
header: 'MQTT',
|
||||
config: {
|
||||
logging: false,
|
||||
useWildcards: false,
|
||||
mqttServers: [{
|
||||
address: 'localhost', // Server address or IP address
|
||||
port: '1883', // Port number if other than default
|
||||
subscriptions: [{
|
||||
// HPR pending comments
|
||||
topic: 'mm2/comments',
|
||||
label: 'Comments:',
|
||||
sortOrder: 10,
|
||||
maxAgeSeconds: 60
|
||||
},
|
||||
{
|
||||
// HPR pending shows
|
||||
topic: 'mm2/shows',
|
||||
label: 'Shows :',
|
||||
sortOrder: 20,
|
||||
maxAgeSeconds: 60
|
||||
},
|
||||
{
|
||||
topic: 'mm2/info',
|
||||
label: 'Info :',
|
||||
sortOrder: 30,
|
||||
maxAgeSeconds: 60
|
||||
},
|
||||
{
|
||||
topic: 'mm2/urgent',
|
||||
label: 'Urgent :',
|
||||
sortOrder: 40,
|
||||
maxAgeSeconds: 120
|
||||
},
|
||||
]
|
||||
}],
|
||||
}
|
||||
},
|
||||
// MMM-LothianBuses
|
||||
{
|
||||
module: 'MMM-LothianBuses',
|
||||
header: 'Buses',
|
||||
position: 'top_right',
|
||||
config: {
|
||||
apiKey: '############################################',
|
||||
busStopIds: [
|
||||
'36237526',
|
||||
]
|
||||
}
|
||||
},
|
||||
// MMM-Remote-Control
|
||||
{
|
||||
module: 'MMM-Remote-Control',
|
||||
config: {
|
||||
customCommand: {}, // Optional, See "Using Custom Commands" below
|
||||
customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
|
||||
showModuleApiMenu: true, // Optional, Enable the Module Controls menu
|
||||
}
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
};
|
||||
|
||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||
if (typeof module !== "undefined") {
|
||||
module.exports = config;
|
||||
}
|
||||
|
||||
/*
|
||||
vim: set syntax=javascript ts=8 sw=4 ai et tw=100 fo=tcrqn21:
|
||||
*/
|
||||
Reference in New Issue
Block a user