@strawberry-3.141 said in Wanting to do it the right way (revisited):
@Mykle1 dont make changes in the module files
only add the part to the config that you want to be different than the defaults
That’s what I wanted to know, thanks.
@strawberry-3.141 said in Wanting to do it the right way (revisited):
@Mykle1 dont make changes in the module files
only add the part to the config that you want to be different than the defaults
That’s what I wanted to know, thanks.
Hi,
Now that I have my MM built and operational (you can see it in the “Show your mirror” forum - and please comment) I want to perfect the way I’ve done my editing. I’ll explain:
For example, a portion of my config.js file reads as follows:
{
module: ‘weatherforecast’,
position: ‘top_right’,
header: ‘Weather Forecast’,
config: {
location: ‘New York’,
locationID: ‘5128581’, //ID from http://www.openweathermap.org
appid: ‘This is where my API key goes’
}
},
And a portion of my weatherforecast.js file reads:
// Default module config.
defaults: {
location: false,
locationID: 5128581,
appid: “Im an idiot for posting my API key last time”,
units: config.units,
maxNumberOfDays: 10,
showRainAmount: false,
updateInterval: 10 * 60 * 1000, // every 10 minutes
animationSpeed: 1000,
timeFormat: config.timeFormat,
lang: config.language,
fade: true,
fadePoint: 0.25, // Start on 1/4th of the list.
initialLoadDelay: 2500, // 2.5 seconds delay. This delay is used to keep the OpenWeather API happy.
retryDelay: 2500,
apiVersion: "2.5",
apiBase: "http://api.openweathermap.org/data/",
forecastEndpoint: "forecast/daily",
appendLocationNameToHeader: true,
calendarClass: "calendar",
roundTemp: true,
},
My question is this: Was I supposed to bring the settings in the weatherforecast.js file into the config.js file? Everything works fine but what is the right way of doing it? It would be easier to edit them if they were combined into the config.js file instead of bouncing back and forth between .js files. Or, are they supposed to remain separate?
@KirAsh4 said in MMM-SystemStats (cpu temp/load, fre ram ...):
Deprecation is not the same as a hint. That message is a warning to let you know that while it may work today, it may not in the near future because
sys
is being deprecated and ultimately phased out (and removed) in favor ofutil
. It would make sense to write code for the packages that will continue to work, and not for things that will be deprecated.
I also get that warning message but it works and nothing seems to be wrong or unstable. I like having the stats to keep an eye on how things are running, then I hide it with MMM-Remote-Control until the next time I want to check.
So, do you recommend NOT using it? Is there any “danger” in using it?
This is from the main installation page at https://github.com/MichMich/MagicMirror#manual-installation
Raspberry Pi Support
Electron, the app wrapper around MagicMirror², only supports the Raspberry Pi 2 & 3. The Raspberry Pi 1 is currently not supported. If you want to run this on a Raspberry Pi 1, use the server only feature and setup a fullscreen browser yourself.
Server Only:
In some cases, you want to start the application without an actual app window. In this case, execute the following command from the MagicMirror folder: node serveronly. This will start the server, after which you can open the application in your browser of choice.
I hope this helps
@cowboysdude said in 1 old noob + 1 rPi = I can’t believe I did it! (revisited):
HOLY COW THAT IS JUST PLAIN AWESOME!!! Great job!!! I LOVE IT!
That’s extremely nice of you to say so. I hope I get a similar reaction from my son when the time comes.
@Snille said in 1 old noob + 1 rPi = I can’t believe I did it! (revisited):
Great work! Looking good! I bet your kid will be impressed! I know I would if my father took on a project like yours! :)
Thank you very much. That’s what I am hoping for. :-)
@Jayh391 said in 1 old noob + 1 rPi = I can’t believe I did it! (revisited):
Thanks for posting modules used.
Jay
Thank you for reminding me
Here is a list of the modules that I am using that I forgot to enter at the end of my story.
MMM-Remote Control - An absolute “must have” module. With it, I use my iPhone to turn other modules off and on. It impresses the hell out of people. It impresses the hell out of me! You can also access it on any computer on your network. Brilliant!
compliments - I use it for insults, too. “You look fat in that dress!” is my favorite.
planetrise - I’m an amateur astronomer with a telescope. Having this information at a glance is simply fantastic!
alert - One of the default modules
MMM-Simple-Logo - 3 instances, 2 you can see. The picture I drew in high school and the YES logo at the bottom right and left. A picture of me is hidden via MMM-Remote Control. I mean really, who wants to see that? ;-)
MMM-Globe - Another “must have” for me. Every ten minutes I get a picture of earth from the Japanese Himawari-8 weather satellite displayed on my mirror? Sign me up.
clock - One of the default modules
calendar - I combined the free US Holidays calendar with my Google calendar. Excellent!
currentweather - One of the default modules. Very nice.
weatherforecast - One of the default modules. Also very nice.
MMM-SystemStats - Hidden via MMM-Remote Control in the pictures. When I want to check system temperature, system load and free ram I just show it for a moment and hide it again.
newsfeed - One of the default modules. I happen to be in NYC so that’s just perfect for me