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.

    Quotation of the day

    Scheduled Pinned Locked Moved Requests
    27 Posts 4 Posters 17.6k 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.
    • yawnsY Offline
      yawns Moderator @pauabaer
      last edited by

      @pauabaer
      http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1

      😊

      1 Reply Last reply Reply Quote 1
      • P Offline
        pauabaer
        last edited by

        Ah. Thanks.
        So this module is only for this homepage right?

        There is a german url: http://www.zitate-online.de/zitatdestages.xml

        which i would prefer for showing german quotes. i added this instead of the original url, but nothing happens.

        Is it possible to create this module for this homepage?

        cowboysdudeC 1 Reply Last reply Reply Quote 0
        • cowboysdudeC Offline
          cowboysdude Module Developer @pauabaer
          last edited by cowboysdude

          @pauabaer Well that would have been handier if I knew that upfront LOL.

          If I have time today I’ll rework it.

          1 Reply Last reply Reply Quote 2
          • P Offline
            pauabaer
            last edited by

            of course you are right. sorry for that. thought you need some more infos before starting moduling and was waiting for a conversation. but you were faster. :)

            cowboysdudeC 1 Reply Last reply Reply Quote 1
            • cowboysdudeC Offline
              cowboysdude Module Developer @pauabaer
              last edited by

              @pauabaer said in Quotation of the day:

              of course you are right. sorry for that. thought you need some more infos before starting moduling and was waiting for a conversation. but you were faster. :)

              It’s okay :) I don’t get upset I think it’s actually kinda funny LOL

              1 Reply Last reply Reply Quote 1
              • P Offline
                pauabaer
                last edited by

                thats good. thanks for all!
                at this page the quotes were updated each day at 02:00 am. is it possible that just the new one is shown for 24h and the mirror gets refreshed these times? can you display the quote with the author like in your first version?

                cowboysdudeC 1 Reply Last reply Reply Quote 0
                • cowboysdudeC Offline
                  cowboysdude Module Developer @pauabaer
                  last edited by

                  @pauabaer should update everyday …

                  strawberry 3.141S 1 Reply Last reply Reply Quote 0
                  • strawberry 3.141S Offline
                    strawberry 3.141 Project Sponsor Module Developer @cowboysdude
                    last edited by

                    @cowboysdude would be cool if the module would support multiple apis,

                    for english http://quotesondesign.com
                    for german http://www.zitate-online.de

                    and then the api gets selected by the global language defined in the config file with english as fallback for a non supported language

                    Please create a github issue if you need help, so I can keep track

                    cowboysdudeC 1 Reply Last reply Reply Quote 1
                    • cowboysdudeC Offline
                      cowboysdude Module Developer @strawberry 3.141
                      last edited by cowboysdude

                      @strawberry-3.141 Wellllllllllllllll lol I have them both working in two different modules right now…

                      Just having a tad bit of an issue with characters showing up in the German version as ? for some reason…

                      I can get them in one module using the language selection of either EN or DE …

                      strawberry 3.141S 1 Reply Last reply Reply Quote 0
                      • strawberry 3.141S Offline
                        strawberry 3.141 Project Sponsor Module Developer @cowboysdude
                        last edited by

                        @cowboysdude those are probably äöü you might have to check the encoding of the response.

                        You might want to take a look into the fuel module where i use different apis based on the location/country

                        Please create a github issue if you need help, so I can keep track

                        cowboysdudeC 1 Reply Last reply Reply Quote 0
                        • cowboysdudeC Offline
                          cowboysdude Module Developer @strawberry 3.141
                          last edited by

                          @strawberry-3.141 Yes they are encoded but not returning in the innerHTML properly and am really not sure how to fix that… I’ve tried a few different things but alas no luck…

                          1 Reply Last reply Reply Quote 0
                          • cowboysdudeC Offline
                            cowboysdude Module Developer
                            last edited by

                            No matter can’t figure out the german umulates… Sorry.

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              pauabaer
                              last edited by

                              oh no. @strawberry-3-141 can you help here? this quotation feature would be very “magic” :)

                              cowboysdudeC 1 Reply Last reply Reply Quote 0
                              • strawberry 3.141S Offline
                                strawberry 3.141 Project Sponsor Module Developer
                                last edited by

                                there is an encoding option for request get requests, you might want to take a look into that

                                Please create a github issue if you need help, so I can keep track

                                cowboysdudeC 1 Reply Last reply Reply Quote 0
                                • cowboysdudeC Offline
                                  cowboysdude Module Developer @strawberry 3.141
                                  last edited by

                                  @strawberry-3.141 I will look at it after work today, Thanks!

                                  1 Reply Last reply Reply Quote 0
                                  • cowboysdudeC Offline
                                    cowboysdude Module Developer @pauabaer
                                    last edited by

                                    @pauabaer working on it ;) It’s working except … the special characters…

                                    1 Reply Last reply Reply Quote 1
                                    • P Offline
                                      pauabaer
                                      last edited by

                                      @cowboysdude you got all my hope :D

                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        pauabaer
                                        last edited by

                                        hey @cowboysdude how does it going with your coding at this feature?

                                        cowboysdudeC 2 Replies Last reply Reply Quote 0
                                        • cowboysdudeC Offline
                                          cowboysdude Module Developer @pauabaer
                                          last edited by cowboysdude

                                          @pauabaer It’s getting there. having strawberry take a peek under the hood… I haven’t been able to figure out the characters… he knows how.

                                          BUT the other thing is that here in the US it’s the NFL draft tonight so that’ll take up most my time this evening :)

                                          1 Reply Last reply Reply Quote 0
                                          • cowboysdudeC Offline
                                            cowboysdude Module Developer @pauabaer
                                            last edited by cowboysdude

                                            @pauabaer Thanks to a little input from Strawberry and viola! Working… just have a tweak or two and it’ll be online tonight.

                                            Here you go ->

                                            https://forum.magicmirror.builders/topic/2432/mmm-gquotes

                                            1 Reply Last reply Reply Quote 1

                                            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
                                            • 2
                                            • 1 / 2
                                            • 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