Giter VIP home page Giter VIP logo

mmm-lottery's Introduction

MMM-Lottery

A MagicMirror module that gives you truly random lottery numbers, coinciding with a multitude of International lotteries.

Examples

With header centered and colored numbers centered

With no header and colored numbers aligned to the right

How true randomness is established

https://www.random.org/randomness/

Info

  • Uses very little of your precious mirror real estate. Fits anywhere!
  • Make it bigger. Make it smaller. Color it. Align it. Make it yours!
  • The .css file included helps you modify size, position and color of text.
  • Need a color chart? No problem. http://htmlcolorcodes.com/color-picker/

Installation

  • git clone https://github.com/mykle1/MMM-Lottery.git into the ~/MagicMirror/modules directory.

Add to Config.js

{
    module: "MMM-Lottery",
    position: "top_right", // Anywhere!
    config: {
	 mode: "6of39",
        maxWidth: "400px",    
        header: ""         // Header text inside quotes
    }
},

Lottery parameters for config mode.

Choose your countries lottery parameters:

6of38, 6of39, 6of40, 6of43, 6of45, 6of47, 6of48, 6of49, 6of52, 6of59, 6of69, 6of90 7of35, 7of36, 7of37, 7of40, 7of49, 7of70, 10of90

Config Options

Option Default Description
mode 6of69 Choose your lotteries parameters from list above.
maxWidth 400px Fits anywhere.
header text If you want a header
animationSpeed 3000 Transition speed in ms.
updateInterval 5*60*1000 5 minutes.
initialLoadDelay 3250 Module load delay in ms.
retryDelay 2500 Delay to retry fetching data.

Credits

I would be remiss if I did not mention "Bropane" and his assistance. He prefers to remain anonymous.

Also, I would like to thank Dr Mads Haahr, School of Computer Science and Statistics, Trinity College, Dublin 2, Ireland, for being kind enough to answer my email. Dr Haahr founded, and is the CEO of RANDOM.org where the numbers are generated.

mmm-lottery's People

Contributors

mykle1 avatar

Stargazers

Giorgos Iliopoulos avatar  avatar

Watchers

James Cloos avatar

Forkers

wendelas

mmm-lottery's Issues

Match US Lotteries

Could you possibly alter the code to accept US powerball and mega millions games?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.