A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Integrate Pipedrive with graphs in MagicMirror

    1
    0 Votes
    1 Posts
    226 Views
    S
    Hi. Im interested in creating a module, where i can take data from a pipedrive dashboard, and showcase some of the figures in a Magic Mirror. I have been looking at the MMM-JsonGraph module, but im not extremly comfrotable in Java. Therefore, are there anyone who has an idea of how to adapt this module to work for me? Or have a better idea? Thx.
  • mergeConfig() function

    11
    0 Votes
    11 Posts
    3k Views
    ?
    Waiting… and Waiting …
  • Convert bytes to megabytes - JSON

    8
    0 Votes
    8 Posts
    2k Views
    M
    Thanks for the replies :thumbs_up_light_skin_tone: I’ve got the bytes string converting to a number, so that’s all good. Now the next question, @Bugsounet how do I use your function within the JSON.parse function? var payload = JSON.parse(payload, function (key, value) { if ( key === 'down_rate' ) { var num = Number(value); return (num/(1024*1024)).toFixed(2); } Just to add, I had tried the following and receive a this.convert is not a function var downrate = this.convert(value,0); return downrate;
  • How to support multiple translations in different UI and API?

    1
    0 Votes
    1 Posts
    295 Views
    W
    My modules would like to support multiple languages (e.g. zh-hk and zh-tw). But actually both language uses the same set of language (Traditional Chinese). UI I could support both language in the following function: getTranslations: function () { return { ... "zh-hk": "translations/zh-tw.json" "zh-tw": "translations/zh-tw.json" }; Is it possible that I could pre-map zh-hk to zh-tw so that I only need to keepzh-tw in getTranslations? API The API also returned the localized value based on the language parameters. Therefore I would like to convert zh-hk and zh-tw into zh-hant required by the API (in two different lines). Currently I am doing the conversion in a hard-code way. Is it possible that I could pre-map zh-hk to zh-tw so that I could translatezh-tw into zh-hant in the API code?
  • Editing files outside of MM

    10
    0 Votes
    10 Posts
    2k Views
    S
    @aareben if u haven’t made any progress, see my sample module, which provides a node_helper and uses socket notifications for communications with the modulename.js https://github.com/sdetweil/SampleModule
  • Some Modules are showing up, but not on their right pages

    9
    0 Votes
    9 Posts
    506 Views
    R
    @sdetweil any suggestions?
  • How to obtain the current language setting?

    3
    0 Votes
    3 Posts
    591 Views
    ?
    sure ;) config is the entire config file, so you can read it with for example console.log(config)
  • No Tour de France module???

    Moved
    4
    2
    1 Votes
    4 Posts
    882 Views
    thgmirrorT
    Short update, same idea as above: [image: 1598869274369-e214c0ab-7973-4069-a71d-69e5f136739c-image.png] This is the videotext of the german broadcast ARD, looks more like MM:-) Built by this html (which I still can’t add as coding): [image: 1598869338318-51604256-6bd2-4046-a996-fb54b289d070-image.png]
  • MM development environment

    2
    0 Votes
    2 Posts
    447 Views
    S
    @ricky install winscp of bitvise ssh client on your PC, then you can double click edit files on the pi thru the file manager. in electron you can use the debugger, same as chrome and Firefox. u can edit styles, and stop on code. but not really edit code. ctrl-r will refresh mm, while refresh will do the same I the dev window. I use notepad++ on my PC to edit pi files.
  • 0 Votes
    2 Posts
    679 Views
    MrCoffeeM
    I just see, the MMM-Openhab is just linking to the sitemap and has no touch function on its own. Maybe the module kann be modified, linking to a floorplan generated in habpanel. Any opinions on that? Thx
  • MMM-GoogleAssistant

    Unsolved
    18
    0 Votes
    18 Posts
    4k Views
    ?
    @MrDondoT said in MMM-GoogleAssistant: Just a typo in MMM-GoogleAssistant.css row 30 and 32 (it was already there in previous version). thx, i will be corrected for next release edit: lol, same in 41 and 43 not really important, but not clean ;) it can wait again for next release (so go to dev too !)
  • Extension of MMM-Tools (Bugsounet)

    30
    0 Votes
    30 Posts
    7k Views
    ?
    ah … Force contener size with feature: containerSize feature : unit it’s pixel sample: containerSize: 300, and it will make module wider you can aslo to the same thing with itemSize (for the label section like, os, typ, … rekord) itemSize: for the label section (like, os, typ, … rekord) containerSize: for the result value by default it and autocalc result see the full configuration sample and tunning section for more info of each feature
  • Multiline text output inside exec block is displayed as 1 line

    4
    0 Votes
    4 Posts
    673 Views
    S
    @autonomus cool. glad u got it working
  • Mobile app (bachelor thesis)

    116
    4 Votes
    116 Posts
    183k Views
    A
    @strawberry-3-141 said in Mobile app (bachelor thesis): I sent the app to all that have sent me their emails in a private message. Here are also two screenshots that I extracted from my thesis. [image: 1535792916479-konfiguration.png] [image: 1535792936316-seitenmenue.png] Android app is still available?
  • Assistance with a notepad module

    3
    0 Votes
    3 Posts
    687 Views
    alexrmA
    Awesome thank you! This looks exactly like what my client is looking for. Apologies for not seeing the module when searching.
  • Installing MagicMirror² on your Raspberry Pi Zero W

    6
    0 Votes
    6 Posts
    3k Views
    S
    @eyebee did u reply yes to use pm2 for auto start? and if you did, do pm2 start 0 does mm start? if u did not, then run the fixuppm2 script from here https://github.com/sdetweil/MagicMirror_scripts
  • Module Refresh at Midnight

    7
    0 Votes
    7 Posts
    2k Views
    S
    @jmwyds or millis in a day is 24*60*60*1000
  • Updating Compliments using a spreadsheet

    14
    3
    1 Votes
    14 Posts
    5k Views
    S
    @emrah_asl said in Updating Compliments using a spreadsheet: fs.writeFile("modules/default/compliments/remotefile.json", compliments, function(err) { my code in node_helper.js (under compliments folder) are creating file on root normally when you start mm with npm start don’t make this node_helper.js as MM has a special use for that… make it createCompliments.js then the best thing is use the full path for the file fs.writeFile("/home/pi/MagicMirror/modules/default/compliments/remotefile.json", compliments, function(err) { how do you start MM? pm2 start 0 (and it starts on boot too…) If you used the automated install script u would have been prompted to set this up. (if u want to add it now, you can run the fixuppm2.sh script from here https://github.com/sdetweil/MagicMirror_scripts just one line to copy/paste ) now, if you use pm2, it launches MM by using the installers/mm.sh script. you can add your node modules/default/compliments/createCompliments.js to the mm.sh and all will continue as normal. The second problem , my magic mirror fires electron.js error when I try to create file. i don’t understand this. npm start fires electron.js npm reads the package,json file and looks for the command requested "scripts": { "start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js", the ‘start’ command executes that line.
  • Merging Two Forks MMM-homeassistant-sensors

    3
    0 Votes
    3 Posts
    678 Views
    S
    @sdetweil Bummer, oh well, no better way for me to learn…thanks for verifying!
  • LIRC AUTOMATION

    automation coding gpio lirc pir python sensor
    4
    0 Votes
    4 Posts
    1k Views
    S
    @sranj ok, so u receive the trigger in the node_helper, and need to launch/exec/spawn your python pgm so you need the child_process library https://nodejs.org/en/knowledge/child-processes/how-to-spawn-a-child-process/ PIR uses the same library to launch the tvservice command, or vgencmd to blank the screen