Bugger My Weather DarkSky
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.
- 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.
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.
- Default white
- Colored and summary hidden
-
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!
{
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%",
}
},
-
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
- The original MMM-BMW is still available. However, it requires an older WunderGround API key