Commit 388b43de authored by nextime's avatar nextime

chat html improvements

parent 93089ca1
#!/usr/bin/env python3
import obsws_python as obs
import time
# load conn info from config.toml
cl = obs.EventClient(host='192.168.42.115', port=4455, password='motorol4')
cr = obs.ReqClient(host='192.168.42.115', port=4455, password='motorol4')
def on_scene_item_enable_state_changed(data):
print("scscene_item_enable_state_changed")
print(data.attrs())
print(data.scene_item_enabled, data.scene_item_id, data.scene_name, data.scene_uuid)
cl.callback.register(on_scene_item_enable_state_changed)
# returns a list of currently registered events
print(cl.callback.get())
# You may also deregister a callback
#cl.callback.deregister(on_input_mute_state_changed)
now=time.time()-30
while True:
if (time.time() - now) > 30:
now = time.time()
cr.broadcast_custom_event({'eventData': {'eventType': 'Ping', 'time': time.time()}})
time.sleep(.1)
[General]
log_file = /tmp/streaming_control.log
log_level = INFO
[Web]
stream_url = https://192.168.42.1/HLS/record/Live.m3u8
rtmp_url = rtmp://192.168.42.1/record/Live
port = 5000
[Tkinter]
window_title = SHM Cam Studio
button_width = 20
button_height = 2
font_size = 12
#[OBS:mdma]
#host = 192.168.42.115
#port = 4455
#password = motorol4
[OBS:slut]
host = 192.168.42.125
port = 4455
password = motorol4
[OBS:leeloo]
host = 192.168.42.111
port = 4455
password = motorol4
# OUTPUT are shenes on OBS sending to a specific stream, can be a rtmp stream with
# OBS multistream plugin or a virtual cam, both the included in OBS or the ones
# from a plugin.
[OUTPUT:smleeloo]
obs = leeloo
scene = LIVE SFW
status.open.disable = 5,4,3
status.close.disable = 3
status.close.enable = 5,4
status.tease.disable = 4
status.tease.enable = 5,3
[OUTPUT:smstefy]
obs = slut
scene = live SFW
status.open.disable = 5,4,3
status.close.disable = 3
status.close.enable = 5,4
status.tease.disable = 4
status.tease.enable = 5,3
[OUTPUT:shine]
obs = slut
scene = SHINE
status.open.disable = 4,2,3
status.close.disable = 3
status.close.enable = 4,2
status.tease.disable = 2
status.tease.enable = 4,3
#[OUTPUT:livejasmin]
#obs = slut
#scene = LIVE JM
#status.open.disable = 2,3,4,5
##status.close.disable = 2
#status.close.enable = 3,4,5
#status.tease.disable = 3
#status.tease.enable = 2,4,5
# BUTTON:<rownum>:<button_name>
[BUTTON:1:private_shine]
title = Private Shine
action = private_shine
color = maroon
[BUTTON:1:private_stefy]
title = Private Stefy
action = private_stefy
color = maroon
[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
#color = green
[BUTTON:2:shine_openclose]
title = Open/Close Shine
action = shine_openclose
output = shine
color.close = red
color.open = green
color.tease = orange
color = grey
[BUTTON:2:stefy_openclose]
title = Open/Close Stefy
action = stefy_openclose
output = smstefy
color.close = red
color.open = green
color.tease = orange
color = grey
[BUTTON:2:leelo_openclose]
title = Open/Close Leeloo
action = leelo_openclose
output = smleeloo
color.close = red
color.open = green
color.tease = orange
color = grey
[BUTTON:2:spotify]
title = MUSIC PAUSE
action = spotify_pause
color = blue
#[BUTTON:2:leelo_livejasmine]
#title = Open/Close JASM
#action = jasmine_openclose
[BUTTON:3:tease_all]
title = SCENE Tease ALL
action = tease_all
color = teal
color.active = turquoise
feedback = scene
[BUTTON:3:tease]
title = SCENE Tease
action = tease
color = teal
color.active = turquoise
feedback = scene
[BUTTON:3:scene_all_open]
title = SCENE ALL OPEN
action = open_all
color = teal
color.active = turquoise
feedback = scene
[BUTTON:3:scene_shile_always_open]
title = SCENE SHINE ALWAYS OPEN
action = open_all_shine_open
color = teal
color.active = turquoise
feedback = scene
[BUTTON:3:scene_manual]
title = MANUAL
action = scene_manual
color = blue
color.manual = blue
color.automatic = red
title.manual = MANUAL
title.automatic = AUTO
feedback = status
[ACTION:scene_manual]
setstatus = change
[ACTION:spotify_pause]
execute = /home/nextime/bin/spotifypause
[ACTION:private_shine]
execute = /usr/local/bin/smblur_private
[ACTION:private_stefy]
execute = /usr/local/bin/smblur_private_stefy
[ACTION:private_leeloo]
execute = /usr/local/bin/smblur_private_leeloo
#[ACTION:private_jasmine]
#execute = /usr/local/bin/smblur_private_jasmin
[ACTION:leelo_openclose]
execute = /usr/local/bin/smblur_leeloo
[ACTION:shine_openclose]
execute = /usr/local/bin/smblur_shine
[ACTION:stefy_openclose]
execute = /usr/local/bin/smblur_stefy
#[ACTION:jasmine_openclose]
#execute = /usr/local/bin/smblur_jasmin
[ACTION:tease_all]
execute = /usr/local/bin/smblur_teaseall
setscene = tease_all
[ACTION:tease]
execute = /usr/local/bin/smblur_tease
setscene = tease
[ACTION:open_all]
execute = /usr/local/bin/smblur_clean
setscene = open_all
[ACTION:open_all_shine_open]
execute = /usr/local/bin/smblur_clean
setscene = open_all_shine_open
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment