Sorry, late to the party :)
n987 Solingen - Germany - CET - Central European Time
Sorry, late to the party :)
n987 Solingen - Germany - CET - Central European Time
{
module: 'MMM-AlarmClock',
position: 'top_right',
config: {
alarms: [
{time: "08:30", days: [0,1,2,3,4,5,6], title: "1st Alarm", message: "This is your first alarm", sound: "alarm.mp3"},
{time: "00:00", days: [0,1,2,3,4,5,6], title: "2nd Alarm", message: "This is your second alarm", sound: "alarm.mp3"},
{time: "17:00", days: [0,1,2,3,4,5,6], title: "3rd Alarm", message: "This is your third alarm", sound: "alarm.mp3"}
]
}
}
Currently these 3 alarms are active for all seven days of the week, where Sunday is 0 !
@ganget is right, your { } are mixed up.
This passes the test on jshint.com
/* 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
*
*/
var config = {
address: "localhost", // 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,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // 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: [
{
module: "MMM-AssistantMk2",
position: "top_right",
config: {
deviceLocation: {
coordinates: { // set the latitude and longitude of the device to get localized information like weather or time. (ref. mygeoposition.com)
latitude: 45.200049, // -90.0 - +90.0
longitude: 7.568917, // -180.0 - +180.0
},
},
profiles: {
"default" : { // profile name.
profileFile: "default.json", // profile file name.
lang: "it-IT",
//currently available (estimation, not all tested):
// de-DE, en-AU, en-CA, en-GB, en-US, en-IN
// fr-CA, fr-FR, it-IT, ja-JP, es-ES, es-MX, ko-KR, pt-BR
// https://developers.google.com/assistant/sdk/reference/rpc/languages
}
},
record: { // Full values are in `FOR EXPERTS` section.
recordProgram: "arecord", // Defaults to "arecord" - also supports "rec" and "sox"
device: null // recording device (e.g.: "plughw:1")
},
play: { // Full values are in `FOR EXPERTS` section.
playProgram: "mpg321", // recommended.
}
}
},
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left"
},
{
module: "calendar",
header: "US Holidays",
position: "top_left",
config: {
calendars: [
{
symbol: "calendar-check-o ",
url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
}
]
}
},
{
module: "compliments",
position: "lower_third"
},
{
module: "currentweather",
position: "top_right",
config: {
location: "New York",
locationID: "", //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
appid: "YOUR_OPENWEATHER_API_KEY"
}
},
{
module: "weatherforecast",
position: "top_right",
header: "Weather Forecast",
config: {
location: "New York",
locationID: "5128581", //ID from http://www.openweathermap.org/help/city_list.txt
appid: "YOUR_OPENWEATHER_API_KEY"
}
},
{
module: "newsfeed",
position: "bottom_bar",
config: {
feeds: [
{
title: "New York Times",
url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
}
],
showSourceTitle: true,
showPublishDate: true
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
Also, if you look at the readme for this module configuration you notice the { } need to be set different.
Thank you. I did not test it as I do not own a Pi Zero, but it looks good. I pinned it to the top
@rasmus-rytter said in Spotify Play?:
Thanks @richland007
so i need raspotify to start the music though the mirror?
Yes, you need it. https://github.com/dtcooper/raspotify
And still you need something else (smartphone, tablet, computer/laptop) to control the playback. All you do is connect the “control device” to the same network as your mirror, start spotify, look for other playback devices and select your mirror instead. Then - in theory - playback should run on your mirror.
I used spotify-connect-web and MMM-SpotifyConnectUI, but I haven’t been playing around with my mirror installation for almost a year, so I am not sure if this still works. Biggest issue was getting the spotify appkey after registering as a developer. Looks like you don’t have to worry about this with the newer raspotify
Shouldn’t the index.html be changed as well to add additional divs with his classes?
The readme is wrong.
{
module: 'MMM-SleepWake',
config:
{
delay: 15,
source: 'external',
mode: 'pi'
}
},
I see, that’s bad. What kind of webshop do you need, or what kind of features? There are several free shop solutions out there. All you need is a hosting provider and a domain.
Maybe Jimdo is a starting point: https://de.jimdo.com/website/onlineshop-erstellen/
I agree to @strawberry-3-141
The active people in here build a mirror and continue supporting the community with new modules and error handling. But most likely they won’t build lots of mirrors. Other people around the world join the forum, ask some support questions and disappear once they are happy. And I’m pretty sure there are several people being interested in this project in the beginning but lose interest with time going on or their priorities change.
I ordered a mirror in your first batch of mirrors and it still is stored in the crate you used to send it. I don’t know if I ever will create a mirror and if the mirror glass will still fit the project, as the layout in my mind evolved.
Additionaly I think people are tempted buying a real mirror glass but are afraid of the costs compared to the usability factor. Investing several hundred euros in a project you don’t know if you will really use it is a show stopper.
What happened to your plan creating a webshop? Based on your revenue you could operate it as a Kleinstunternehmer.
@kass said in My Custom Smart Mirror.:
Hello! I have one question! The only type of mirror that you used in that project was the two-way mirror, right? I’m asking this because I’m looking to put 2 types of mirror: a two way one only for the monitor (because it’s a 17 inch 4:3 one and it’s small) and the rest will be just a simple mirror. Thanks in advance and also great project. Good luck.
You don’t need to do that. Use one big mirror glass, place the monitor wherever you want to and make sure the entire rest of the mirror is covered with black foil, black cardboard or something similar. As long as no light from the back reached the area of the mirror glass it works like a mirror and you cannot “look behind”. Only the area which is lit up by the monitor will be see through.
The value for albumId should be written with quotation marks "AFktr.....26Z3s",
Other than that I cannot spot any error in your snippet.
@mastev26
Sure, would you mind sharing the python script?
Feel free to fork my repository or submit a PR.
Like this one?
https://forum.magicmirror.builders/topic/1935/mmm-mta-display-long-island-rail-road-delays
I converted an old existing MTA module into a MM2 module for one user. It’s been two years since then, so I don’t know if it still is working, but please give it a try.
A good way to start this would be the error message 😏
Well, the main problem is that the authority which issued and signed the certificate is untrusted. Therefore browsers block access to this site showing a warning
I agree to @sdetweil
Better think twice about fiddling around with your company laptop. I don’t know you, I don’t know your job nor your boss, but it could cause trouble doing such private stuff on a company issued device.
That being said you could simply install node.js on the machine, start your mirror in serveronly mode and connect Chrome to the localhost ip address.
@paulb
I really like the way this guy mounted the camera on top of the mirror: https://forum.magicmirror.builders/topic/6952/my-mirror-so-great
It is a bit irritating where to put the config stuff. Some needs to go to config section directly, some need to go to the calendars section.
Please try this:
{
module: 'calendar',
classes: 'default everyone',
// header: 'Termine',
position: 'top_right',
config: {
displayRepeatingCountTitle: true,
timeFormat: 'absolute',
dateFormat: 'DD MMM',
fullDayEventDateFormat:'DD MMM',
showEnd: false,
getRelative: 48,
urgency: 2,
calendars: [
{
url: 'https://calendar.google.com/calendar/XXX',
symbol: 'calender',
colored: true,
maximumEntries: 5,
repeatingCountTitle: 'Birthday'
}
]
}
},
Okay, please try this.
{
module: "MMM-CalendarWeek",
position: "bottom_bar",
config: {
showEndDate: true,
displayLocation: true,
displayDescription: true,
calendars: [
{
symbol: "calendar-check-o",
maximumNumberOfDays: 5,
url: "************"
}
]
}
},
@cattoo said in MMM-CalendarWeek:
Hi,
I have set the config to
maximumNumberOfDays: 7,
showEndDate: true
displayDescription: trueBut it aint taking it, what could be wrong?
Only seeing the default values.
Please post the entire MMM-CalendarWeek section of your config.js, just remove any personal details like links to your calendars. Maybe you added the config details in the wrong place?