A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • 1 Votes
    4 Posts
    3k Views
    O
    @Rene1695 A misconfigured docker sadly overwrote my js files on reboot and i hadn’t had the time to recreate it until now. I cannot seem to upload my files here but you can look at my github repo where i synced all the changes. Watch out for a pull request to main, however that could take a while to end up in the releases. https://github.com/OWL4C/MagicMirror/tree/develop/modules/default/weather Of note are: weather.css (as @sdetweil detailed to add a border) providers/openmeteo.js (since it is free and more detailed than the other ones i use openmeteo and only know how to integrate it from them, maybe you can get the api reference for others, it should be similar to openmeteo.js though) hourly.njk (which adds the table entry, if the config.js has showUV_Index set to true) and obviously config.js As of yet hourly and current is implemented and i am trying to set up an max_UV for forecast. However there is one more bug: UV=0 does not get ignored like rain=0 but actually shows 0 0 0 0 etc. Not gamebreaking but still.
  • access to config language setting

    24
    0 Votes
    24 Posts
    16k Views
    J
    @sdetweil I am aware of that, but somehow I just ignored it as I was “on auto-pilot”. :grinning_face_with_sweat:
  • Help with Module DOM

    5
    0 Votes
    5 Posts
    715 Views
    D
    @mumblebaj The data I get back is just numerals, with the exception of wind direction, which I convert to cardinal values : (temp) 48.6 (wind speed) 2.2 (wind direction) NNE (feels like) 48.6 (daily rain) 0 Although with @sdetweil help, and using conditionals, I’m able to see my data on the MM now!
  • ChatGpt developed Module MMM-Dockerstat

    27
    0 Votes
    27 Posts
    9k Views
    R
    @karsten13 said in ChatGpt developed Module MMM-Dockerstat: @Rags missed the -a ❯ docker ps -a --format "{{.Names}} {{.State}}" magicmirror running watchtower running traefik running Great ! Yes the command is working now but locally on the docker machine only. It needs to work from the first machine after ssh ing into docker machine. ssh .exec (‘docker ps -a --format “{{.Names}} {{.State}}”’) .on(‘error’, (err) => { console.error(Error: ${err}); this.status = ‘Error’; this.sendSocketNotification(‘STATUS_UPDATE’, { status: this.status, icon: this.offlineIcon }); })
  • Help with updateDom

    11
    1
    0 Votes
    11 Posts
    3k Views
    mumblebajM
    @sdetweil Thanks Sam. Managed to resolve this. Everything works fine now and plays well with the other modules.
  • Maintaining modules - security updates

    5
    0 Votes
    5 Posts
    1k Views
    S
    @qistoph we don’t have any binaries, all our code is in JavaScript. we are exposed to the general internet trends, speed of delivery over stability breaking changes are everywhere. I will say that a couple volunteers have been are working hard on processes for mm to detect those breaking changes by implementing a test system . but nothing is perfect
  • Find a maintainer for my modules

    1
    0 Votes
    1 Posts
    418 Views
    bugsounetB
    Hi, I change my coding plan for 2023 ;) I will code ONLY for Google Assistant and his plugins So I decide to part with the majority of my modules! Impected: MMM-NewsFeed MMM-Ecowatt [FR Module] MMM-FranceInfo [FR Module] MMM-Netatmo-Thermostat MMM-Weather MMM-PrixCarburants [FR Module] MMM-Shom MMM-Tools MMM-Pronote [FR Module] MMM-TuyaThermometer MMM-Freebox [FR Module] MMM-AirParif [FR Module] MMM-SpeedTest MMM-FreeBox4G [FR Module] MMM-Saint MMM-TelegramBot Notes: Wiki of the module will be sended Any npm library part will be sended (if needed) I have no time to maintened ALL modules You want to continue to maintain one of its modules.(and take care of it!) Manifest yourself ! I will transfer it to you with pleasure 🙂 @bugsounet
  • 0 Votes
    3 Posts
    2k Views
    S
    @nkc also you asked this in your other topic already
  • Magic Mirror Module Development - Powershell embeded

    4
    0 Votes
    4 Posts
    1k Views
    S
    @wishmaster270 I was going to recommend your modules but strayed into notifications , and I think that took him off path
  • From JSON to display on MM

    2
    0 Votes
    2 Posts
    552 Views
    S
    @lkthomas said in From JSON to display on MM: which module should I use as an example for JSON iteration? How could I filter the closest timestamp with current time then display it in minute on MM? there is an array filter function you pass in the array, the logic looks at each element one by one… true means keep it in the results, false say don’t keep it. the resulting array is the good subset of the total javascript and json are very close friends. url get request can return a javascript object of the json text … then u can pass the array part (data I think from your sample) to the filter… if you use fetch , you can do this in the browser side of the module, otherwise have to use a helper… https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch fetch('http://example.com/movies.json') .then((response) => response.json()) .then((data) => console.log(data)); data is now a js object of the json text see my sample module for building a starter… https://github.com/sdetweil/SampleModule the browserside of the module (I call it modulename.js, cause its name MUST match the name of the module, and it has to be in a folder called the exact same) creates a small segment of html content (either text or actual DOM nodes) … and gives that to MM when requested (the getDom() function) and MM will put the content where u configured the module to have its content shown. so folder, modulename.js and modulename all match if you do the fetch on a timed cycle, once u have the data, call updateDom() to inform mm your module has new content, then mm will call your getDom() to get the new content. getDom() either creates the content or knows where the previously created content is.
  • Svenskalag.se

    5
    0 Votes
    5 Posts
    1k Views
    S
    @Henrik nice work
  • ChatGPT is creating Modules

    3
    1
    1 Votes
    3 Posts
    1k Views
    K
    That is so cool, if it works
  • Widgit accessabililty

    6
    1 Votes
    6 Posts
    1k Views
    N6NGN
    @wishmaster270 I ended up using MMM-EmbedURL and it worked fine for what I was trying to do. Thanks all for your help N6NG DENNIS
  • Hide a module by default

    11
    0 Votes
    11 Posts
    3k Views
    S
    @BKeyport ah, I see the question… never heard a period called that
  • MM-PIR-motion-poweron

    pir sensor shutdown power-saving
    1
    0 Votes
    1 Posts
    428 Views
    C
    I created powersaving program for automatically start the RaspberryPi, if a motion ist detected via PIR-sensor and shut down after a waiting time. It’s at Git and I want to share it with you. I would be happy if you give me Feedback. https://github.com/ChrisBaehrig/MM-PIR-motion-poweron
  • Requesting assistance with GroceryApp module

    8
    0 Votes
    8 Posts
    1k Views
    S
    @CurlyQ12391 np. I was just trying to help you make progress. I know nothing about the API. but couldnt find anything similar to the code in the helper
  • turning Postman query into getJSONP()? (BTC node query)

    6
    1
    0 Votes
    6 Posts
    2k Views
    S
    @FlatPepsi also, something like this might help https://github.com/amcolash/MMM-json-feed put in your url, display data
  • ES6 notation

    7
    0 Votes
    7 Posts
    2k Views
    mumblebajM
    @MMRIZE and @sdetweil Thanks guys, Thought I would put the question out there and see what crawls out the woodwork. ;-)
  • Notion Integration

    Unsolved
    2
    2
    0 Votes
    2 Posts
    1k Views
    S
    @Amit5001 so, you will need to write a module. mm runs inside a browser, electron, chrome, Firefox, … it displays one web page each module gets data from somewhere and builds a small blob of html, or dom content, and gives that to mm, which places it in the browser DOM in the position you configured the spec is here https://docs.magicmirror.builders/development/introduction.html you can use my SampleModule as a starting place, it’s got all the parts https://github.com/sdetweil/SampleModule something to do before that, is to figure out how u want it displayed and build the html to do that, it’s just text. you can test that output in any browser. a module is split into 2 parts. the part that runs in the browser and does all the display work I call it modulename.js cause it’s filename matches the module name. it’s the part that interfaces to mm but a browser cannot read files (incl database) or touch hardware directly. for security. browser cannot import or require to load libraries. so if u need to do that, you use the helper, called node_helper.js. there is a small communication mechanism between the two parts. modulename.js sends a message, send socket notification and the helper receives them, receiveSocketNotification when done the exact same calls are used in the other direction. helper sends module name.js receives. this is a private channel between this module and it’s helper.
  • when to use init , start, loaded of node helper

    9
    0 Votes
    9 Posts
    2k Views
    kayakbabeK
    @kayakbabe DRAT! I just crushed my microSD with my wheelchair. It is definitely time for bed.