Skip to content

Commit

Permalink
Merge branch 'master' into fix-chromium-crashed-bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghembs authored Nov 20, 2018
2 parents 381b150 + 04f9b0e commit 6d47145
Show file tree
Hide file tree
Showing 1,690 changed files with 1,500 additions and 128,575 deletions.
6 changes: 6 additions & 0 deletions plugins/accessory/503_hta_tube_amp/i18n/strings_nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"PI2_DESIGN_TUBE_AMP_TITLE":"PI2Design 503TA Tube Amp GPIO configuratie",
"GPIO_SETTINGS": "GPIO instellingen",
"SAVE":"Opslaan",
"ROLLOFF_SETTING": "Hoge frequentie Rolloff"
}
6 changes: 6 additions & 0 deletions plugins/accessory/ir_controller/i18n/strings_nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"IR_CONFIGURATION":"IR afstandsbediening configuratie",
"SAVE": "Opslaan",
"PROFILE_SELECTOR": "Selecteer profiel",
"PROFILE_SELECTOR_DOC": "Selecteer de juiste configuratie voor uw afstandsbediening uit de beschikbare profielen"
}
16 changes: 16 additions & 0 deletions plugins/audio_interface/volparametriceq/i18n/strings_nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"VOLUMIO_PARAMETRIC":"Volumio parametrische equalizer",
"PARAMETRIC_SETTINGS":"Equalizer instellingen (EqFA4p)",
"ENABLEEQ":"Equalizer inschakelen=aan of uitschakelen=uit",
"MG":"Hoofdvolume",
"MG_DESC":"Hoofdvolume van de equalizer. Verklein de waarde om knippen te voorkomen",
"P11":"Lage band",
"P11_DESC":"Lage band instelling (30-125Hz)",
"P21":"Midden lage band",
"P21_DESC":"Midden lage band instelling (200-2000Hz)",
"P31":"Midden hoge band",
"P31_DESC":"Midden hoge band instelling (1500-9000Hz)",
"P41":"Hoge band",
"P41_DESC":"Hoge band instelling (8000-14000Hz)",
"APPLY":"Toepassen"
}
18 changes: 18 additions & 0 deletions plugins/miscellanea/auto_play/UIConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"page": {
"label": "TRANSLATE.AUTO_PLAY_CONFIGURATION"
},
"sections": [
{
"id": "no_setting",
"element": "section",
"label": "TRANSLATE.HEADING",
"icon": "fa-plug",
"content": [
{
}
]
}
]

}
3 changes: 3 additions & 0 deletions plugins/miscellanea/auto_play/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
}

4 changes: 4 additions & 0 deletions plugins/miscellanea/auto_play/i18n/strings_en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"AUTO_PLAY_CONFIGURATION":"Autoplay",
"HEADING": "No Settings, just enable this plugin in order to play music when volumio starts"
}
4 changes: 4 additions & 0 deletions plugins/miscellanea/auto_play/i18n/strings_nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"AUTO_PLAY_CONFIGURATION":"Autoplay",
"HEADING": "Geen instellingen, schakel gewoon deze plug-in in om muziek te spelen wanneer Volumio start"
}
108 changes: 108 additions & 0 deletions plugins/miscellanea/auto_play/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
'use strict';
var libQ = require('kew');
var MPD = require('node-mpd');


module.exports = ControllerAutoPlay;

function ControllerAutoPlay(context) {
var self = this;

this.context = context;
this.commandRouter = this.context.coreCommand;
this.logger = this.context.logger;
this.configManager = this.context.configManager;
}


/*
* This method can be defined by every plugin which needs to be informed of the startup of Volumio.
* The Core controller checks if the method is defined and executes it on startup if it exists.
*/
ControllerAutoPlay.prototype.onVolumioStart = function () {
var self = this;

var mpdPlugin = this.commandRouter.pluginManager.getPlugin('music_service', 'mpd');
var mpdHost = mpdPlugin.getConfigParam('nHost');
var mpdPort = mpdPlugin.getConfigParam('nPort');

self.logger.info('ControllerAutoPlay - connecting mpd on host: ' + mpdHost + '; port: ' + mpdPort);

var mpd = new MPD({
host : mpdHost,
port : mpdPort
});

mpd.on("ready", function() {
self.logger.info('ControllerAutoPlay - mpd ready');
mpd.disconnect();

setTimeout(function () {
self.logger.info('ControllerAutoPlay - getting queue');
var queue = self.commandRouter.volumioGetQueue();
if (queue && queue.length > 0) {
self.logger.info('ControllerAutoPlay - start playing -> queue is not empty');
self.commandRouter.volumioPlay();
}
}, 5000);
});

mpd.connect();

return libQ.resolve();
};


ControllerAutoPlay.prototype.onStart = function() {
var self = this;

return libQ.resolve();
};


ControllerAutoPlay.prototype.onStop = function () {
var self = this;
//Perform stop tasks here
};

ControllerAutoPlay.prototype.onRestart = function () {
var self = this;
//Perform restart tasks here
};

