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

First MagicMirror

Scheduled Pinned Locked Moved Show your Mirror
28 Posts 13 Posters 28.2k Views 14 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.
  • D Offline
    delightedCrow Project Sponsor Module Developer
    last edited by Nov 1, 2018, 12:32 AM

    Thanks!! I would LOVE to be able to embed a mirror in drywall (someday the dream will come true lol).

    Now that I know what to expect from framing and cable management I’d love to build a super slim version. I’ll be keeping an eye out for deals on laptop screens from now on I think :)

    1 Reply Last reply Reply Quote 1
    • P Offline
      PhilReis
      last edited by Nov 1, 2018, 10:45 PM

      Nice Mirror!!
      Which Font do you use?

      D 1 Reply Last reply Nov 1, 2018, 10:52 PM Reply Quote 1
      • D Offline
        delightedCrow Project Sponsor Module Developer @PhilReis
        last edited by Nov 1, 2018, 10:52 PM

        @philreis Thanks! The font is Rubik.

        1 Reply Last reply Reply Quote 0
        • R Offline
          rudibarani Project Sponsor @delightedCrow
          last edited by Nov 3, 2018, 7:53 PM

          Dear @delightedcrow,

          thank you very much for this beautiful theme. I really like using WallberryTheme to beautify the background of my screen.
          What strikes me is that the images do not seem to be truly random. I have linked it up to a bigger collection and keep seeing the same images over and over although statistically, this should not be the case. Did you experienced this as well?

          Thanks!

          D 1 Reply Last reply Nov 3, 2018, 9:55 PM Reply Quote 1
          • D Offline
            delightedCrow Project Sponsor Module Developer @rudibarani
            last edited by Nov 3, 2018, 9:55 PM

            @rudibarani I’m so glad you like it!
            I have noticed commonly recurring images with smaller collections, but I’m surprised it would happen so often in huge collections. When I get bored of seeing a certain collection sometimes I’ll leave the collections option blank so it pulls a random site-wide image and I don’t usually see any repeats that way, but maybe I just get lucky?

            I don’t see anywhere in the unsplash API docs about how it chooses the random images so there’s a good chance it isn’t truly random. I’ll keep an eye out though :D

            R 1 Reply Last reply Nov 3, 2018, 10:11 PM Reply Quote 0
            • R Offline
              rudibarani Project Sponsor @delightedCrow
              last edited by Nov 3, 2018, 10:11 PM

              @delightedcrow Thanks for the quick reply.
              I will send them an email to check how the random feature is implemented.

              1 Reply Last reply Reply Quote 0
              • P Offline
                PaulB
                last edited by Dec 5, 2018, 8:46 PM

                @delightedCrow It looks so incredible! Well done :)
                I will try that myself. It looks super cool :)

                Many greetings from hamburg,
                Paul

                1 Reply Last reply Reply Quote 1
                • P Offline
                  PaulB
                  last edited by Dec 5, 2018, 10:09 PM

                  @delightedCrow I would really like to know how you got the API. The description is too hard to get for me… I guess.

                  @Community: Do you guys have any idea?

                  I am planning to show a collection of pictures from the keyword search of my village. Therefore I would really like to know how to implement the modules as well as configuring the module on how to show only images of a certain keyword.

                  Hopefully someone can help. :)

                  Kind regards from hamburg,

                  Paul

                  D 1 Reply Last reply Dec 6, 2018, 12:41 AM Reply Quote 0
                  • S Offline
                    sdetweil
                    last edited by sdetweil Dec 5, 2018, 10:16 PM Dec 5, 2018, 10:13 PM

                    for the random, this routine from the MMM-ImagesPhotos module is an example
                    the images are in an array. the WallberryTheme gets one pic at a time from the server side…

                    randomIndex: function(photos) {
                    		if (photos.length === 1) {
                    			return 0;
                    		}
                    
                    		var generate = function() {
                    			return Math.floor(Math.random() * photos.length);
                    		};
                    
                    		var photoIndex = generate();
                    		this.lastPhotoIndex = photoIndex;
                    
                    		return photoIndex;
                    	},
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      delightedCrow Project Sponsor Module Developer @PaulB
                      last edited by Dec 6, 2018, 12:41 AM

                      @paulb Thanks for the kind comments!
                      As for your question, there are two different ways I can think of to solve your question using the WallberryTheme:

                      Method 1:

                      Create your own Unsplash collection and add all of the pictures of your village that you want displayed to this collection. Then all you have to do is add this Unsplash collection ID to the module config section for the WallberryTheme (see the module docs here for an example of how to set up the config file with collections).

                      Doing it this way means you’d have to curate your own photos instead of doing a keyword search, but you wouldn’t have to edit the WallberryTheme module code.

                      Method 2:

                      Edit the WallberryTheme module code so that when it sends a photo request to Unsplash it uses the query parameter to filter random photos by your search term. So at about the line of code here you’d probably want to change it to something like: "&query=mysearchkeyword" .

                      I haven’t tested this method and the Unsplash docs are light on details, so you’d probably have to do some tinkering to figure out if it’ll work the way you want.

                      Hope one of these helps :)

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