Thanks @sdetweil for helping me out making this…this is a ‘whole page’ weather info…
It takes up the entire screen…I’m using Hello-Lucy so it has a page all it’s own…
Here I am on Github -> https://github.com/cowboysdude
-> https://sourcerer.io/cowboysdude
Thanks @sdetweil for helping me out making this…this is a ‘whole page’ weather info…
It takes up the entire screen…I’m using Hello-Lucy so it has a page all it’s own…
Progress so far…
NO where near ready for release but it’s in progress.
With MM2 as the backbone … Here it is!
Thanks to strawberry 3.141 for the touch alarm clock it’s working and it’s a pretty powerful little clock!
Today I started building my ‘command center’ that will be in my kitchen. It will be a mirror but also the focal point of the house.
I’m using a mini-itx motherboard, intel cpu and 8 gig of ram running with an SSD drive…
Software installed is:
Newest MM2
Voice Control by @strawberry-3-141
MMM-NFL
MMM-NFLweather
MMM-Mail
MMM-Astrology
and default modules [minus - compliments and newsfeed]
The voice software is VERY responsive and I’m VERY happy with it!! Excellent job by Strawberry…
Future plans are:
Lighting control
Thermostat control
Bluetooth door lock control
100% touch screen [have to order ir frame] —!!!DONE!!! as of 3/10/2017
So far it’s being tested and it sits on my counter running… or ‘burn in’ as us old computer guys used to call it LOL
I’ll keep you posted as it develops. This is a big project and my hope is to have more voice controlled modules on it
So currently I am running MM2 on my bedroom touch alarm clock and I have a MM in my bathroom… so eventually my house will be totally within reach from just about any room or phone!
How to help a developer help you.
Making a MagicMirror2 is both fun and educational.
There are many different mirrors….everyone’s is different, unique. That’s not a bad thing but when it comes to helping you figure out an issue it can become very cloudy at best.
So here’s some basic information that will help you.
What did you change?
IF you totally destroy something not to worry simply delete the module and start over. It’s already in your config……so after you delete it you can do another ‘git clone’ and start over. Easy.
Just remember asking for help is not the same as asking someone to do the work for you. I had a TON of help after the forum really got going and when I started I was writing programs in PHP and knew ZERO javascript……here I am today……still learning but writing in Javascript…… I asked for help and YES I got frustrated at times myself but hung In there. Thanks for a few people for that and they know who they are and I don’t need to mention their names. [Thanks Kid ;)]…
SO there you are……
If you’re having issues, ask. If you’re changing files and breaking things, stop. Yes it’s fun to ‘play’ and try new things but I suggest you use a ‘dev machine’ for that and not your main mirror.
The MOST important thing you can do for yourself is read…use the search feature on the forum because more than likely there is already a topic that’s been solved for the issue you are having. What doesn’t help is when people keep creating new topics when there are already a few of the same runs already going. A little reading can save you HOURS of frustration.
EDIT
YES the developer created a README.MD file with the module…take your time and read it!!!
Description:
Small news module that works from NPR news …
Works off of your language setting in your config.js
See README for instructions
This is a module that shows Christmas lights on your MM
Without MMM-Snow
https://www.youtube.com/watch?v=SyXoOe7X_bQ&feature=youtu.be
With MMM-Snow
https://github.com/MichMich/MMM-Snow
https://www.youtube.com/watch?v=sUAbDNpA_po&feature=youtu.be
If someone helps you out don’t be afraid to Upvote their helping post!!
This will enable others to understand that someone’s suggestion helped and it makes it much easier to find information for others who may have the same issue!!
I really just feel compelled to say a HUGE Thanks to @strawberry-3-141 for his infinite patience with me and helping me to pick up js…
With that being said I’d also like to Thank all the developers for taking their time to help, to teach, to offer such a great opportunity, yes opportunity, for others to be able to have a great product built to their liking in their homes!!
NONE of this is possible without all you guys.
I know myself I get frustrated but it’s with myself and lack of understanding… I push myself hard to learn things because hey life is all about learning [I’m a teacher by education]. Currently I am a contractor and own my own business… I build things, I fix things… that I understand and can do easily like so many of you can just program a small module so easily. You guys are truly amazing.
Short story: I’m making a current movies in the US module … I spent two days racking my brain because as my program parsed through the json file it would error on every other one… I tried to find some exotic fix and strawberry walks up to it… changes one line and BAM just like that LOL
I had to chuckle as I’m sure he did too… “eh rookies”…
SO for all the people coming here asking for help or trying to learn we all say Thank you!!!
@StuGrunt said in Head first developing MM module for extreme beginners:
It is because there is an error (at least I think so - I am new too) and no instructions on where to put the function.
change the Module.register(“MMM-Timetable”) to Module.register(“MMM-Test”)
The article does not tell you where to put the getDom function when it is first introduced. Replace the getDom: function() {}. with the code shown. In other words, don’t just add it to the file. This article would have benefited from a final section that gave the entire code.
I think the original author at least expected us to be very familiar with Node.js (fair enough), but alas, I am not so it took a bit of work to figure it out.
Here it is, for the first part:
Module.register(“MMM-Test”, {
defaults: {},
start: function () {},getDom: function() {
var element = document.createElement(“div”)
element.className = “myContent”
element.innerHTML = “Hello, World!”
return element
},
notificationReceived: function() {},
socketNotificationReceived: function() {},
})
_
Both of those functions go outside the getDom function pretty much anywhere you want to put them.
The socketNotificationReceived function [example below, can be used in either node_helper OR your main.js file. The example below is in my node_helper] :
socketNotificationReceived: function(notification, payload) {
if (notification === 'CONFIG') {
this.config = payload;
}
if (notification === 'GET_CURRENT') {
this.getCurrent(payload);
}
if (notification === 'GET_FORECAST') {
if (this.forecast.timestamp === this.getDate() && this.forecast.data !== null) {
this.sendSocketNotification('FORECAST_RESULT', this.forecast.data);
console.log("Using data we already have");
} else {
this.getForecast();
console.log("Getting new data");
}
}
}
Here is the corresponding one in the main.js
socketNotificationReceived: function(notification, payload) {
if (notification === "CURRENT_RESULT") {
this.processCurrent(payload);
}
if (notification === "FORECAST_RESULT") {
this.processForecasts(payload);
}
this.updateDom(this.config.initialLoadDelay);
},
You can use notificationReceived to receive info from other modules like this:
Here are examples of that:
notificationReceived: function (notification, payload){
if (notification === 'CURRENT_RESULT') {
this.processCurrent(payload);
}
},
this.sendNotification('CURRENT_RESULT', payload);
This is how I send and receive my ‘payload’ from one module to another.
The first example is getting my ‘CURRENT_RESULT’ [getting info for a Forecast module from the Current weather module] from the bottom example that is
sending out ‘CURRENT_RESULT’…
The bottom example will ‘broadcast’ and in reality ANY module can get the data it’s sending out.
Hope this helps. It’s a really simple process.
@Mykle1 said in MMM-SunRiseSet:
usno.navy.mil
That @Mykle1 he’s such a big help to everyone!!! Just ask and he’s there!
@Piranha1605 Late to this party but MAN your background looks really awesome!
Easy way to keep a mirror from steaming up is rub a bar of soap on the mirror then wipe it off…no steam
@Mykle1 said in 1 old noob + 1 rPi = I can’t believe I did it! (revisited):
THIS . . . IS . . . my hobby.
No, no it isn’t… I KNOW your hobby LMAO
Mine has been running in the bathroom for 2 years… doing just fine.
Progress so far…
NO where near ready for release but it’s in progress.