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

Help needed simple API based module

Scheduled Pinned Locked Moved Development
19 Posts 4 Posters 9.5k Views 4 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.
  • W Offline
    washichi
    last edited by Feb 1, 2017, 4:22 PM

    thank you! It’s now working :)
    I thought that my scheduleupdate was working but it didn’t (only 2 times )
    with the Log function I could find the problem easy .

    1 Reply Last reply Reply Quote 1
    • Y Offline
      yawns Moderator
      last edited by Feb 1, 2017, 5:03 PM

      great. Now tidy up your code ;) and present your module in modules showcase

      O 1 Reply Last reply Feb 1, 2017, 7:38 PM Reply Quote 2
      • O Offline
        ooom416354 @yawns
        last edited by Feb 1, 2017, 7:38 PM

        @washichi @yawns this is great work. I am wondering, would this completed code be kind of a base for making other API calls which return data in JSON format?

        W C 2 Replies Last reply Feb 1, 2017, 9:04 PM Reply Quote 1
        • W Offline
          washichi @ooom416354
          last edited by Feb 1, 2017, 9:04 PM

          @ooom416354 Yes, but other modules are also that.
          I used the default module “weatherforecast” it is an simple api based module that gets the data and displays it in a table.

          I’m now trying to add a map, and then display the ISS current position on that, but implementing this in a module is a lot harder then normal javascript :p.

          O 1 Reply Last reply Feb 1, 2017, 9:49 PM Reply Quote 0
          • Y Offline
            yawns Moderator
            last edited by Feb 1, 2017, 9:04 PM

            @ooom416354
            Yes, kind of. At least with JSON calls without additional headers. The you need to use request and a node_helper

            1 Reply Last reply Reply Quote 0
            • O Offline
              ooom416354 @washichi
              last edited by Feb 1, 2017, 9:49 PM

              @washichi Yea, I am still not even sure how to translate the returned JSON to an actual visual table on the mirror. Not very good at this lol

              C 1 Reply Last reply Feb 1, 2017, 10:08 PM Reply Quote 1
              • C Offline
                cowboysdude Module Developer @ooom416354
                last edited by Feb 1, 2017, 10:08 PM

                @ooom416354 It could be yes ;)

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cowboysdude Module Developer @ooom416354
                  last edited by Feb 1, 2017, 10:08 PM

                  @ooom416354 said in Help needed simple API based module:

                  @washichi Yea, I am still not even sure how to translate the returned JSON to an actual visual table on the mirror. Not very good at this lol

                  Me either but won’t stop me from trying :)

                  O 1 Reply Last reply Feb 1, 2017, 10:38 PM Reply Quote 0
                  • O Offline
                    ooom416354 @cowboysdude
                    last edited by Feb 1, 2017, 10:38 PM

                    @cowboysdude yup I agree with that!

                    1 Reply Last reply Reply Quote 1
                    • 1
                    • 2
                    • 2 / 2
                    2 / 2
                    • First post
                      14/19
                      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