Check if you can do that with chrome browser local override.
https://www.trysmudford.com/blog/chrome-local-overrides/
Read the statement by Michael Teeuw here.
Posts made by ashishtank
-
RE: server/client setup: how to force client's custom.css
-
RE: Unable to put a compliment weekly.
Hi @elwonner
It’s doable with minor code change. Below is the code you need to achieve the same.- Compliments declaration
compliments: { anytime: ["Hey there sexy!"], morning: ["Good morning, handsome!", "Enjoy your day!", "How was your sleep?"], afternoon: ["Hello, beauty!", "You look sexy!", "Looking good today!"], evening: ["Wow, you look hot!", "You look nice!", "Hi, sexy!"], "....-01-01": ["Happy new year!"], "Monday": ["Hello Monday !"], "Friday": ["Thank God, It's Friday !"] },
- ComplimentsArray function
complimentArray: function () { var hour = moment().hour(); var date = this.config.mockDate ? this.config.mockDate : moment().format("YYYY-MM-DD"); var day = this.config.mockDay ? this.config.mockDay : moment().format('dddd'); //Add this line var compliments; ------ removed some code for brevity, do not actually remove it ! for (var entry in this.config.compliments) { if (new RegExp(entry).test(date) || new RegExp(entry).test(day)) { //Change this line, Note the second check for day compliments.push.apply(compliments, this.config.compliments[entry]); } }
Output should be as below
–
Ashish -
RE: default compliments
@MrDondoT said in default compliments:
< font color=‘red’ >hello sweety< font >
It is possible but you need to change the current module code as well, right now it is creating text node but to support html text code needs to be changed as below
for (var part of parts) { // create a text element for each part //compliment.appendChild(document.createTextNode(part)); //Comment this line compliment.innerHTML += part; //Add this line // add a break ` compliment.appendChild(document.createElement("BR")); }
Result should be as below if your compliments are like below
evening: ["Wow, you look hot!", "You look nice!", "Hi, <i>sexy!</i>","< font color='red'>hello sweety< /font>"],
–
Ashish -
RE: Disassemble or not ?
Hi
I have just finished (some final touchup still remains) my first 32" mirror (more in showcase section) and it looks good to have the back panel. I will post photo of back and front panel here once I get some time.
–
Ashish -
RE: MagicMirror² Module: YrThen
Hi
I am not sure if i understood your question correctly. can you please add screenshot/photo so its clear what is issue.
About size of modules there are many ways to do it. Modules have config options like maxWidth or you can also make whole screen bigger or smaller using browser zoom function.–
Ashish -
RE: MagicMirror² Module: YrThen
@mettenes said in MagicMirror² Module: YrThen:
MMM-YrThen
Should be easy
- clone the MMM-YrThen module
- Go to MMM-YrThen/translations folder
- copy en.json file and paste it as nn.json
- open nn.json and replace all the english translations to Norwegian
- Go to MMM-YrThen folder and open MMM-YrThen.js file
- Edit getTranslations function and code as below, note the last line.
getTranslations: function() { return { no: "translations/no.json", en: "translations/en.json", sv: "translations/sv.json", fi: "translations/fi.json", fr: "translations/fr.json", es: "translations/es.json", el: "translations/el.json", da: "translations/da.json", nn: "translations/nn.json", } },
- Save the file and restart the Magic mirror.
PS: Are you sure Norwegian is not already supported in this module ? I can see no.json file and I think that is also being used as Norwegian language code ?
Let me know if above does not work.–
Ashish -
RE: Disassemble or not ?
Hi Peter,
I would remove the bezel as it will get the display and mirror closer, also bezels are mosly bigger then the display’s outer frame so you will also need smaller mirror. About the back cover it depends on your frame. If frame is covering the back side, then it is fine. I am building my first mirror with Samsung TV UE32D5000 and did only removed the bezel and kept the cover. My plan is to reuse the wall mount that came with TV so it is strong and I do not need hooks in the frame. I will keep it posted in show your mirror topic how it goes.
Regards,
Ashish