Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
SHMCamStudio
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
SHMCamStudio
Commits
fff8557b
Commit
fff8557b
authored
Dec 02, 2024
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update gui and webgui: adjust colors and increase columns number
parent
f189822b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
35 deletions
+31
-35
shmcamstudio
shmcamstudio
+0
-4
shmcamstudio.conf
shmcamstudio.conf
+26
-21
webpanel.py
shmcs/webpanel.py
+2
-2
index.html
templates/index.html
+3
-8
No files found.
shmcamstudio
View file @
fff8557b
...
...
@@ -33,11 +33,7 @@ import subprocess
config
=
configparser
.
ConfigParser
()
config
.
read
(
'shmcamstudio.conf'
)
# Command Mapping
COMMANDS
=
dict
(
config
[
'Commands'
])
builtins
.
config
=
config
builtins
.
COMMANDS
=
COMMANDS
# Setup logging
log_file
=
config
.
get
(
'General'
,
'log_file'
,
fallback
=
'/tmp/streaming_control.log'
)
...
...
shmcamstudio.conf
View file @
fff8557b
...
...
@@ -7,19 +7,6 @@ stream_url = https://192.168.42.1/HLS/record/Live.m3u8
rtmp_url
=
rtmp
://
192
.
168
.
42
.
1
/
record
/
Live
port
=
5000
[
Commands
]
private_stefy
=
smblur_private_stefy
private_leeloo
=
smblur_private_leeloo
private_jasmin
=
smblur_private_jasmin
private_other
=
smblur_private
toggle_stefy
=
smblur_stefy
toggle_leeloo
=
smblur_leeloo
toggle_jasmin
=
smblur_jasmin
toggle_others
=
smblur_shine
tease
=
smblur_tease
tease_all
=
smblur_teaseall
open
=
smblur_clean
[
Tkinter
]
window_title
=
SHM
Cam
Studio
button_width
=
20
...
...
@@ -69,19 +56,25 @@ source_tease = 3
[
BUTTON
:
1
:
private_shine
]
title
=
Private
Shine
action
=
private_shine
color
=
gree
n
color
=
maroo
n
[
BUTTON
:
1
:
private_stefy
]
title
=
Private
Stefy
action
=
private_stefy
color
=
gree
n
color
=
maroo
n
[
BUTTON
:
1
:
private_leelo
]
title
=
Private
Leeloo
action
=
private_leeloo
color
=
maroon
[
BUTTON
:
1
:
open_all
]]
title
=
Open
ALL
action
=
open_all
color
=
green
#[BUTTON:1:private_jasmine]
#title = Private Jasmine
#action = private_jasmine
...
...
@@ -107,20 +100,32 @@ color = orange
#action = jasmine_openclose
[
BUTTON
:
3
:
tease_all
]
title
=
Tease
ALL
title
=
SCENE
Tease
ALL
action
=
tease_all
color
=
blue
color
=
teal
[
BUTTON
:
3
:
tease
]
title
=
Tease
title
=
SCENE
Tease
action
=
tease
color
=
blue
color
=
teal
[
BUTTON
:
3
:
open_all
]
title
=
Open
ALL
[
BUTTON
:
3
:
scene_all_open
]
title
=
SCENE
ALL
OPEN
action
=
open_all
color
=
teal
[
BUTTON
:
3
:
scene_shile_always_open
]
title
=
SCENE
SHINE
ALWAYS
OPEN
action
=
open_all
color
=
teal
[
BUTTON
:
3
:
scene_manual
]
title
=
SCENE
MANUAL
action
=
open_all
color
=
blue
[
ACTION
:
private_shine
]
execute
= /
usr
/
local
/
bin
/
smblur_private
...
...
shmcs/webpanel.py
View file @
fff8557b
...
...
@@ -30,7 +30,7 @@ def index():
htmlbuttons
=
""
if
numrows
>
0
:
while
row
<=
numrows
:
bspan
=
int
(
12
/
len
(
buttons
[
row
]
.
keys
()))
bspan
=
int
(
12
0
/
len
(
buttons
[
row
]
.
keys
()))
style_rows
=
style_rows
+
"
\n
.button_row"
+
str
(
row
)
+
" {
\n
grid-column: span "
+
str
(
bspan
)
+
";
\n
}
\n
"
col
=
0
...
...
@@ -47,7 +47,7 @@ def index():
row
=
row
+
1
return
render_template
(
'index.html'
,
commands
=
COMMANDS
,
style_rows
=
style_rows
,
htmlbuttons
=
htmlbuttons
)
return
render_template
(
'index.html'
,
style_rows
=
style_rows
,
htmlbuttons
=
htmlbuttons
)
@
flask_app
.
route
(
'/execute'
,
methods
=
[
'POST'
])
def
execute
():
...
...
templates/index.html
View file @
fff8557b
...
...
@@ -100,7 +100,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
.buttons-container
{
display
:
grid
;
grid-template-columns
:
repeat
(
12
,
1
fr
);
grid-template-columns
:
repeat
(
12
0
,
1
fr
);
grid-template-rows
:
repeat
(
3
,
1
fr
);
height
:
100%
;
width
:
100%
;
...
...
@@ -110,9 +110,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
.button_row
{
display
:
grid
;
grid-template-columns
:
repeat
(
12
,
1
fr
);
grid-template-columns
:
repeat
(
12
0
,
1
fr
);
width
:
100%
;
grid-column
:
span
12
;
grid-column
:
span
12
0
;
}
{
{style_rows|safe
}
}
...
...
@@ -150,11 +150,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
transform
:
scale
(
0.95
);
}
/* Third row buttons */
.buttons-container
>
.button
:nth-child
(
n
+
9
)
{
grid-column
:
span
4
;
}
/* Responsive adjustments */
@media
(
max-width
:
768px
)
{
.button
{
...
...
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