Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
a5c1ae9d
Commit
a5c1ae9d
authored
Apr 11, 2013
by
D1plo1d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing pronserve inspector to display a more reasonable persision
parent
7264c5e1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
inspect.js
server/static/js/inspect.js
+1
-1
inspect.html
server/templates/inspect.html
+2
-2
No files found.
server/static/js/inspect.js
View file @
a5c1ae9d
...
...
@@ -32,7 +32,7 @@ var onConnect = function(ws) {
{
var
name
=
sensorNames
[
i
];
var
val
=
parseFloat
(
msg
.
sensors
[
name
]);
$
(
"."
+
name
+
" .val"
).
html
(
val
.
format
(
2
));
$
(
"."
+
name
+
" .val"
).
html
(
val
.
format
(
1
));
}
}
$console
.
append
(
"
\n
"
+
evt
.
data
);
...
...
server/templates/inspect.html
View file @
a5c1ae9d
...
...
@@ -16,10 +16,10 @@
</h1>
<div
class=
"sensors"
>
<div
class=
"extruder pull-right"
>
Extruder:
<span
class=
"val"
>
xx.x
x
</span><span
class=
"deg"
>
°
C
</span>
Extruder:
<span
class=
"val"
>
xx.x
</span><span
class=
"deg"
>
°
C
</span>
</div>
<div
class=
"bed pull-right"
>
Bed:
<span
class=
"val"
/>
xx.x
x
</span><span
class=
"deg"
>
°
C
</span>
Bed:
<span
class=
"val"
/>
xx.x
</span><span
class=
"deg"
>
°
C
</span>
</div>
<div
class=
"clearfix"
></div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment