kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
v1.0.245
rodzic
d50678c126
commit
beacca0658
|
@ -1,4 +1,5 @@
|
|||
v1.0.244: Fix for Custom XYZ Probe Values bug #144
|
||||
v1.0.245: Updates for Pi4 Buster support
|
||||
v1.0.244: Fix for Custom XYZ Probe Values bug #144, Remove Install Drivers button (users misunderstood)
|
||||
v1.0.243: Fix cosmetic bug: Scrollbar on Probe Dialog
|
||||
v1.0.242: Update CI to NodeJS-12
|
||||
v1.0.241: Updated Dependencies
|
||||
|
|
|
@ -144,7 +144,6 @@
|
|||
<button class="button small success float-right" onclick="selectPort()" id="connectBtn" type="button" style="margin: 5px;" disabled>Connect</button>
|
||||
<button class="button alert" style="display:none;" onclick="closePort()" id="disconnectBtn" type="button" style="margin: 5px;">Disconnect</button>
|
||||
<button class="button small secondary disabled" disabled style="display:none;" id="flashBtn" type="button" style="margin: 5px;">please wait...</button>
|
||||
<button class="button small primary float-right" onclick="socket.emit('opendriverspage', true);" id="driverBtn" type="button" style="margin: 5px;">Install Drivers</button>
|
||||
<div class="ribbon-group" id="grblButtons">
|
||||
<hr>
|
||||
<button class="ribbon-icon-button" onclick="sendGcode(String.fromCharCode(0x18))">
|
||||
|
|
|
@ -300,7 +300,7 @@ function initSocket() {
|
|||
if (nostatusyet) {
|
||||
// $('#windowtitle').html("OpenBuilds CONTROL v" + status.driver.version)
|
||||
setWindowTitle(status)
|
||||
if (status.driver.operatingsystem == "rpi") {
|
||||
if (status.driver.operatingsystem == "rpi" || ) {
|
||||
$('#windowtitlebar').hide();
|
||||
}
|
||||
}
|
||||
|
|
11
index.js
11
index.js
|
@ -603,13 +603,6 @@ io.on("connection", function(socket) {
|
|||
shell.openExternal('https://openbuilds.com/threads/openbuilds-control-software.13121/')
|
||||
});
|
||||
|
||||
socket.on("opendriverspage", function(data) {
|
||||
const {
|
||||
shell
|
||||
} = require('electron')
|
||||
shell.openExternal('https://docs.openbuilds.com/blackbox/#41-devicedrivers.html')
|
||||
});
|
||||
|
||||
socket.on("minimisetotray", function(data) {
|
||||
jogWindow.hide();
|
||||
});
|
||||
|
@ -2331,10 +2324,10 @@ if (isElectron()) {
|
|||
} else {
|
||||
var isPi = require('detect-rpi');
|
||||
if (isPi()) {
|
||||
DEBUG = true;
|
||||
debug_log('Running on Raspberry Pi!');
|
||||
status.driver.operatingsystem = 'rpi'
|
||||
startChrome();
|
||||
status.driver.operatingsystem = 'raspberrypi';
|
||||
} else {
|
||||
debug_log("Running under NodeJS...");
|
||||
}
|
||||
|
@ -2451,7 +2444,7 @@ function startChrome() {
|
|||
const chrome = spawn('chromium-browser', ['-app=http://127.0.0.1:3000']);
|
||||
chrome.on('close', (code) => {
|
||||
debug_log(`Chromium process exited with code ${code}`);
|
||||
debug_log(`If you want to continue using OpenBuildsCONTROL, please open Chromium Browser to http://` + ip.address() + `:3000`);
|
||||
process.exit(0);
|
||||
});
|
||||
} else {
|
||||
debug_log('Not a Raspberry Pi. Please use Electron Instead');
|
||||
|
|
Ładowanie…
Reference in New Issue