diff --git a/CHANGELOG.md b/CHANGELOG.md index 311f2356..1fdf2c65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,20 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [2.0.2] - 2016-06-05 +### Added +- Norwegian Translations (nb and nn) +- Portuguese Translation +- Swedish Translation + +### Fixed +- Added reference to Italian Translation. +- Added the missing NE translation to all languages. [#334](https://github.com/MichMich/MagicMirror/issues/344) +- Added proper User-Agent string to calendar call. + +### Changed +- Add option to use locationID in weather modules. + ## [2.0.1] - 2016-05-18 ### Added - Changelog diff --git a/config/config.js.sample b/config/config.js.sample index 0b5f45d4..aedc2b75 100644 --- a/config/config.js.sample +++ b/config/config.js.sample @@ -41,6 +41,7 @@ var config = { position: 'top_right', config: { location: 'New York', + locationID: '', //ID from bulk.openweather.org/sample/ appid: 'YOUR_OPENWEATHER_API_KEY' } }, @@ -50,6 +51,7 @@ var config = { header: 'Weather Forecast', config: { location: 'New York', + locationID: '5128581', //ID from bulk.openweather.org/sample/ appid: 'YOUR_OPENWEATHER_API_KEY' } }, diff --git a/js/module.js b/js/module.js index 44c50099..9ee13e4c 100644 --- a/js/module.js +++ b/js/module.js @@ -152,7 +152,7 @@ var Module = Class.extend({ }, /* socket() - * Returns a socket object. If it doesn"t exsist, it"s created. + * Returns a socket object. If it doesn"t exist, it"s created. * It also registers the notification callback. */ socket: function() { diff --git a/modules/README.md b/modules/README.md index 54207399..39072db5 100644 --- a/modules/README.md +++ b/modules/README.md @@ -298,7 +298,7 @@ If no translation is found, a fallback will be used. The fallback sequence is as - 4. Translation as defined in core translation file of the fallback language (the first defined core translation file). - 5. The key (identifier) of the translation. -When adding translations to your module, it's a good idea to see if an apropriate translation is already available in the [core translation files](https://github.com/MichMich/MagicMirror/tree/master/translations). This way, your module can benefit from the exsisting translations. +When adding translations to your module, it's a good idea to see if an apropriate translation is already available in the [core translation files](https://github.com/MichMich/MagicMirror/tree/master/translations). This way, your module can benefit from the existing translations. **Example:** ````javascript diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index a6a7d082..213f1024 100644 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -49,7 +49,7 @@ Module.register("calendar",{ getTranslations: function() { // The translations for the defaut modules are defined in the core translation files. // Therefor we can just return false. Otherwise we should have returned a dictionairy. - // If you're trying to build yiur own module including translations, check out the documentation. + // If you're trying to build your own module including translations, check out the documentation. return false; }, diff --git a/modules/default/calendar/calendarfetcher.js b/modules/default/calendar/calendarfetcher.js index 15c2e60a..f7f68b7e 100644 --- a/modules/default/calendar/calendarfetcher.js +++ b/modules/default/calendar/calendarfetcher.js @@ -25,7 +25,12 @@ var CalendarFetcher = function(url, reloadInterval, maximumEntries, maximumNumbe clearTimeout(reloadTimer); reloadTimer = null; - ical.fromURL(url, {}, function(err, data) { + var opts = { + headers: { + 'User-Agent': 'Mozilla/5.0 (Node.js 6.0.0) MagicMirror/v2 (https://github.com/MichMich/MagicMirror/)' + } + } + ical.fromURL(url, opts, function(err, data) { if (err) { fetchFailedCallback(self, err); scheduleTimer(); @@ -188,7 +193,7 @@ var CalendarFetcher = function(url, reloadInterval, maximumEntries, maximumNumbe }; /* broadcastItems() - * Broadcast the exsisting events. + * Broadcast the existing events. */ this.broadcastEvents = function() { //console.log('Broadcasting ' + events.length + ' events.'); diff --git a/modules/default/calendar/node_helper.js b/modules/default/calendar/node_helper.js index 1d558d29..47a0231b 100644 --- a/modules/default/calendar/node_helper.js +++ b/modules/default/calendar/node_helper.js @@ -30,8 +30,8 @@ module.exports = NodeHelper.create({ }, /* createFetcher(url, reloadInterval) - * Creates a fetcher for a new url if it doesn't exsist yet. - * Otherwise it reuses the exsisting one. + * Creates a fetcher for a new url if it doesn't exist yet. + * Otherwise it reuses the existing one. * * attribute url string - URL of the news feed. * attribute reloadInterval number - Reload interval in milliseconds. @@ -69,7 +69,7 @@ module.exports = NodeHelper.create({ self.fetchers[url] = fetcher; } else { - //console.log('Use exsisting news fetcher for url: ' + url); + //console.log('Use existing news fetcher for url: ' + url); fetcher = self.fetchers[url]; fetcher.broadcastEvents(); } diff --git a/modules/default/currentweather/README.md b/modules/default/currentweather/README.md index 7e7d9fb4..2a6f7844 100644 --- a/modules/default/currentweather/README.md +++ b/modules/default/currentweather/README.md @@ -14,6 +14,7 @@ modules: [ config: { // See 'Configuration options' for more information. location: 'Amsterdam,Netherlands', + locationID: '', //Location ID from http://bulk.openweather.org/sample/ appid: 'abcde12345abcde12345abcde12345ab' //openweathermap.org API key. } } @@ -34,7 +35,7 @@ The following properties can be configured:
- +location
New York
locationID
1234567
+
+ appid
New York
locationID
1234567
+
+ appid