MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. bugsounet
    B
    • Profile
    • Following 0
    • Followers 1
    • Topics 3
    • Posts 155
    • Best 11
    • Controversial 6
    • Groups 0

    bugsounet

    @bugsounet

    14
    Reputation
    330
    Profile views
    155
    Posts
    1
    Followers
    0
    Following
    Joined Last Online
    Website wiki.bugsounet.fr

    bugsounet Unfollow Follow

    Best posts made by bugsounet

    • @bugsounet MMM-GoogleAssistant v3

      That you can read @bugsounet MMM-GoogleAssistant v3 is under-coding !
      and no,no,no … It’s only MMM-GoogleAssistant v2 and MMM-Assistant2Display and i’m not Dead !

      This is an extract of features:

      • 🆕 AndroidTV design => 💯 ✔
      • 🆕 Informations bar => 💯 ✔
      • 🆕 Muti-Language callback => 💯 ✔
        • FR: 💯 ✔
        • EN: 💯 ✔
        • DE: 💯 ✔
        • ES: 💯 ✔
        • IT 💯 ✔
      • 🆕 Use official google sounds => 💯 ✔
      • 🆕 Tokens generators (google, youtube, spotify, photos) => 💯 ✔
      • 🆕 Full personalisable in config (images, sounds and zoom) => 💯 ✔
      • 🆕 Use Warning display on error => 💯 ✔
      • ⚠ No detector emebed 🔀
        • MMM-Snowboy prepared 💯 ✔
        • 🆕 MMM-Porpucine (new detector with ok google family) prepared : 95% 🔄
      • ⚠ No MMM-Assistant2Display needed 🔀
      • 🆕 Extented Display
        • 🆕 Screen module => 💯 ✔
        • 🆕 Touch module for Screen => 💯 ✔
        • 🆕 Pir module => 💯 ✔
        • 🆕 Links module => 💯 ✔
        • 🆕 Photo module => 💯 ✔
          • recipe => 💯 ✔
          • display albums => 💯 ✔
          • background => 💯 ✔
          • module (with blur background) => 💯 ✔
        • 🆕 YouTube API module => 💯 ✔
        • 🆕 YouTube VLC module => 💯 ✔
        • 🆕 Internet (new version) module => 💯 ✔
        • 🆕 Welcome module => 💯 ✔
        • 🆕 Governor module => 💯 ✔
        • 🆕 Cast module => 💯 ✔
        • 🆕 Spotify module => 💯 ✔
          • visual => 💯 ✔
          • librespot => 💯 ✔
          • raspotify => 💯 ✔
        • 🆕 Volume module (with visual) => 💯 ✔
        • 🆕 Spotify new recipe => 💯 ✔
        • 🆕 Radio module => 💯 ✔
          • blur background => 💯 ✔
          • recipe => 💯 ✔
        • 🆕 Photos new recipe => 💯 ✔
        • 🆕 Tokens creator => 💯 ✔
        • 🆕 Installer => 💯 ✔
          • updater => 💯 ✔
          • rebuild => 💯 ✔
          • librespot => 💯 ✔
          • raspotify => 💯 ✔
          • micChecker (not very useful with v3) => 💯 ✔
        • 🆕 Wiki => 💯 ✔

      Are you ready for this new adventure?

      Just Update it and follow the new wiki !

      Last Update: 06/06/21
      @bugsounet

      posted in Development
      B
      bugsounet
    • electron-rebuild and MagicMirror v2.18 (and more)

      Hi, because (sometime) i’m kind

      I will offer you a tips for next release of MagicMirror (it’s comes 01/01/2022)

      Some modules need library linked to MagicMirror and do electron-rebuild step.

      • Last electron-rebuild package is actually not really ready for MagicMirror using (install many package not used)
      • Last package is not really ready for raspberry pi, and rebuild build will failed
        • problems with SSL
        • Problems with sub-dependencies (lzma-native can failed on build)

      So ?

      • I just write the new rebuild library dedicated to MagicMirror
      • I will maintened it (For my modules and yours if you want)
      • It will use exactly what MagicMirror needs (and ONLY that)
      • it will replace the electron-rebuild package

      What’s this new library ?

      • This library is magicmirror-rebuild
      • You can use it directly in your package.json file
        "dependencies": {
          "magicmirror-rebuild": "^1.0.0",
          ....
        }
      
      • You can install it directly with this command in a module directory:
      npm i magicmirror-rebuild
      
      • you can ask the rebuild step of MagicMirror (electron) with this command (in a module root directory)
      ./node_modules/.bin/MagicMirror-rebuild
      

      Sample with MagicMirror v2.18 and MMM-PIR-Sensor module

      bugsounet@debian:~/MagicMirror/modules/MMM-PIR-Sensor$ npm install
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
      npm WARN deprecated har-validator@5.1.5: this library is no longer supported
      npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
      
      > epoll@4.0.1 install /home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll
      > node-gyp rebuild
      
      make : on entre dans le répertoire « /home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build »
        CXX(target) Release/obj.target/epoll/src/epoll.o
        SOLINK_MODULE(target) Release/obj.target/epoll.node
        COPY Release/epoll.node
      make : on quitte le répertoire « /home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build »
      
      > Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall /home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor
      > electron-rebuild -e ../../node_modules/electron
      
      ⠋ Searching dependency tree
      An unhandled error occurred inside electron-rebuild
      Could not detect abi for version 16.0.5 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
      
      Error: Could not detect abi for version 16.0.5 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
          at Object.getAbi (/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-abi/index.js:36:9)
          at new Rebuilder (/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:126:48)
          at rebuildWithOptions (/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:404:23)
          at Object.doRebuild [as rebuild] (/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:427:16)
          at /home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/cli.js:124:33
          at Generator.next (<anonymous>)
          at fulfilled (/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/cli.js:6:58)
      npm ERR! code ELIFECYCLE
      npm ERR! errno 255
      npm ERR! Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall: `electron-rebuild -e ../../node_modules/electron`
      npm ERR! Exit status 255
      npm ERR! 
      npm ERR! Failed at the Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/bugsounet/.npm/_logs/2021-12-23T12_20_03_436Z-debug.log
      

      So the result is failed !

      1. Let’s install magicmirror-rebuild library
      bugsounet@debian:~/MagicMirror/modules/MMM-PIR-Sensor$ npm i magicmirror-rebuild
      npm notice created a lockfile as package-lock.json. You should commit this file.
      + magicmirror-rebuild@1.0.3
      
      1. Now try to execute MagicMirror-rebuild script for rebuild
      bugsounet@debian:~/MagicMirror/modules/MMM-PIR-Sensor$ ./node_modules/.bin/MagicMirror-rebuild 
      ⠼ MagicMirror Building module: epoll, Completed: 0gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
      ⠴ MagicMirror Building module: epoll, Completed: 0gyp http GET https://www.electronjs.org/headers/v16.0.5/node-v16.0.5-headers.tar.gz
      ⠼ MagicMirror Building module: epoll, Completed: 0gyp http 200 https://www.electronjs.org/headers/v16.0.5/node-v16.0.5-headers.tar.gz
      ⠏ MagicMirror Building module: epoll, Completed: 0gyp http GET https://www.electronjs.org/headers/v16.0.5/SHASUMS256.txt
      ⠧ MagicMirror Building module: epoll, Completed: 0gyp http 200 https://www.electronjs.org/headers/v16.0.5/SHASUMS256.txt
      gyp info spawn /usr/bin/python3
      gyp info spawn args [
      gyp info spawn args   '/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/node_modules/node-gyp/gyp/gyp_main.py',
      gyp info spawn args   'binding.gyp',
      gyp info spawn args   '-f',
      gyp info spawn args   'make',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/config.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/node_modules/node-gyp/addon.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/16.0.5/include/node/common.gypi',
      gyp info spawn args   '-Dlibrary=shared_library',
      gyp info spawn args   '-Dvisibility=default',
      gyp info spawn args   '-Dnode_root_dir=/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/16.0.5',
      gyp info spawn args   '-Dnode_gyp_dir=/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/node_modules/node-gyp',
      gyp info spawn args   '-Dnode_lib_file=/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/16.0.5/<(target_arch)/node.lib',
      gyp info spawn args   '-Dmodule_root_dir=/home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll',
      gyp info spawn args   '-Dnode_engine=v8',
      gyp info spawn args   '--depth=.',
      gyp info spawn args   '--no-parallel',
      gyp info spawn args   '--generator-output',
      gyp info spawn args   'build',
      gyp info spawn args   '-Goutput_dir=.'
      gyp info spawn args ]
      ⠋ MagicMirror Building module: epoll, Completed: 0gyp info spawn make
      gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
      make : on entre dans le répertoire « /home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build »
        CXX(target) Release/obj.target/epoll/src/epoll.o
      ⠸ MagicMirror Building module: epoll, Completed: 0  SOLINK_MODULE(target) Release/obj.target/epoll.node
      ⠼ MagicMirror Building module: epoll, Completed: 0  COPY Release/epoll.node
      make : on quitte le répertoire « /home/bugsounet/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build »
      ✔ MagicMirror Rebuild Complete
      

      That you see MagicMirror Rebuild Complete !
      Your module is now installed correctly

      posted in Development
      B
      bugsounet
    • RE: Camera via browser

      @Alyx maybe it’s your chance… I code it with extra plug-in
      Just wait a little days and i will finish

      posted in Troubleshooting
      B
      bugsounet
    • RE: Raspberry PI 4 stats

      @DarkV

      maybe MMM-Tools can help
      It’s works with rpi4

      33552e0e-4b06-4297-8af8-779d5ed8af8d-image.png

      from TelegramBot:
      7ef440df-ff45-43ed-bce6-1f79e0358452-image.png

      posted in Requests
      B
      bugsounet
    • RE: new raspi OS version release Jan 28

      @sdetweil :

      Note, if you are already with bulleyes build, it’s not necessary to reinstall system.

      Just do:

      • sudo apt-get update
      • sudo apt-get upgrade

      and it will update to last build 😉
      [this sytem is equal to windows OS with last build sample 21H2 -> 22H1]

      I says this… because some user will reinstall entire system 😃

      For your inform:

      pi@raspberrypi:~ $ uname -a
      Linux raspberrypi 5.10.92-v7l+ #1514 SMP Mon Jan 17 17:38:03 GMT 2022 armv7l GNU/Linux
      pi@raspberrypi:~ $ lsb_release -a
      No LSB modules are available.
      Distributor ID: Raspbian
      Description:    Raspbian GNU/Linux 11 (bullseye)
      Release:        11
      Codename:       bullseye
      pi@raspberrypi:~ $ node -v
      v14.18.3
      pi@raspberrypi:~ $ npm -v
      6.14.15
      
      posted in General Discussion
      B
      bugsounet
    • RE: Trouble playing audio file

      @sdetweil the problem is not there…
      The problem is you can’t play a file when it’s not fully created!

      2 solutions:
      Make a promise
      Or play the file when the file is created

      posted in Troubleshooting
      B
      bugsounet
    • RE: Making a dashboard for a company

      Hi, I have code an magic TV with MagicMirror app (v2. 13, never update it!) for my company.
      It display some information (read directly from database,) and slide show photos, internal document.
      It’s just an rpi3B+ used in local (for technician hall) with an 27’ screen computer and remotely (server mode for hall of the company) with a 100’ smart tv
      Works fine since ~2y now

      posted in General Discussion
      B
      bugsounet
    • RE: Completely lost

      @cowboysdude

      I’m using someone else’s PIR module [Name cannot mention he gets mad]

      😂

      posted in Troubleshooting
      B
      bugsounet
    • RE: MMM-WOTD

      @cowboysdude : you have set an error when you have created the repository …
      why WWW-WOTD ?
      in your module, you have Set MMM-WOTD

      So that why @lxne have an issue (nodule not found)

      And an error on the getDom function

          getDom: function() {
            var wrapper = document.createElement("div");
      
            if(this.loaded == true){
              var wotd = this.wotd[0]; 
              var wordTable = document.createElement('div');
              
              if (this.config.style == 'narrow') {
                  wordTable.classList.add('narrow');
              } else {
                  wordTable.classList.add('wide');
              }
              
              var wordTR = document.createElement('tr');
              
              var word = document.createElement('td');
              word.classList.add('bright', 'small');
              word.setAttribute('style', 'background:' + this.config.wbackground);
              word.innerHTML = "Word  ";
              wordTR.appendChild(word);
              
              
              var word2 = document.createElement('td');
              word2.classList.add('small');
              word2.setAttribute("style", "color:" + this.config.word + "; background-color: " + this.config.dbackground + ";"); 
              word2.innerHTML = wotd.word;
              wordTR.appendChild(word2);
              
              wordTable.appendChild(wordTR);
              
              var wordTR2 = document.createElement('tr');
              
              var wordd = document.createElement('td');
              wordd.classList.add('bright', 'small');
              wordd.setAttribute('style', 'background:' + this.config.wbackground);
              wordd.innerHTML = "Meaning  ";
              wordTR2.appendChild(wordd);
              
              
              var wordd2 = document.createElement('td');
              wordd2.classList.add('small');
              wordd2.setAttribute('style', 'color:' + this.config.definition + '; background-color: ' + this.config.dbackground + ';');
              wordd2.innerHTML = wotd.definition;
              wordTR2.appendChild(wordd2);
              
              wordTable.appendChild(wordTR2);
              
              var wordTR3 = document.createElement('tr');
              
              var wordf = document.createElement('td');
              wordf.classList.add('bright', 'small');
              wordf.setAttribute('style', 'background:' + this.config.wbackground);
              wordf.innerHTML = "Say  ";
              wordTR3.appendChild(wordf);
              
              
              var wordf2 = document.createElement('td');
              wordf2.setAttribute('style', 'color:' + this.config.say + '; background-color: ' + this.config.dbackground + ';');
              wordf2.classList.add('small');
              wordf2.innerHTML = wotd.pronunciation;
              wordTR3.appendChild(wordf2);
              
              wordTable.appendChild(wordTR3);
              wrapper.appendChild(wordTable);
            }
            return wrapper;
          },
      
      • wow … tr/td tag like win95 ???, i think, you can do better !
      • I have corrected your error… you have not created the Dom on first request
      • package.json missing ! (if an user do npm install … it will install MagicMirror !)

      @lxne: for a temp resolve, just rename WWW-WOTD in modules directory to MMM-WOTD

      posted in Fun & Games
      B
      bugsounet
    • RE: Completely lost

      but … who is this guy !? 😁
      an anonymous maybe ! 😂

      posted in Troubleshooting
      B
      bugsounet

    Latest posts made by bugsounet

    • RE: Error with GooglePhotos API

      So… select it… and apply the rules!
      What do you want us to tell you…

      (I forget that I work with the google team!)

      Do it yourself 🙂

      posted in Troubleshooting
      B
      bugsounet
    • RE: Error with GooglePhotos API

      @sdetweil just create new credentials and see 😉

      For old compatibility:
      d1162e22-eaa4-4b76-95b1-8892de29cca2-image.png

      posted in Troubleshooting
      B
      bugsounet
    • RE: Error with GooglePhotos API

      @sdetweil said in Error with GooglePhotos API:

      the credentials.json file must start

      {"installed":{"
      

      euh installed is deprecied since one years now …
      it must start with web: { now

      posted in Troubleshooting
      B
      bugsounet
    • RE: automatic update module by notification

      @bdream , Hi it’s already coded since some year but not published in this forum 😁

      posted in Requests
      B
      bugsounet
    • RE: Some guidance please

      (and that why… I don’t offer any help there! 😁 )

      posted in General Discussion
      B
      bugsounet
    • RE: RTE EcoWatt

      @ELMAGO je me demande même si ce n’est pas généré une seul fois par jour… C’est marrant quand même car d’après les média: c’est du direct

      posted in Requests
      B
      bugsounet
    • RE: RTE EcoWatt

      @ELMAGO c’est la date que la RTE a générer le fichier. Je fais qu’afficher ce que l’on donne 😉

      posted in Requests
      B
      bugsounet
    • RE: Pir sensor

      @j-e-f-f ah ? So cool so! Give me a sample or tuto?

      posted in Troubleshooting
      B
      bugsounet
    • RE: RTE EcoWatt

      Je viens de publier officiellement ce module

      Toutes les informations sont disponible sur mon wiki

      Bonne utilisation a tous !

      @bugsounet

      /!\ Attention /!\

      • Ce module ne doit pas être listé dans le 3rd party modules
      • Ce module n’est pas codé Spécialement pour ce forum
      • Je n’apporterai AUCUN support de ce module sur ce forum

      Merci de votre comphrension 🙂

      posted in Requests
      B
      bugsounet
    • RE: RTE EcoWatt

      Design final:

      0b06aaa7-d1c7-4a53-b418-41d18ea26e25-image.png

      posted in Requests
      B
      bugsounet