@justjim1220 no… each module has to add code to deal with it…
like your video player… add a suspend() routine to be called when hidden and a config option for backgroundPlay true/false
and if playing on suspend, and you’re supposed to stop, then stop playing…
and if resumed and were playing then resume playing, (if u can)…
but other modules will have to add code like that too… you cannot MAKE them behave
is there anyway these can be added to the installation to install the latest versions?
npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
lodash@4.17.5 is also shown as a vulnerability with every install and update.
Just curious as having the current versions of all the dependencies upon install may alleviate some of the issues some users have with updates and initial installs.
@mykle1 :rolling_on_the_floor_laughing: :rolling_on_the_floor_laughing: :rolling_on_the_floor_laughing:
yeah, realized the main issue was trying to get it to have a border and it just wouldn’t work with the wide screen monitor of the TV.
Description:
An integration of MMM-DigClock and MMM-AlarmClock modified to have the look of a vintage-style digital alarm clock.
Screenshots:
[image: 1547877358574-screenshot-1.png]
[image: 1547877398819-screenshot-2.png]
Variations:
The first fully working version after about 5 tries.
[card:justjim1220/MMM-DigitalAlarmClock]
@justjim1220
const exec = require('child_process').exec
var NodeHelper = require("node_helper")
module.exports = NodeHelper.create({
socketNotificationReceived: function(noti, payload) {
if (noti == "GIVE_ME_RESULT") {
setTimeout(()=>{
exec("C:\WINDOWS\system32\get-temperature", //I don't know WINDOWS system at all. Is it right?
(err, sto, ste) => {
if (!err) {
this.sendSocketNotification("HERE_IS_RESULT", sto)
} else {
console.log("Error", err)
}
}
)
}, 1000)
}
}
})
It isn’t tested. But you can catch the idea.
And now the same screenshots from my dev machine
[image: 1540426824298-screenshot-from-2018-10-24-19-54-44.png] [image: 1540426831410-screenshot-from-2018-10-24-19-56-10.png]
@justjim1220 said in MMM-PC-Stats:
@mykle1
Another question…
How can be changed to show F°?
Not really a big deal, mostly just curious… :upside-down_face:
Just run sensors -f, at least this is working in debian, so I guess it should work in raspbian too
Or, if you just want to convert Celcius to Fahrenheit, add some code to Mykles module like this temp = ((temp/5)*9)+32 ;)
But then again, you could add a config option to toggle between Fahrenheit and Celsius and submit a pull request
I think I have it done!
Repository updated.
Put on list in 3rd Party Modules page
MMM-NewsFeedTicker
Now, If only I can remember how to make those gh-cards!!! LMAO!!!
Thanks Everyone who helped me with this!!!