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.

    Development Branch -- MMM-Unsplash

    Scheduled Pinned Locked Moved Bug Hunt
    19 Posts 5 Posters 6.0k Views 5 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
      sdetweil @BKeyport
      last edited by

      @bkeyport only 3 weeks til release… worried about what else will break…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @sdetweil said in Development Branch -- MMM-Unsplash:

        only 3 weeks til release… worried about what else will break…

        Nothing that you can’t fix. :thumbsup:

        Create a working config
        How to add modules

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Mykle1
          last edited by

          @mykle1 I don’t think the base will be a problem. the modules however

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil said in Development Branch -- MMM-Unsplash:

            I don’t think the base will be a problem. the modules however

            In that case, get ready to get busy. ;-)

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • Y Offline
              yk
              last edited by

              I’m going through normal debug type approaches to see what’s up. Seems Unsplash hasn’t been updated in ages. Can someone remind me how to inspect the rendered mm page remotely? I’m thinking I’ll just browse to the ip, and slowly go through each div via inspect. I’ve done it before but don’t remember how I did it. Painful but easily doable. This could just be a ā€œsomething changed and it’s a style issueā€.

              Y 1 Reply Last reply Reply Quote 0
              • Y Offline
                yk @yk
                last edited by

                Got it. Tweaked config.js to browse to ip:8080. I think you guys are right, there are going to be many modules broken. ;)

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @yk
                  last edited by sdetweil

                  @yk hm… looking at the code and testing that module, this line (44) fails

                  	img1.src = obj.urls.custom
                  

                  as ā€˜custom’ doesn’t exist

                  Screenshot at 2021-03-06 09-02-44.png

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  Y 1 Reply Last reply Reply Quote 0
                  • Y Offline
                    yk @sdetweil
                    last edited by

                    @sdetweil saw that. Love the fact that it worked just a few days ago. I have a funny feeling it’s between Unsplash API and new work in MM. I’m reading the API docs now. It’s a simple setup so hopefully a tweak shouldn’t be too tough.

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @yk
                      last edited by

                      @yk its not in MM… don’t you love coincidences??
                      the api just didn’t return the data it used to return

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      Y 1 Reply Last reply Reply Quote 0
                      • Y Offline
                        yk @sdetweil
                        last edited by

                        @sdetweil hehe. Agreed. And now I have a decision to make. Hack it to work or rewrite. šŸ˜‰

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @yk
                          last edited by

                          @yk well, how did the ā€˜custom’ image compare to one of the other choices? and can u force the other choice back to what custom was…

                          should be only a couple lines of code…

                          i checked my background image code modules and they are ok… (local files)

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          Y 1 Reply Last reply Reply Quote 0
                          • Y Offline
                            yk @sdetweil
                            last edited by

                            @sdetweil Fixed. It’s a change in the Unsplash API. obj.urls.custom is no longer an option returned in JSON. I changed ā€œcustomā€ to ā€œrawā€ and it’s good.

                            Lovely.

                            BKeyportB 1 Reply Last reply Reply Quote 1
                            • BKeyportB Offline
                              BKeyport Module Developer @yk
                              last edited by

                              … I should check mine and flip over to dev myself.

                              The "E" in "Javascript" stands for "Easy"

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @BKeyport
                                last edited by

                                @bkeyport this problem had nothing to do with MM… just coincidence…(which I HATE!)

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                BKeyportB 1 Reply Last reply Reply Quote 0
                                • BKeyportB Offline
                                  BKeyport Module Developer @sdetweil
                                  last edited by

                                  @sdetweil Yeah, I know, but it don’t hurt to check.

                                  The "E" in "Javascript" stands for "Easy"

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    duxnobis
                                    last edited by

                                    @yk said in Development Branch -- MMM-Unsplash:

                                    obj.urls.custom

                                    for all out there as stupid as I am… :-) its this which has to be modified from .custom to .raw (row 130 in my WallberryTheme.js file).

                                    from:
                                    p.url = photoData.urls.custom;

                                    to:
                                    p.url = photoData.urls.raw;

                                    Cheers and thanks for the hack mates!
                                    Patrick

                                    1 Reply Last reply Reply Quote 0

                                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                    With your input, this post could be even better šŸ’—

                                    Register Login
                                    • 1 / 1
                                    • 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