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

    cycaaa

    @cycaaa

    0
    Reputation
    137
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    cycaaa Unfollow Follow

    Latest posts made by cycaaa

    • how to create slide button for my carousel?

      hi, i used carousel module. but this module is can’t create different button. For example, make four slide that made in the same shape. how to create different shape button for each slide?0_1559141143480_캡처.PNG

      my button is made up image. I want to change the button to a different image.
      i wanna your help please.
      thank you.

      posted in Troubleshooting
      C
      cycaaa
    • RE: how to divide the payload of socketnotification

      @sdetweil
      is my payload.
      0_1557182965874_캡처.PNG image url)

      posted in Troubleshooting
      C
      cycaaa
    • how to divide the payload of socketnotification

      I have this problem. The code below sends an alert to Socket Notify and other modules handle the notification.

      sendNotification ‘result’

      socketNotificationReceived: function(notification, payload) {
          switch(notification) {
            case "TEST":
              console.log("notification : " + notification)
      	    PythonShell.run('c://Users/user/Desktop/MagicMirror-master/modules/MMM-Testpython/FCF.py', null, function (err, result) {
                  if (err) throw err;
                  console.log("sex" + result);          
                  socketTestpython.sendSocketNotification("I_DID",result);
                });
      	       
              break
          }
        }
      

      recived notification but the ‘split’ doesn’t work.
      The log with the payload as a factor is well show. but Payload 3 is not show.

       },
        socketNotificationReceived: function(notification, payload) {
          switch(notification) {
            case "I_DID":
              console.log("Socket recevied 1: " + payload);
              var payload3;
              payload3=payload.split("_");
              console.log("Socket recevied 1: " + payload3);
              var elemk = document.getElementById("showage");
              var sex = payload3[0];
              console.log("Socket recevied 1: " + sex);
              var age = payload3[1];
              console.log("Socket recevied 1: " + age);
              var change;
              if (sex == "Male"){
      

      Why doesn’t the split work?

      posted in Troubleshooting
      C
      cycaaa