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.

    Develop module with API

    Scheduled Pinned Locked Moved Development
    42 Posts 6 Posters 14.7k Views 6 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer
      last edited by

      Screenshot from 2021-01-01 10-03-14.png

      Create a working config
      How to add modules

      R 1 Reply Last reply Reply Quote 1
      • R Offline
        rick93 @Mykle1
        last edited by

        Hi @Mykle1 , I am trying to display only one parameter on the magic mirror,unfortunately it show undefined. I tried different ways but still cant make it.
        I don’t not know what is the root cause since I was using MMM_UFO as my template. Do you mind to have a look on my module and advice me?
        Thank you very much.
        https://github.com/rick0222/MM-SW

        a16bb0c1-a7a0-4d7a-9874-a22b02b995b8-image.png

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          rick93 @rick93
          last edited by

          @rick93 said in Develop module with API:

          Hi @Mykle1 , I am trying to display only one parameter on the magic mirror,unfortunately it show undefined. I tried different ways but still cant make it.
          I don’t not know what is the root cause since I was using MMM_UFO as my template. Do you mind to have a look on my module and advice me?
          Thank you very much.
          https://github.com/rick0222/MM-SW

          a16bb0c1-a7a0-4d7a-9874-a22b02b995b8-image.png

          rick93 about 2 hours ago
          I am not sure is the issue came from the API that I inserted not correct and return a wrong data. but I have no idea how I can make it work.

          this.url = "https://api.data.gov.sg/v1/environment/4-day-weather-forecast";
          		this.SW = [];
          
          Mykle1M 2 Replies Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @rick93
            last edited by

            @rick93

            Ok, I’ll take a look at it. :-)

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 1
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @rick93
              last edited by

              @rick93

              Give me your email in a private chat message and I’ll send you the fixed files.

              You’re doing well. Don’t worry about making mistakes or being new. Everyone here has, at one time or another, been right where you are. I still struggle with coding. I’m just too old and too stupid to stop trying.

              Create a working config
              How to add modules

              R 1 Reply Last reply Reply Quote 1
              • R Offline
                rick93 @Mykle1
                last edited by

                @Mykle1 said in Develop module with API:

                @rick93

                Give me your email in a private chat message and I’ll send you the fixed files.

                You’re doing well. Don’t worry about making mistakes or being new. Everyone here has, at one time or another, been right where you are. I still struggle with coding. I’m just too old and too stupid to stop trying.

                Big thanks !! @Mykle1 it’s just a simple code change that made my module works !! fantastic!

                Mykle1M 1 Reply Last reply Reply Quote 1
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @rick93
                  last edited by

                  @rick93

                  You’re welcome, mate. Congrats on making your module!

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 3
                  • 4
                  • 5
                  • 4 / 5
                  • First post
                    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