Giter VIP home page Giter VIP logo

mmm-bmw-ds's Introduction

MMM-BMW-DS

Bugger My Weather DarkSky

Same church, different pew

I wanted to take a new approach at a weather module. Until now, I had only done WWI and WWI2 but I wasn't really happy with those, although they were fun to do. This has a bit more style to it (not much) and it doesn't resemble other modules in format or appearance. I learned a couple of new things while doing it and I used what I learned in the module itself. Nothing monumental but very satisfying for me.

Good-bye bottom_bar (Well, not really)

  • This was designed for use in the bottom_bar position of your MagicMirror
  • Can share bottom bar position with newsfeed module via Hello_Lucy
  • Minutely updates for current conditions
  • Support for a host of different languages from the API
  • CSS provided for coloring and sizing. Make it your own.

Simple sound support

By default it will play rain sound when raining (when darksky data says it's raining) for one minute and then again every 5 minutes until the data changes. Same for thunder. You will have to provide the wind mp3 file and name it wind.mp3 and place it in the sounds folder of this module. You can use any mp3 files you like as long as you name them rain.mp3, thunder.mp3 and wind.mp3 and place them in the sounds folder of this module.

Examples

  • Default white

  • Colored and summary hidden

Installation and requirements

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

  • Free API key at https://www.darksky.net (Required)

  • No dependencies needed! No kidding!

Config.js entry and options

{
disabled: false,
module: "MMM-BMW-DS",
position: "bottom_bar",               // bottom_bar is best
config: {
    apiKey: "YOUR API KEY GOES HERE", // Free API key @ darksky.net
    tempUnits: "F",	// MUST BE CAPITAL LETTER C or F
    lat: 'YOUR LATITUDE GOES HERE', 
    lng: 'YOUR LONGITUDE GOES HERE',
    css: "1", // 1=default, 2=Clean, 3=Lord of the Rings, 4=handwriting, 5=Julee, 6=Englebert, "" = returns default css
    ownTitle: "Current Conditions",   // Use your own language and statement
    playSounds: "yes", // yes = weather sounds, no = no weather sounds
    useHeader: false,               
    header: "Your header",
    maxWidth: "100%",
       }
},

Language support

  • The module will read the language being used in your config file and adjust accordingly

  • Supported languages from the API

  • ar: Arabic

  • az: Azerbaijani

  • be: Belarusian

  • bg: Bulgarian

  • bs: Bosnian

  • ca: Catalan

  • cs: Czech

  • da: Danish

  • de: German

  • el: Greek

  • en: English (which is the default)

  • es: Spanish

  • et: Estonian

  • fi: Finnish

  • fr: French

  • he: Hebrew

  • hr: Croatian

  • hu: Hungarian

  • id: Indonesian

  • is: Icelandic

  • it: Italian

  • ja: Japanese

  • ka: Georgian

  • ko: Korean

  • kw: Cornish

  • nb: Norwegian Bokmål

  • nl: Dutch

  • no: Norwegian Bokmål (alias for nb)

  • pl: Polish

  • pt: Portuguese

  • ro: Romanian

  • ru: Russian

  • sk: Slovak

  • sl: Slovenian

  • sr: Serbian

  • sv: Swedish

  • tet: Tetum

  • tr: Turkish

  • uk: Ukrainian

  • x-pig-latin: Igpay Atinlay

  • zh: simplified Chinese

  • zh-tw: traditional Chinese

Thanks to "Big Salty" for suggesting a rewrite of MMM-BMW

  • The original MMM-BMW is still available. However, it requires an older WunderGround API key

mmm-bmw-ds's People

Contributors

mykle1 avatar

Stargazers

 avatar  avatar tagyro avatar  avatar Cederic Privat avatar Phillip Passmore avatar Ben avatar umeeq avatar Abdul Rehman Zia avatar Thomas avatar Matthew Compton avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar

mmm-bmw-ds's Issues

No new API's

As of the 1sy of Aug, 2020, darksky.net has joined apple and is no longer accepting new API requests and, therefore, are no longer issuing new API keys, making this module unusable by new users such as myself. :(

[https://blog.darksky.net/]

Latest MagicMirror version 2.16 breaks this module

With MagicMirror Version v2.16.0 the dependency request was removed. request is deprecated and should not be used anymore (see npm request). This should be no problem for modules using request but some modules didn’t setup request in there own package.json, they did rely on that this dependency comes with MagicMirror.

So if your container doesn’t start with MagicMirror v2.16.0 or later and you find something like Error: Cannot find module 'request' you should open an issue in the module project to get this fixed.

https://khassel.gitlab.io/magicmirror/faq/#error-cannot-find-module-request

current conditions label and owntitle

When adding an owntitle to the config.js and entering the currenly part of the getdom for the topline the owntitle is not used. It states "Current conditions" hard coded in the .js
It would work if i would go into the minutly part, but I don't understand when minutly is filled

Current day's high/lows

Hi. Love the module and I've been using it for a long time. My only complaint is that the forecast section starts with tomorrow. There is no information displayed for the current day's high/low, just the current conditions. If it is 75 degs at 10 am, is it going to stay at 75 all day or is the high 95? I have to go elsewhere to figure that out or try to remember what the module said yesterday.

Cheers

Customizing # of days

Any chance of adding a parameter to specify the number of days to display instead of displaying all 7 days? I only have space to display 5 days so I've just commented out the appropriate lines from the module. Would be nice if that could just be a parameter instead...

Icons are showing 1/2 size no matter what CCS (1-6) is used.

First, thank you for the re-write. A shame Weather Underground went the way of the Weather Chanel.

Anyhow, I your installed your module, and it looks fantastic! Exactly what I was looking for, bottom of the screen & intrusive. However the icons appear to be showing half the size as intended, and even on a 42" screen, there is no way to tell what the icons actually are.
Not sure what all you need as fat as info, its a RasPi 3b+, latest MM and Raspian installs and all up to date as of 3 days ago.
Thanks again!

  • John

Keeps displaying " acquiring your weather"

Hi,

Thanks for the efforts you put to make us enjoy our health forecasting the weather.

The problem is that after installing the module, on the Magic Mirror screen keeps displaying the message "Acquiring your Weather" and nothing to be displayed at all even icons??

image

Below also the part I added to the confi.js

=============================================================

	{
	disabled: false,
		module: "MMM-BMW-DS",
		position: "bottom_bar",               // bottom_bar is best
		config: {
			apiKey: "https://api.darksky.net/forecast/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/30.04444,31.2357", // Free API key @ darksky.net
				tempUnits: "C",		              // C of F
 				lat: '30.04444',
 				lng: '31.2357',
				css: "3", // 1=default, 2=Clean, 3=Lord of the Rings, 4=handwriting, 5=Julee, 6=Englebert, "" = returns default css
				ownTitle: "Current Weather Conditions",   // Use your own language and statement
				playSounds: "yes", // yes = weather sounds, no = no weather sounds
				useHeader: true,
				header: "Cairo - EGYPT",
				maxWidth: "100%",
   				}
	},

=============================================================

Would you please help with that?

Regards,
Alaa

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.