MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Ramez
    3. Topics
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 23
    • Groups 0

    Topics

    • R

      MMM-Facebook

      Watching Ignoring Scheduled Pinned Locked Moved Development
      1
      0 Votes
      1 Posts
      809 Views
      R
      Greetings, almost 2 years since my last contribution here and thanks to Covid19 #stay_home am back again with lots of great ideas :) I want to create a facebook notifications module using this simple idea: 1- login to mbasic.facebook.com through iframe (simple to user and more secure than typing account details in config.js plus I can’t find any API for that yet. 2- parse the very basic html tags https://mbasic.facebook.com data and extract : <strong class="bj">Notifications< span aria-label="X new">(X)</span></strong> Messages< span aria-label="X unread">(X)</span> Friends< span aria-label="X new requests">(X)</span> <strong class="bj">Pages< span aria-label="XX new alerts">(XX)</span></strong> and so on… 3- Create a Facebook like notification bar/icons with red counter bubble of parsed X number for each notification. 4- regular check/update the page to get the new count and send.notification to the Alert module (playing some notify sound). the module config would be like that: session.login:"true", /*set for the first time(login) only*/ sound.notify:"true", /*enable sound notification through local file (omx or vlc to play) or through send.notification Alert module if current X the notification number higher than old X */ update.interval:"10", /* minutes maybe*/ style:"2", /* kinda optional for view style 0 horizontal 1 vertical 2 themed...etc The great news is all facebook notifications, messages, page messages, page notifications, friend request…etc are enclosed in simple html tags can be parsed easily also we can skip the iframe part here and login from any iframe module the login data will be saved to mirror cache… but the bad news is I don’t know how (very newbie in JS coding from scratch). Kindly help me creating such great and useful module I’ve seen some tutorials in parsing data using node.JS but it’s kinda hard to me Thanks in advance
    • R

      Font Awesome alert icons

      Watching Ignoring Scheduled Pinned Locked Moved Development font awesome imagefa alert module sendnotification
      1
      0 Votes
      1 Posts
      740 Views
      R
      greetings, I’m building my first little module which sends a notification to Alert module by this.sendNotification("SHOW_ALERT", {title: "blah", imageFA: 'bullhorn', message: "blah", timer: 5000}); the problem is any icon in imageFA except bullhorn isn’t shown even with adding the proper getStyles: function() { return ['font-awesome.css']; }, to my_module.js file so the question is, does alert module fully handle the notification payload (which contains imageFA data) if so looks like there is a problem with the default module?, or something missing has to be configured first in my module??
    • R

      iFrame module cache clean

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Troubleshooting
      1
      0 Votes
      1 Posts
      650 Views
      R
      greetings, a lot of iFrame modules and it’s forks out there but a small question just arised, When viewing a web page using iframe where it’s cache being stored? I’ve actually used MMM-iframe module to view a memo notepad site and want to clean it’s cache, removing electron cache didn’t help…any help please
    • R

      MagicMirror and RetroPie

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      943 Views
      R
      @ramez I’ve made a script that runs MM from RetroPie but when try to run it didn’t start here is the npm log file… 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ] 2 info using npm@5.6.0 3 info using node@v9.11.2 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle magicmirror@2.4.1~prestart: magicmirror@2.4.1 6 info lifecycle magicmirror@2.4.1~start: magicmirror@2.4.1 7 verbose lifecycle magicmirror@2.4.1~start: unsafe-perm in lifecycle true 8 verbose lifecycle magicmirror@2.4.1~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games 9 verbose lifecycle magicmirror@2.4.1~start: CWD: /home/pi/MagicMirror 10 silly lifecycle magicmirror@2.4.1~start: Args: [ '-c', 'sh run-start.sh' ] 11 silly lifecycle magicmirror@2.4.1~start: Returned: code: 1 signal: null 12 info lifecycle magicmirror@2.4.1~start: Failed to exec start script 13 verbose stack Error: magicmirror@2.4.1 start: `sh run-start.sh` 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16) 13 verbose stack at EventEmitter.emit (events.js:180:13) 13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:180:13) 13 verbose stack at maybeClose (internal/child_process.js:936:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5) 14 verbose pkgid magicmirror@2.4.1 15 verbose cwd /home/pi/MagicMirror 16 verbose Linux 4.14.62-v7+ 17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start" 18 verbose node v9.11.2 19 verbose npm v5.6.0 20 error code ELIFECYCLE 21 error errno 1 22 error magicmirror@2.4.1 start: `sh run-start.sh` 22 error Exit status 1 23 error Failed at the magicmirror@2.4.1 start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ] any help please?
    • 1 / 1