Update temperature message regex

This commit is contained in:
Scott Lahteine committed 2021-03-14 09:20:53 -05:00
1 parent 7ea6969e13
commit 9ab2ba29b9
4 files changed
+6 -4

No files matched your search

+1
View File
@@ -139,6 +139,7 @@ date of first contribution):
* [Miroslav Šedivý](https://github.com/eumiro)
* [Costas Basdekis](https://github.com/costas-basdekis)
* [Joe Martella](https://github.com/martellaj)
* [Scott Lahteine](https://github.com/thinkyhead)
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
[Daid Braam](https://github.com/daid). Parts of its communication layer and
+2 -2
View File
@@ -1132,9 +1132,9 @@ Use `Javascript regular expressions <https://developer.mozilla.org/en/docs/Web/J
# A list of filters to display in the terminal tab. Defaults to the filters shown below
terminalFilters:
- name: Suppress temperature messages
regex: '(Send: (N\d+\s+)?M105)|(Recv:\s+(ok\s+)?.*(B|T\d*):\d+)'
regex: '(Send: (N\d+\s+)?M105)|(Recv:\s+(ok\s+([PBN]\d+\s+)*)?([BCLPR]|T\d*):-?\d+)'
- name: Suppress SD status messages
regex: '(Send: (N\d+\s+)?M27)|(Recv: SD printing byte)'
regex: '(Send: (N\d+\s+)?M27)|(Recv: SD printing byte)|(Recv: Not SD printing)'
- name: Suppress wait responses
regex: 'Recv: wait'
- name: Suppress processing responses
+1 -1
View File
@@ -423,7 +423,7 @@ default_settings = {
"terminalFilters": [
{
"name": "Suppress temperature messages",
"regex": r"(Send: (N\d+\s+)?M105)|(Recv:\s+(ok\s+((P|B|N)\d+\s+)*)?(B|T\d*):\d+)",
"regex": r"(Send: (N\d+\s+)?M105)|(Recv:\s+(ok\s+([PBN]\d+\s+)*)?([BCLPR]|T\d*):-?\d+)",
},
{
"name": "Suppress SD status messages",
@@ -406,7 +406,8 @@ $(function () {
self.addTerminalFilter = function () {
self.terminalFilters.push({
name: "New",
regex: "(Send:\\s+(N\\d+\\s+)?M105)|(Recv:\\s+(ok\\s+)?.*(B|T\\d*):\\d+)"
regex:
"(Send:\\s+(N\\d+\\s+)?M105)|(Recv:\\s+(ok\\s+([PBN]\\d+\\s+)*)?.*([BCLPR]|T\\d*):-?\\d+)"
});
};