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

    axellejamous

    @axellejamous

    Electronics & IT student @ Artesis Plantijn University College

    5
    Reputation
    922
    Profile views
    29
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    axellejamous Unfollow Follow

    Best posts made by axellejamous

    • RE: "moment npm package" causes black screen after npm start

      Solved the issue by simply running npm install in the vendor folder.

      Found thanks to this issue

      Thought I’d share the solution so maybe noobs like me can use it in the future.

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

      @Mykle1
      I did luckily!
      I indeed had the issue after manual installation. Fact is, the automatic installation script would actually get stuck on two of my Pi’s at the node modules installation.
      So I had to manually install.

      In the issue that helped me find the answer, he did do a manual install as well and had the same problem.
      But someone did mention “in the latest version there is a npm install task in the vendor folder as well which gets executed automatically after a successful install, yours wasn’t successful so this was never executed” which means I probably made a mistake in my manual installation, although I have no clue what it could’ve is as I followed the steps thoroughly on 2 different pi’s, getting the same result.

      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: 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
    • 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

    Latest posts made by axellejamous

    • 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