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.