Skip to content

themox/MMM-EveryNews

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-EveryNews

  • Over 30,000 News sources!
  • Choose up to 10 at once.
  • Simplified addition to your config entry.

Examples

, , ,

Installation

  • git clone https://github.com/themox/MMM-EveryNews into the ~/MagicMirror/modules directory.
  • Get FREE API key --> https://newsapi.org/register
  • Annotated .css file included for your convenience.

Config.js entry and options

{
    disabled: false,
    module: 'MMM-EveryNews',
    position: 'bottom center',
    config: {
      source: 'bbc-news,cbs-news', // any source from https://newsapi.org/sources. // Up to 10 at once
      scroll: true,                                  // description scroll or static
      scrollSpeed: "3",                              // if scroll is true
      apiKey: 'YOUR API KEY GOES HERE',    // free API key from https://newsapi.org/register
      useHeader: true,                               // False if you don't want a header
      header: "Over 30,000 News Sources!",           // Any text you want. useHeader must be true
      maxWidth: "350px",
      animationSpeed: 3000,                          // fade speed
      rotateInterval: 5 * 60 * 1000,
      userAgent: "MagicMirror",                      // User-Agent for API requests in accordance with NewsAPI's requirements (can be customized to any valid UserAgent string; must not be blank)
    }
},

For multiple News sources

Sources

Open the "sources.json" file in a code editor (or text editor) and use the id's (as written) in your config entry. This is just a sample of the news sources available for this module. You can use any source from https://newsapi.org/sources. Use up to 10 at a time.

Special thanks to cowboysdude for continuous support and wizardry

About

Forking module to make changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.4%
  • CSS 17.6%