kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
rodzic
8a0fef8b3f
commit
8d34b9b35f
|
@ -1,4 +1,5 @@
|
||||||
v1.0.365: Increased Updater snooze to 8hr interval
|
v1.0.366: Improved grblHAL integration (Additional Homing Enable Masks)
|
||||||
|
v1.0.365: Increased Updater snooze to 8hr interval, Improved port-confict handling, Improved Recovery wizard to deal with Laser files
|
||||||
v1.0.364: Fixed bug in Surfacing Wizard Freeze bug (Special thanks to Armaliteguy for providing debug info)
|
v1.0.364: Fixed bug in Surfacing Wizard Freeze bug (Special thanks to Armaliteguy for providing debug info)
|
||||||
v1.0.363: Renewed SSL certificates for API integration
|
v1.0.363: Renewed SSL certificates for API integration
|
||||||
v1.0.362: Fixed typo in port left over from earlier test
|
v1.0.362: Fixed typo in port left over from earlier test
|
||||||
|
|
|
@ -85,7 +85,7 @@ function grblSettings(data) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (grblParams['$22'] == 1) {
|
if (grblParams['$22'] > 0) {
|
||||||
$('#gotozeroMPos').removeClass('disabled')
|
$('#gotozeroMPos').removeClass('disabled')
|
||||||
$('#homeBtn').attr('disabled', false)
|
$('#homeBtn').attr('disabled', false)
|
||||||
$('#gotoXzeroMpos').removeClass('disabled')
|
$('#gotoXzeroMpos').removeClass('disabled')
|
||||||
|
@ -327,7 +327,7 @@ function grblPopulate() {
|
||||||
|
|
||||||
$('#grblSettingsBadge').hide();
|
$('#grblSettingsBadge').hide();
|
||||||
|
|
||||||
if (grblParams['$21'] == 1 && grblParams['$22'] == 1) {
|
if (grblParams['$21'] == 1 && grblParams['$22'] > 0) {
|
||||||
$('#limitsinstalled:checkbox').prop('checked', true);
|
$('#limitsinstalled:checkbox').prop('checked', true);
|
||||||
$('#gotozeroMPos').removeClass('disabled')
|
$('#gotozeroMPos').removeClass('disabled')
|
||||||
$('#homeBtn').attr('disabled', false)
|
$('#homeBtn').attr('disabled', false)
|
||||||
|
|
|
@ -36,7 +36,8 @@ var grblErrorCodes = {
|
||||||
34: "A G2 or G3 arc, traced with the radius definition, had a mathematical error when computing the arc geometry. Try either breaking up the arc into semi-circles or quadrants, or redefine them with the arc offset definition.",
|
34: "A G2 or G3 arc, traced with the radius definition, had a mathematical error when computing the arc geometry. Try either breaking up the arc into semi-circles or quadrants, or redefine them with the arc offset definition.",
|
||||||
35: "A G2 or G3 arc, traced with the offset definition, is missing the IJK offset word in the selected plane to trace the arc.",
|
35: "A G2 or G3 arc, traced with the offset definition, is missing the IJK offset word in the selected plane to trace the arc.",
|
||||||
36: "There are unused, leftover G-code words that aren't used by any command in the block.",
|
36: "There are unused, leftover G-code words that aren't used by any command in the block.",
|
||||||
37: "The G43.1 dynamic tool length offset command cannot apply an offset to an axis other than its configured axis. The Grbl default axis is the Z-axis."
|
37: "The G43.1 dynamic tool length offset command cannot apply an offset to an axis other than its configured axis. The Grbl default axis is the Z-axis.",
|
||||||
|
46: "Home machine to continue"
|
||||||
};
|
};
|
||||||
|
|
||||||
var grblAlarmCodes = {
|
var grblAlarmCodes = {
|
||||||
|
|
25
index.js
25
index.js
|
@ -1,16 +1,15 @@
|
||||||
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = '1';
|
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = '1';
|
||||||
|
|
||||||
process.on('uncaughtException', function(err) {
|
process.on('uncaughtException', function(err) {
|
||||||
showErrorDialog(err,attempts = 2) // make two attempts to show an uncaughtException in a dialog
|
showErrorDialog(err, attempts = 2) // make two attempts to show an uncaughtException in a dialog
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
debug_log(err)
|
debug_log(err)
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
console.log(err);
|
console.log(err);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
function showErrorDialog(err,attempts) {
|
function showErrorDialog(err, attempts) {
|
||||||
console.error('Attempting to show an error dialog.')
|
console.error('Attempting to show an error dialog.')
|
||||||
if (!attempts) return;
|
if (!attempts) return;
|
||||||
try {
|
try {
|
||||||
|
@ -22,11 +21,12 @@ function showErrorDialog(err,attempts) {
|
||||||
detail: `${err.message}\r\r\rIf you feel this shouldn't be happening, please report it at:\r\rhttps://github.com/OpenBuilds/OpenBuilds-CONTROL/issues`,
|
detail: `${err.message}\r\r\rIf you feel this shouldn't be happening, please report it at:\r\rhttps://github.com/OpenBuilds/OpenBuilds-CONTROL/issues`,
|
||||||
};
|
};
|
||||||
let window = BrowserWindow.getFocusedWindow()
|
let window = BrowserWindow.getFocusedWindow()
|
||||||
dialog.showMessageBoxSync(window,options)
|
dialog.showMessageBoxSync(window, options)
|
||||||
}
|
} catch (e) {
|
||||||
catch(e) {
|
|
||||||
console.error(`An error occurred trying show an error, ho-boy. ${e}. We'll try again ${attempts} more time(s).`)
|
console.error(`An error occurred trying show an error, ho-boy. ${e}. We'll try again ${attempts} more time(s).`)
|
||||||
setTimeout(() => {showErrorDialog(err,--attempts)}, millisecondDelay = 2000);
|
setTimeout(() => {
|
||||||
|
showErrorDialog(err, --attempts)
|
||||||
|
}, millisecondDelay = 2000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ function debug_log() {
|
||||||
debug_log("Starting OpenBuilds CONTROL v" + require('./package').version)
|
debug_log("Starting OpenBuilds CONTROL v" + require('./package').version)
|
||||||
|
|
||||||
var config = {};
|
var config = {};
|
||||||
config.webPorts = [3000,3020,3200,3220]
|
config.webPorts = [3000, 3020, 3200, 3220]
|
||||||
config.webPortIdx = 0;
|
config.webPortIdx = 0;
|
||||||
config.nextWebPort = function () {
|
config.nextWebPort = function() {
|
||||||
config.webPort = config.webPorts[config.webPortIdx]
|
config.webPort = config.webPorts[config.webPortIdx]
|
||||||
config.webPortIdx++
|
config.webPortIdx++
|
||||||
if (config.webPortIdx == config.webPorts.length) {
|
if (config.webPortIdx == config.webPorts.length) {
|
||||||
|
@ -151,9 +151,10 @@ function httpServerSuccess() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function httpServerError (error) {
|
function httpServerError(error) {
|
||||||
|
// If unable to start (port in use) - try next port in array from config.nextWebPort()
|
||||||
console.error(error.message);
|
console.error(error.message);
|
||||||
httpserver.listen(config.nextWebPort());
|
httpserver.listen(config.nextWebPort());
|
||||||
}
|
}
|
||||||
|
|
||||||
io.attach(httpserver);
|
io.attach(httpserver);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "OpenBuildsCONTROL",
|
"name": "OpenBuildsCONTROL",
|
||||||
"version": "1.0.365",
|
"version": "1.0.366",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"description": "OpenBuildsCONTROL CNC Machine Host Software",
|
"description": "OpenBuildsCONTROL CNC Machine Host Software",
|
||||||
"author": "github.com/openbuilds <support@openbuilds.com>",
|
"author": "github.com/openbuilds <support@openbuilds.com>",
|
||||||
|
|
Ładowanie…
Reference in New Issue