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.

    Euromillions display on MagicMirror

    Scheduled Pinned Locked Moved Requests
    24 Posts 7 Posters 7.2k Views 8 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.
    • thymonT Offline
      thymon @sdetweil
      last edited by

      @sdetweil
      Ok Thank you.

      lavolp3L 1 Reply Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @thymon
        last edited by

        @thymon It is a good very good idea. Not for me but for people who play the lottery.

        There is a free lottery API that supports lots of lotteries, including yours
        magayo.com/lottery-docs/api/content/
        That might be a good start I guess.

        I’m happy to support but not sure if I can find time to write a module.

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        1 Reply Last reply Reply Quote 0
        • thymonT Offline
          thymon
          last edited by thymon

          @lavolp3 thanks for you interest.
          I have some time, but I’m not a developper :P :D

          lavolp3L 1 Reply Last reply Reply Quote 0
          • lavolp3L Offline
            lavolp3 Module Developer @thymon
            last edited by

            @thymon I put in some first thoughts on this.
            The problem is for anyone who changes their own numbers, how to implement this.
            This person would need to put the numbers into the config every time.

            But still a great idea, especially for anyone having fixed numbers.

            Already started a project :-)

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            thymonT 1 Reply Last reply Reply Quote 0
            • thymonT Offline
              thymon @lavolp3
              last edited by thymon

              @lavolp3 How does Gooogle get the info?

              I found this : https://rapidapi.com/creativesolutions/api/euromillions

              lavolp3L 1 Reply Last reply Reply Quote 0
              • lavolp3L Offline
                lavolp3 Module Developer @thymon
                last edited by lavolp3

                @thymon I tried out the magayo api and had the module near completion, and then found out magayo only takes 10 API calls PER MONTH in their free plan.
                These are exhausted for me so I need to think about using another API or some dummy data.

                I am quite far on a module, but I would prefer to include more lotteries than just euromillions. So if you could research for an API and provide one that covers more lotteries I’d be grateful.

                How to troubleshoot modules
                MMM-soccer v2, MMM-AVStock

                thymonT 1 Reply Last reply Reply Quote 0
                • thymonT Offline
                  thymon @lavolp3
                  last edited by

                  @lavolp3
                  I found 10 request/month too :(

                  https://collectapi.com/api/chancegame/lottery-api

                  But there are 2 results per week for the Euro Millions.
                  :P

                  lavolp3L 1 Reply Last reply Reply Quote 0
                  • lavolp3L Offline
                    lavolp3 Module Developer @thymon
                    last edited by

                    @thymon 10 requests/month is very difficult to manage.
                    You need to consider that every time the mirror gets restarted for whatever reason it will have forgotten the data and needs to send a new API request.
                    A nightmare for people debugging or developing something.

                    How to troubleshoot modules
                    MMM-soccer v2, MMM-AVStock

                    thymonT cowboysdudeC 2 Replies Last reply Reply Quote 1
                    • thymonT Offline
                      thymon @lavolp3
                      last edited by

                      @lavolp3

                      Yes, I understand…

                      1 Reply Last reply Reply Quote 0
                      • thgmirrorT Offline
                        thgmirror
                        last edited by

                        Why don’t you create a local html-page on the RPI and display it with MMM-SmartWebDisplay?

                        • Look for a website with the requested information (for example lottoland)

                        • in your local web-page, call this site and crop it to the part you need using iFrame

                        • use MMM-SmartWebDisplay and link to the local html…in the config write url: [“/modules/millions.html”] if you place your local html in the modules folder

                        no api, no problem, works with nearly every webpage

                        lavolp3L 1 Reply Last reply Reply Quote 0
                        • lavolp3L Offline
                          lavolp3 Module Developer @thgmirror
                          last edited by

                          @thgmirror
                          Of course that’s a solution. From my point of view however not a nice one. Styling is a mess and it also creates some work. And everyone wanting to use it would have the work.
                          With a proper module the community has less work and it can be integrated and styled much better.

                          For @thymon s purpose it works of course.

                          How to troubleshoot modules
                          MMM-soccer v2, MMM-AVStock

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            chassain 0 @thymon
                            last edited by lavolp3

                            @thymon
                            Capture d’écran de 2020-05-19 09-40-00.png

                            Hello,

                            i 'm using the module MMM-smartwebdisplay to display some web url on my magicmirror, like sncf, magicmirror,…
                            You can use this for the moment with this configuration

                            		{
                            			module: 'MMM-SmartWebDisplay',//
                            			disabled: false,
                            			position: 'right',	// This can be any of the regions.
                            			config: {
                            				// See 'Configuration options' for more information.
                            				logDebug: false, //set to true to get detailed debug logs. To see them : "Ctrl+Shift+i"
                            				height:"550", //hauteur du cadre en pixel ou %
                            				width:"500", //largeur
                                           				updateInterval: 10, //in min. Set it to 0 for no refresh (for videos)
                                            				NextURLInterval: 0, //in min, set it to 0 not to have automatic URL change. If only 1 URL given, it will be updated
                                            				displayLastUpdate: false, //to display the last update of the URL
                            				displayLastUpdateFormat: 'ddd - HH:mm:ss', //format of the date and time to display
                                            				url: ["https://tirage-gagnant.com/euromillions/resultats-euromillions/"], //source of the URL to be displayed
                                            				scrolling: "no" // allow scrolling or not. html 4 only
                            				}
                            		},
                            

                            change options like you want…It’s just an idea for you…Have fun !

                            lavolp3L thymonT 2 Replies Last reply Reply Quote 1
                            • lavolp3L Offline
                              lavolp3 Module Developer @chassain 0
                              last edited by lavolp3

                              @chassain-0 That looks really good.

                              @thymon I have pushed my initial work to
                              https://github.com/lavolp3/MMM-Lotteries

                              But as said, the API usage is not acceptable yet.
                              Working with dummy data. it looks like this for now.
                              6650c4bc-0072-40cc-96a3-8fc3caa71cf9-image.png

                              How to troubleshoot modules
                              MMM-soccer v2, MMM-AVStock

                              S thymonT 2 Replies Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @lavolp3
                                last edited by

                                @lavolp3 when would it change? in node_helper only download then and use the file as the data source

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                lavolp3L 1 Reply Last reply Reply Quote 0
                                • lavolp3L Offline
                                  lavolp3 Module Developer @sdetweil
                                  last edited by

                                  @sdetweil
                                  It is possible, and I thought about the same, but it’s dirty and you somehow have to determine and hard-code a proper request time for every lottery.
                                  Thinking about developing it to the end but I’d prefer another API.

                                  How to troubleshoot modules
                                  MMM-soccer v2, MMM-AVStock

                                  ? 1 Reply Last reply Reply Quote 0
                                  • ? Offline
                                    A Former User @lavolp3
                                    last edited by A Former User

                                    @lavolp3
                                    Just Idea. store recent lottery values from API with the date as JSON file, Then when you need new values (on restart or on every Sunday), Check the JSON file first then request API when the stored data is out-of-dated.

                                    PS Ah, you’ve already approached. :) Don’t mind.

                                    lavolp3L 1 Reply Last reply Reply Quote 0
                                    • lavolp3L Offline
                                      lavolp3 Module Developer @Guest
                                      last edited by

                                      @Sean it is a good idea but you want to meet the perfect time to fetch the data (close to the drawing) and you only have one try…
                                      And also a second lottery would already blow the quota.
                                      But still, thanks for the good ideas

                                      How to troubleshoot modules
                                      MMM-soccer v2, MMM-AVStock

                                      1 Reply Last reply Reply Quote 0
                                      • thymonT Offline
                                        thymon @lavolp3
                                        last edited by

                                        @lavolp3 You are my man ! :D

                                        1 Reply Last reply Reply Quote 0
                                        • thymonT Offline
                                          thymon
                                          last edited by thymon

                                          @lavolp3 How disable ticket viewer ?
                                          And How modify the width to css ?

                                          Thanks in advance !

                                          :D :D
                                          IMG_2740.JPG

                                          1 Reply Last reply Reply Quote 0
                                          • thymonT Offline
                                            thymon
                                            last edited by

                                            Ok sorry I found.

                                            .MMM-Lotteries {
                                            width : 400px;
                                            }
                                            
                                            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
                                            • 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