• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Get value from Input Box

Scheduled Pinned Locked Moved Unsolved Development
6 Posts 2 Posters 3.4k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    shvncrvn
    last edited by Sep 30, 2016, 6:59 PM

    Hi Guys,

    I am new to development but love the features and modules which MM offers.
    I would however would like to use a string inputted into a hidden input box terminated by return to hit a webservice and update MM to display the results.

    Is there anyone that can point me in the right direction to get this going ?

    Appreciate the help.

    J 1 Reply Last reply Oct 1, 2016, 11:13 AM Reply Quote 0
    • J Offline
      Jopyth Moderator @shvncrvn
      last edited by Jopyth Oct 1, 2016, 11:15 AM Oct 1, 2016, 11:13 AM

      @shvncrvn This seems a little bit too vague to me. Are you trying to reach an external webservice (like google?), where you would input something into the box, and display that result on your mirror? If yes, you can try to find out if this webservice uses POST or GET requests to retrieve the data (through developer console of your browser) or maybe even has an API, or anything like that, and send a request to that the same URL.

      In this case you can look at this module and see if it works for you.

      Helpful sticky: How to troubleshoot

      1 Reply Last reply Reply Quote 1
      • S Offline
        shvncrvn
        last edited by Oct 1, 2016, 3:06 PM

        @Jopyth thanks for the response. Basically I want a bar-code scanner (attached to the rpi) to read a bar-code and send a request to a web service, which entails updates magicmirror. The module you mentioned could work for retrieving the data but me sending an input string in real time to the mirror is what I am unsure of.

        J 1 Reply Last reply Oct 1, 2016, 6:20 PM Reply Quote 0
        • J Offline
          Jopyth Moderator @shvncrvn
          last edited by Oct 1, 2016, 6:20 PM

          @shvncrvn Well, that depends on how your scanner is connected? Is there any library or project that already can read a code from it?

          Helpful sticky: How to troubleshoot

          S 1 Reply Last reply Oct 2, 2016, 6:29 AM Reply Quote 0
          • S Offline
            shvncrvn @Jopyth
            last edited by shvncrvn Oct 2, 2016, 6:29 AM Oct 2, 2016, 6:29 AM

            @Jopyth Yup a bar code scanner hooks up to USB and basically just emulates a keyboard by typing in the numbers of the bar code it scanned. It doesn’t need any special drivers.

            J 1 Reply Last reply Oct 2, 2016, 9:27 AM Reply Quote 0
            • J Offline
              Jopyth Moderator @shvncrvn
              last edited by Oct 2, 2016, 9:27 AM

              @shvncrvn Well then you might just do something like this (needs jquery) in your module, and catch the typing of the scanner.

              Helpful sticky: How to troubleshoot

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                Last post
              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