Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. veryaner
    V
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 1
    • Groups 0

    veryaner

    @veryaner

    1
    Reputation
    457
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    veryaner Follow

    Best posts made by veryaner

    • RE: Get user input

      Great it worked!!! My mistake was that I was creating the app after a notification and not at the start of my module!
      Thanks a lot!

      posted in Development
      V
      veryaner

    Latest posts made by veryaner

    • RE: Schedule a function in a module.

      @yo-less I solved in a different way that it was planned before, but just for the fill the lack of knowledge, can you share your solution?
      tks!

      posted in Development
      V
      veryaner
    • RE: Get user input

      Great it worked!!! My mistake was that I was creating the app after a notification and not at the start of my module!
      Thanks a lot!

      posted in Development
      V
      veryaner
    • Get user input

      Hi, I’m still pretty new in this node.js topic, but I’m really interesting in adding some modules.
      I’m struggling to get user input base on a button in the front-end (not physical button) but I cannot find the solution.
      I tried with:

      // create the server
      	listen: function() {
      		this.expressApp.get('/Button1', function (req, res) {
      			sendSocketNotification('BUTTON1', 'Hello world');
      			//res.send('Stop signal sent!');
      		});
      	},
      

      But I got a:
      ReferenceError: sendSocketNotification is not defined
      or with this.sendSocketNotification I got:
      TypeError: this.sendSocketNotification is not a function

      Is there any way to get the user input?

      Thanks!


      Note from admin: Please use Markdown on code snippets for easier reading!

      posted in Development
      V
      veryaner
    • Schedule a function in a module.

      Hi all, I’m pretty new on this, I really love MM despite I’m not using as a mirror, I’ve installed it on a RPi2 with the touch screen display and I’m planning to use it as an alarm clock.

      I’m trying to schedule a task (basically and alarm) but I’m not able to trigger another schedule function from my module. I tried node-schedule, later, node-cron and cron without any success.

      Any idea?

      Thanks!

      posted in Development
      V
      veryaner