• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
  1. Home
  2. Ramez
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

Ramez

@Ramez

0
Reputation
605
Profile views
23
Posts
0
Followers
0
Following
Joined Sep 5, 2018, 7:42 PM
Last Online May 30, 2020, 1:28 AM

Ramez Unfollow Follow

Latest posts made by Ramez

  • MMM-Facebook

    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

    posted in Development
    R
    Ramez
    May 23, 2020, 10:30 AM
  • RE: Installing on a Pi Zero

    great :raising_hands: i think your zero repository should be mentioned in the main MM readme

    posted in Troubleshooting
    R
    Ramez
    Jan 3, 2019, 5:54 PM
  • RE: Bathroom Magic Mirror

    really nice :) just a small question, how did you mount it to the bath wall? you drilled the wall for some hings or what?

    many thanks :thumbs_up:

    posted in Show your Mirror
    R
    Ramez
    Jan 1, 2019, 9:55 PM
  • RE: iFrame module ip camera

    in config file change the lines:
    address: "localhost", to address: "", and ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], to ipWhitelist: [],
    then try…if not then stream it with other MMM-iFrame module…I’ve just tried to stream my mobile camera capture using IP webcam it’s not working in MMM-iFrame-ping module but in MMM-iFrame it’s super awesome :raising_hands:

    posted in Troubleshooting
    R
    Ramez
    Jan 1, 2019, 9:39 PM
  • RE: My first smart mirror in a frame of 40 x 30 cm with Raspberry Pi Zero W

    @qu1que many thanks I’ve made my mirror using the pi3 B model and thinking of making another (affordable) one using the zero w model but having some concern about berformance…is it fair enough to handle the MagicMirror only?

    posted in Show your Mirror
    R
    Ramez
    Dec 17, 2018, 6:15 AM
  • RE: My first smart mirror in a frame of 40 x 30 cm with Raspberry Pi Zero W

    software tutorial please…
    thanks in advance

    posted in Show your Mirror
    R
    Ramez
    Dec 15, 2018, 7:54 AM
  • RE: Playing a local mp4 file as a module

    @remylpat nice, you may have to check those 2 modules MMM-Buttons and capacitve touch buttons fork

    posted in Troubleshooting
    R
    Ramez
    Dec 4, 2018, 2:52 AM
  • RE: Playing a local mp4 file as a module

    @remylpat great so first thing need to know is that your module will consist of 2 files the YOUR_MODULE_NAME.js and node_helper.js and maybe third file called YOUR_MODULE_NAME.css, The short brief description of thoses files is:

    1- your_module_name.js file builds you module and communicate with other modules “like alerts and voice commands module…etc”
    2- node_helper.js file communicate with OS itself "where you would ask it to play MP4 files or songs or send and Email or even shutdown the whole system!
    3- your_module_name.css builds the shape of your module and how it look like on the mirror “I think you don’t really need it as your module idea is to take an alert or command from other modules then run omxplayer or vlc”

    Excuse me I don’t know what is WAF? also do you run your mirror with voice commands? I mean how you really wanna to play the MP4 file by telling the mirror or setting it to play at exact time in the day? or even play it when the weather becomes raining! and the most important question…do you’ve time to read :) here is The full desc. on how to make a module if you’re lazy like me :D so here is a great module MMM-voiceradio that you can simply edit it to best suite your needs, so it’s main MMM-Myvoiceradio.js just take a command (which is called a notification in our mirror) from voice module and pass it to the node_helper.js to run some system files, what you need to edit here is the notification that make your module intialized and the exec command to play your file.

    Do some progress I’m waiting for your next question (^_^)

    posted in Troubleshooting
    R
    Ramez
    Dec 3, 2018, 2:41 AM
  • RE: Playing a local mp4 file as a module

    @remylpat a lot of solutions out there, it depends on how noob you’re :)

    posted in Troubleshooting
    R
    Ramez
    Dec 1, 2018, 5:43 PM
  • RE: User Friendly magic mirror/mm ui?

    I’ve searched a lot for kind of (ease of use) configuration to the mirror but almost found nothing, the best what you can have till now! is MMM-RemoteControl where you can show/hide modules and restart/turn off the mirror, other than that some modules provides controlling it over telegram but still rather limited

    would be very nice to add such option or app to configure the mirror for the very noobs without having code knowledge as am also making my mirror as a gift.

    posted in Hardware
    R
    Ramez
    Nov 18, 2018, 9:48 AM
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy