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

    Posts

    Recent Best Controversial
    • RE: MMM-AlarmClock append / push to alarms array

      @strawberry-3.141 changed, thank you!

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • RE: MMM-AlarmClock append / push to alarms array

      I removed the Dom update and it seems to work.

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • RE: MMM-Mqtt pub and sub at the same time

      @Mykle1 I ended up copying and renaming the entire module! Worked way better than my silly workaround. Thank you! :)

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • MMM-AlarmClock append / push to alarms array

      I’m trying to append alarm objects to the alarms array
      This is my code so far.

      // SET ALARM
              if(notification === "SET_ALARM"){
                  var mqttData = JSON.parse(payload);
                  this.config.alarms.push({time: mqttData.hour+":"+mqttData.min, days:
       [1,2,3,4,5,6,7], sound: "alarm.mp3", title: "Alarm", message: mqttData.msg});
                  this.updateDom(300);            
                  console.log("alarm obj: "+this.config.alarms);
              }
      

      However, in the console it shows only one alarm object.
      0_1516038503305_c79d2306-4f34-4423-b9b2-eeff11d9ffcc-image.png

      Note: I have one alarm set in the config file

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • RE: How to show a popup window

      @strawberry-3.141 great, that’s perfect I’ll take a look thank you!

      posted in Development
      axellejamousA
      axellejamous
    • How to show a popup window

      I’m trying to write my own module that will allow me to set the alarm for the MMM-AlarmClock module through buttons attached to your Pi.

      I have the code that will read my button inputs, I have the code that will send the notification to set the alarm and I have my buttons on a PCB wired to my Pi.

      There are 5 buttons: one ‘confirm’ button in the middle and 4 around it that count as arrows (left, right, up, down).
      This way you’ll be able to set it number per number (kind of like the iphone alarm setter but without animation).

      However, I just can’t seem to figure out how to show a popup window that will allow users to set the alarm in.
      I know this is probably very simple, but I’m fairly new to JS. I’ve looked at the alert and iFrame modules but can’t really figure out how to use those for my module or if that would even make sense.

      This would be the flow:
      Press confirm button > open small popup window on top > push up or down until number matches time > push right or left to set next or previous number > repeat > confirm > send notification

      My apologies if this was way too much information.

      posted in Development
      axellejamousA
      axellejamous
    • RE: MMM-Mqtt pub and sub at the same time

      @Mykle1 this was indeed the alternative solution I had in mind! I managed to get it to work now, but it looks a bit iffy since both instances of the module will receive the incoming data and so it will be displayed on the screen twice (which doesn’t seem to happen with outgoing data). I’m going to try see if I can manage to display it only on one of them and otherwise I’ll revert to the alternative you suggested! Thank you :)

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • MMM-Mqtt pub and sub at the same time

      Hello,

      I was wondering if any of you know how to actually subscribe and publish to a topic using this module? I currently tried adding two different instances of the module to the config file and have one set as sending and one as receiving but that just causes the module to crash and go offline.
      Has anyone figured out how to do both of these at the same time?

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • RE: [SOLVED] Anyone tried MMM-mqtt?

      Hello,

      I was wondering if any of you know how to actually subscribe and publish to a topic using this module? I currently tried adding two different modules to the config file and have one set as sending and one as receiving but that just causes the module to crash. Has anyone figured out how to do both of these at the same time?

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • RE: MMM-AlarmClock

      @strawberry-3.141 I understand, that’s actually really useful thank you! Can I pass parameters with a socketnotification?

      posted in Utilities
      axellejamousA
      axellejamous
    • RE: MMM-AlarmClock

      Thank you so much for this module, it’s amazing and really easy to use!

      I was wondering however, if I would want to let’s say set the alarm through some buttons attached to my pi, would it be best to try and inject lines into the config file (which seems sloppy to me) or can I set it through the js file directly? Or do I just make a second setnextalarm function?

      posted in Utilities
      axellejamousA
      axellejamous
    • RE: Input sound dont work (Voice Control)

      @axellejamous actually it’s really well explain in the snowboy docs. Just scroll down to the asoundrc section and follow the steps!
      https://snowboy.kitt.ai/docs

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • RE: Input sound dont work (Voice Control)

      I recently had the same issue.
      Check what values you have in your audio file (cat ~/.asoundrc)
      For me they were all 0 and changing them to 1 fixed my issue.

      Like this:
      0_1510317948340_a8580255-6032-477b-baac-188866d3a8e9-image.png

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • RE: How to MANUALLY install MM on your Pi. For absolute beginners.

      @slametps Yeah had to do the same! But I downgraded to 1.7.9, so I’ll change it to 1.6.10 now thank you! :)

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • RE: Blank black screen | Noob

      @bhepler I was! But I manages to fix the issue.
      When checking npm versions I saw that electron was ver 1.8.1
      I ended up rolling back to 1.7.9 and it works perfectly!
      Have no idea why 1.8.1 results in a black screen though.

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • RE: Mirror Not Working

      @aayush447
      Ok. I seemed to have solved my issue, the MM works with npm start now.
      Electron seemed to be causing the issue for me.

      Try this:
      0_1508876151290_dd0a940d-ad6e-44cf-8428-82dc1438c451-image.png
      and then:
      0_1508876202764_b91dd1d8-8b98-4e72-bf20-5b8b90cd45ec-image.png
      Then just try running npm start in the MagicMirror directory.

      I’m not sure why, but this solved it for me! Since you seem to have the same issue it might solve yours too.

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • RE: Mirror Not Working

      @aayush447
      Severonly works perfectly, all modules come up like they should and no errors

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • RE: Blank black screen | Noob

      Hello!

      I was wondering if any of you could help me.
      I’m basically having the exact same issue as this topic, except the “nl to en” fix isn’t working for me. I’m running the MM with it’s basic config file.
      Runs fine on serveronly, but get a black screen on npm start.

      I’ve updated everything from my pi to my os to my node modules, but nothing seems to be working. There also don’t seem to be any errors.

      posted in Troubleshooting
      axellejamousA
      axellejamous
    • 1 / 1