From 470a7633c5b78c433bfa4b907515e8a16bb5fa5d Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Fri, 16 Oct 2020 22:58:37 +0200 Subject: [PATCH] bugfix: fix typo for gpio power devices update update.md to 0.2.4 Signed-off-by: Stefan Dej --- docs/installation.md | 4 ++-- docs/update.md | 2 +- src/store/actions.js | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index bac864d9..bf55c333 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -270,7 +270,7 @@ Now we can install Mainsail (static httpdocs). Now you can download the current mainsail static data ``` cd ~/mainsail -wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.2.2/mainsail-beta-0.2.2.zip && unzip mainsail.zip && rm mainsail.zip +wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.2.4/mainsail-beta-0.2.4.zip && unzip mainsail.zip && rm mainsail.zip ``` Now it should be possible to open the interface: `http:///`. @@ -291,4 +291,4 @@ and you can config your hostname: sudo raspi-config ``` in 2 Network Options > N1 Hostname you can edit your hostname of your raspberry pi. -After a reboot you can use `http://.local/` to open the webinterface. \ No newline at end of file +After a reboot you can use `http://.local/` to open the webinterface. diff --git a/docs/update.md b/docs/update.md index 5853532d..4f3ec353 100644 --- a/docs/update.md +++ b/docs/update.md @@ -36,7 +36,7 @@ If you see a content like this ``` cd ~/mainsail rm -R ./* -wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.2.3/mainsail-beta-0.2.3.zip && unzip mainsail.zip && rm mainsail.zip +wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.2.4/mainsail-beta-0.2.4.zip && unzip mainsail.zip && rm mainsail.zip ``` ### Move gui.json from gcodes to klipper_config This is only necessary if you update from 0.2.2 to 0.2.3 or higher. diff --git a/src/store/actions.js b/src/store/actions.js index ae0d2d03..f5519887 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -130,7 +130,7 @@ export default { Vue.prototype.$socket.sendObj('server.files.get_directory', { path: 'config_examples' }, 'getDirectory'); //load plug data - if (data.plugins.includes("gpio_power") !== false) Vue.prototype.$socket.sendObj('machine.gpio_power.devices', {}, 'getPowerDevices'); + if (data.plugins.includes("power") !== false) Vue.prototype.$socket.sendObj('machine.gpio_power.devices', {}, 'getPowerDevices'); dispatch('initPrinter'); } else { @@ -245,7 +245,7 @@ export default { } } else { commit('setPowerDevices', data.devices); - + Vue.prototype.$socket.sendObj('machine.gpio_power.status', {}, 'getPowerDevicesStatus'); } }, @@ -382,4 +382,4 @@ export default { setSettings({ commit }, data) { commit('setSettings', data); }, -} \ No newline at end of file +}