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
c8d309f7
Commit
c8d309f7
authored
Apr 09, 2013
by
D1plo1d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing the web interface
parent
2090124e
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
635 deletions
+0
-635
style.css
css/style.css
+0
-206
parser.php
php/parser.php
+0
-35
webinterface.py
printrun/webinterface.py
+0
-394
No files found.
css/style.css
deleted
100644 → 0
View file @
2090124e
#title
{
text-align
:
center
;
color
:
red
;
}
#mainmenu
{
margin
:
0
;
padding
:
0
0
20px
10px
;
border-bottom
:
1px
solid
#000
;
}
#mainmenu
ul
,
#mainmenu
li
{
margin
:
0
;
padding
:
0
;
display
:
inline
;
list-style-type
:
none
;
}
#mainmenu
a
:link
,
#mainmenu
a
:visited
{
float
:
left
;
line-height
:
14px
;
font-weight
:
bold
;
margin
:
0
10px
4px
10px
;
text-decoration
:
none
;
color
:
#999
;
}
#mainmenu
a
:link
#current
,
#mainmenu
a
:visited
#current
,
#mainmenu
a
:hover
{
border-bottom
:
4px
solid
#000
;
padding-bottom
:
2px
;
background
:
transparent
;
color
:
#000
;
}
#mainmenu
a
:hover
{
color
:
#000
;
}
#content
{
padding-top
:
25px
;
}
#controls
{
float
:
left
;
padding
:
0
0
1em
0
;
overflow
:
hidden
;
width
:
71%
;
/* right column content width */
left
:
102%
;
/* 100% plus left column left padding */
}
#control_xy
{
display
:
inline
;
}
#control_z
{
display
:
inline
;
position
:
absolute
;
}
#gui
{
float
:
left
;
padding
:
0
0
1em
0
;
overflow
:
hidden
;
width
:
21%
;
/* left column content width (column width minus left and right padding) */
left
:
6%
;
/* (right column left and right padding) plus (left column left padding) */
}
#controls
{
width
:
21%
;
/* Width of left column content (column width minus padding on either side) */
left
:
31%
;
/* width of (right column) plus (center column left and right padding) plus (left column left padding) */
}
#controls
ul
{
list-style
:
none
;
margin
:
0px
;
padding
:
0px
;
border
:
none
;
}
#controls
ul
li
{
margin
:
0px
;
padding
:
0px
;
}
#controls
ul
li
a
{
font-size
:
80%
;
display
:
block
;
border-bottom
:
1px
dashed
#C39C4E
;
padding
:
5px
0px
2px
4px
;
text-decoration
:
none
;
color
:
#666666
;
width
:
160px
;
}
#controls
ul
li
a
:hover
,
#controls
ul
li
a
:focus
{
color
:
#000000
;
background-color
:
#eeeeee
;
}
#settings
{
margin
:
0px
;
padding-top
:
50px
;
border
:
none
;
}
#settings
table
{
font-family
:
verdana
,
arial
,
sans-serif
;
font-size
:
11px
;
color
:
#333333
;
border-width
:
1px
;
border-color
:
#999999
;
border-collapse
:
collapse
;
}
#settings
table
th
{
background-color
:
#c3dde0
;
border-width
:
1px
;
padding
:
8px
;
border-style
:
solid
;
border-color
:
#a9c6c9
;
}
#settings
table
tr
{
background-color
:
#d4e3e5
;
}
#settings
table
td
{
border-width
:
1px
;
padding
:
8px
;
border-style
:
solid
;
border-color
:
#a9c6c9
;
}
#status
{
}
#console
{
}
#file
{
position
:
relative
;
float
:
left
;
width
:
100%
;
height
:
20px
;
/* Height of the footer */
background
:
#eee
;
}
#logframe
{
}
#temp
{
}
#tempmenu
{
padding
:
0
0
10px
10px
;
position
:
relative
;
float
:
left
;
width
:
100%
;
}
#tempmenu
ul
,
#tempmenu
li
{
margin
:
0
;
display
:
inline
;
list-style-type
:
none
;
}
#tempmenu
b
{
padding-top
:
4px
;
float
:
left
;
line-height
:
14px
;
font-weight
:
bold
;
color
:
#888
;
margin
:
0
10px
4px
10px
;
text-decoration
:
none
;
color
:
#999
;
}
#tempmenu
a
:link
,
#tempmenu
a
:visited
{
float
:
left
;
border-bottom
:
1px
solid
#000
;
line-height
:
14px
;
font-weight
:
bold
;
margin
:
0
10px
4px
10px
;
text-decoration
:
none
;
color
:
#999
;
}
#tempmenu
a
:link
#tempmenu
,
#tempmenu
a
:visited
#current
,
#tempmenu
a
:hover
{
border-bottom
:
2px
solid
#000
;
padding-bottom
:
2px
;
background
:
transparent
;
color
:
#000
;
}
#tempmenu
a
:hover
{
color
:
#000
;
}
\ No newline at end of file
php/parser.php
deleted
100644 → 0
View file @
2090124e
<?php
$pronterfaceIP
=
"192.168.0.102:8080"
;
//Format: ip:port
$curl
=
curl_init
();
curl_setopt
(
$curl
,
CURLINFO_HEADER_OUT
,
true
);
curl_setopt
(
$curl
,
CURLOPT_HEADER
,
false
);
curl_setopt
(
$curl
,
CURLOPT_RETURNTRANSFER
,
true
);
curl_setopt
(
$curl
,
CURLOPT_CONNECTTIMEOUT
,
1
);
curl_setopt
(
$curl
,
CURLOPT_TIMEOUT
,
1
);
curl_setopt
(
$curl
,
CURLOPT_URL
,
"http://"
.
$pronterfaceIP
.
"/status/"
);
$data
=
curl_exec
(
$curl
);
if
(
curl_errno
(
$curl
)
||
empty
(
$data
))
{
die
(
"Printer offline"
);
}
curl_close
(
$curl
);
try
{
$xml
=
new
SimpleXMLElement
(
$data
);
echo
"State: "
.
$xml
->
state
.
"<br />"
;
echo
"Hotend: "
.
round
(
$xml
->
hotend
,
0
)
.
"°c<br />"
;
echo
"Bed: "
.
round
(
$xml
->
bed
,
0
)
.
"°c<br />"
;
if
(
$xml
->
progress
!=
"NA"
)
{
echo
"Progress: "
.
$xml
->
progress
.
"%"
;
}
}
catch
(
Exception
$e
)
{
echo
"ERROR:
\n
"
.
$e
->
getMessage
()
.
" (severity "
.
$e
->
getCode
()
.
")"
;
}
?>
\ No newline at end of file
printrun/webinterface.py
deleted
100644 → 0
View file @
2090124e
This diff is collapsed.
Click to expand it.
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