Skip to content

Commit

Permalink
bugfix: fix typo for gpio power devices
Browse files Browse the repository at this point in the history
update update.md to 0.2.4

Signed-off-by: Stefan Dej <meteyou@gmail.com>
  • Loading branch information
meteyou committed Oct 16, 2020
1 parent 01da938 commit 470a763
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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://<printer-ip>/`.

Expand All @@ -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://<hostname>.local/` to open the webinterface.
After a reboot you can use `http://<hostname>.local/` to open the webinterface.
2 changes: 1 addition & 1 deletion docs/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -245,7 +245,7 @@ export default {
}
} else {
commit('setPowerDevices', data.devices);

Vue.prototype.$socket.sendObj('machine.gpio_power.status', {}, 'getPowerDevicesStatus');
}
},
Expand Down Expand Up @@ -382,4 +382,4 @@ export default {
setSettings({ commit }, data) {
commit('setSettings', data);
},
}
}

0 comments on commit 470a763

Please sign in to comment.