ControllerAutoPlay.prototype.onInstall = function () {
var self = this;
//Perform your installation tasks here
};

ControllerAutoPlay.prototype.onUninstall = function () {
var self = this;
//Perform your deinstallation tasks here
};

ControllerAutoPlay.prototype.getUIConfig = function() {
var defer = libQ.defer();
var self = this;

var lang_code = this.commandRouter.sharedVars.get('language_code');

self.commandRouter.i18nJson(__dirname+'/i18n/strings_'+lang_code+'.json',
__dirname+'/i18n/strings_en.json',
__dirname + '/UIConfig.json')
.then(function(uiconf)
{
defer.resolve(uiconf);
})
.fail(function()
{
defer.reject(new Error());
});

return defer.promise;
};


ControllerAutoPlay.prototype.setUIConfig = function(data)
{

};
2 changes: 2 additions & 0 deletions plugins/miscellanea/auto_play/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
# NOP
20 changes: 20 additions & 0 deletions plugins/miscellanea/auto_play/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "auto_play",
"version": "1.0.0",
"description": "Autoplay plugin - Enable this plugin in order to let volumio start playing the last entry in the queue after a reboot.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Thomas Doerr",
"volumio_info": {
"prettyName": "Autoplay",
"icon": "fa-play-circle-o",
"plugin_type": "miscellanea",
"boot_priority": 10
},
"dependencies": {
"kew": "^0.7.0",
"node-mpd": "^0.0.1"
}
}
2 changes: 2 additions & 0 deletions plugins/miscellanea/auto_play/uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
# NOP
2 changes: 1 addition & 1 deletion plugins/miscellanea/autostart/UIConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"element": "input",
"doc": "TRANSLATE.AUTOSTART_DELAY_DOC",
"label": "TRANSLATE.AUTOSTART_DELAY",
"value": 10000
"value": 20000
}
]
}
Expand Down
Binary file modified plugins/miscellanea/autostart/autostart.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion plugins/miscellanea/autostart/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"autostartDelay": {
"type": "number",
"value": 10000
"value": 20000
}
}
4 changes: 2 additions & 2 deletions plugins/miscellanea/autostart/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ autostart.prototype.onVolumioStart = function () {

var playFromLastPosition = config.get('playFromLastPosition') || false;
var lastPosition = config.get('lastPosition') || -1;
var autostartDelay = config.get('autostartDelay') || 10000;
var autostartDelay = config.get('autostartDelay') || 20000;

setTimeout(function () {
self.logger.info('AutoStart - getting queue');
Expand Down Expand Up @@ -101,7 +101,7 @@ autostart.prototype.getUIConfig = function () {

autostart.prototype.setUIConfig = function (data) {
var playFromLastPosition = data['playFromLastPosition'] || false;
var autostartDelay = data['autostartDelay'] || 10000;
var autostartDelay = data['autostartDelay'] || 20000;
config.set('playFromLastPosition', playFromLastPosition);
config.set('autostartDelay', autostartDelay);
this.commandRouter.pushToastMessage('success', 'Autostart', this.commandRouter.getI18nString("COMMON.CONFIGURATION_UPDATE_DESCRIPTION"));
Expand Down
8 changes: 4 additions & 4 deletions plugins/miscellanea/autostart/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "autostart",
"version": "1.1.1",
"description": "Ths plugin starts the first entry in the queue after rebooting volumio.",
"version": "1.1.2",
"description": "Ths plugin starts the first entry in the queue or from the last played position after rebooting volumio.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand All @@ -12,10 +12,10 @@
"prettyName": "AutoStart",
"icon": "fa-play-circle-o",
"plugin_type": "miscellanea",
"boot_priority": 100
"boot_priority": 10
},
"dependencies": {
"kew": "^0.7.0",
"v-conf": "^1.4.0"
"v-conf": "^1.4.2"
}
}
3 changes: 3 additions & 0 deletions plugins/miscellanea/brutefir/i18n/NL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{

}
33 changes: 33 additions & 0 deletions plugins/miscellanea/brutefir/i18n/strings_nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"BRUTEFIR":{
"VOLUMIO_DSP":"Volumio DSP centrum",
"BRUTEFIR_EQUALIZER_SETTINGS":"Brutefir equalizer",
"EQUALIZER":"equalizer",
"EQUALIZER_SETTINGS":"Equalizer instellingen",
"EQUALIZER_MODE":"Aan= Niveau instellingen / Uit= Fase instellingen",
"PHASE_EQUALIZER":"Fase equalizer",
"GAIN_EQUALIZER":"Equalizer",
"BRUTEFIR_ADVANCED_SETTINGS":"Brutefir geavanceerde instellingen",
"ADVANCED_SETTINGS":"Geavanceerde instellingen",
"INPUT_ATTENUATION":"Invoer verzwakking",
"LEFT_FILTER":"Linker filter",
"RIGHT_FILTER":"Rechter filter",
"FILTER_FORMAT":"Filter formaat",
"FILTER_SIZE":"Filter grootte",
"NUMBER_PARTITION":"Aantal partities",
"INTERNAL_RESOLUTION":"Interne resolutie",
"SAMPLE_RATE":"Sample snelheid",
"INPUT_FORMAT":"Invoer formaat",
"OUTPUT_FORMAT":"Uitvoer formaat",
"INPUT_DEVICE":"Invoer apparaat hw:",
"SAVE":"Opslaan",
"APPLY":"Toepassen",
"OUTPUT_DEVICE":"Uitvoer apparaat hw:"
},
"BAUER":{
"BAUER_TITLE":"Bauer Stereo naar binaural filter kan een conflict veroorzaken met softvol!!!",
"BAUER_FILTER_SETTINGS":"Bauer filter inschakelen",
"FCUT":"Frequentie snijpunt (Hz)",
"FLEVEL":"Niveau feed (dB)"
}
}
17 changes: 9 additions & 8 deletions plugins/miscellanea/kodi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ Installation script for Kodi on Volumio 2.x images (Raspberry Pi only)

The zip-file contains all the scripts you need to install Kodi on top of any Volumio 2.x image. A settings page has been added to allow for easy configuration of the config.txt settings for Kodi and some specific sound settings in case you want to use your DAC for sound output.

If you enable the plugin in the plugins section in Volumio it will automatically start, you might want to reboot first after installation.
![Alt text](/images/plugin_enabled.png?raw=true "Plugin enabled")
If you enable the plugin in the plugins section in Volumio it will automatically start, you might want to reboot first after installation.
![plugin_enabled](https://raw.githubusercontent.com/volumio/volumio-plugins/master/plugins/miscellanea/kodi/images/plugin_enabled.png)

The system settings section allows you to change the amount of memory reserved for the gpu and whether the HDMI port should be considered hotplug.
![Alt text](/images/system_settings.png?raw=true "System settings")

The sound settings section allows you to override ALSA's default soundcard, thus enabling you to use your DAC in Kodi. Also, if you are using a Kali reclocker, you might want to configure the delay (of 0.7 seconds).
![Alt text](/images/sound_settings.png?raw=true "Sound settings")
The system settings section allows you to change the amount of memory reserved for the gpu and whether the HDMI port should be considered hotplug.
![system_settings](https://raw.githubusercontent.com/volumio/volumio-plugins/master/plugins/miscellanea/kodi/images/system_settings.png)

The Kodi optimalisation sections allows you to edit some Kodi sound configuration (requires a restart of Kodi) settings.
![Alt text](/images/kodi_optimalisation.png?raw=true "Kodi sound settings")
The sound settings section allows you to override ALSA's default soundcard, thus enabling you to use your DAC in Kodi. Also, if you are using a Kali reclocker, you might want to configure the delay (of 0.7 seconds).
![sound_settings](https://raw.githubusercontent.com/volumio/volumio-plugins/master/plugins/miscellanea/kodi/images/sound_settings.png)

The Kodi optimalisation sections allows you to edit some Kodi sound configuration (requires a restart of Kodi) settings.
![kodi_optimalisation](https://raw.githubusercontent.com/volumio/volumio-plugins/master/plugins/miscellanea/kodi/images/kodi_optimalisation.png)

Supported devices:
- Raspberry Pi A/B/A+/B+/2B/3B/Zero
3 changes: 2 additions & 1 deletion plugins/miscellanea/onkyo_control/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.gitignore
node_modules
npm-debug.log*
*.zip
15 changes: 14 additions & 1 deletion plugins/miscellanea/onkyo_control/UIConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"autoDiscovery",
"receiverSelect",
"receiverIP",
"receiverPort"
"receiverPort",
"receiverModel"
]
},
"content": [
Expand Down Expand Up @@ -70,6 +71,18 @@
"field": "autoDiscovery",
"value": false
}
},
{
"id": "receiverModel",
"type": "text",
"element": "input",
"label": "TRANSLATE.RECEIVER_MODEL",
"doc": "TRANSLATE.RECEIVER_MODEL_DOC",
"value": "",
"visibleIf": {
"field": "autoDiscovery",
"value": false
}
}
]
},
Expand Down
4 changes: 4 additions & 0 deletions plugins/miscellanea/onkyo_control/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"type": "string",
"value": "60128"
},
"receiverModel": {
"type": "string",
"value": ""
},
"powerOn": {
"type": "boolean",
"value": true
Expand Down
2 changes: 2 additions & 0 deletions plugins/miscellanea/onkyo_control/i18n/strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"RECEIVER_IP_DOC": "The IP or hostname of the Onkyo receiver you wish to control.",
"RECEIVER_PORT": "Port",
"RECEIVER_PORT_DOC": "The Port you wish to control the receiver with.",
"RECEIVER_MODEL": "Receiver Model (Optional)",
"RECEIVER_MODEL_DOC": "The model of receiver. This may be required with old receivers that do not support automatic discovery.",
"POWER_ON": "Power on ",
"POWER_ON_DOC": "Power on the receiver when playback begins.",
"STANDBY": "Standby on Stop",
Expand Down
Loading

0 comments on commit 6d47145

Please sign in to comment.