use local signal-cli
This commit is contained in:
@@ -78,7 +78,8 @@ tsfm=["%H","%d","%U"]
|
||||
lastfm=["","",""]
|
||||
|
||||
|
||||
tcss = """<script src="https://home.wrede.ca/pr/sorttable.js"></script>
|
||||
#tcss = """<script src="https://home.wrede.ca/pr/sorttable.js"></script>
|
||||
tcss = """<script src="http:/sorttable.js"></script>
|
||||
<style>
|
||||
#ntable {
|
||||
border-collapse: collapse;
|
||||
@@ -270,7 +271,7 @@ def pushsignal(msg, title="hbd", recipient=RECIPIENT):
|
||||
|
||||
message = f'"{title}: {msg}"'
|
||||
CLI = [
|
||||
"/usr/bin/ssh", "andreas@w02",
|
||||
"sudo", "-u", "andreas",
|
||||
"/usr/local/bin/signal-cli", "-u", USER,
|
||||
"send", "-m", message,
|
||||
# "-g", GROUP,
|
||||
@@ -841,6 +842,9 @@ def pickleit():
|
||||
pick.dump(lastfm)
|
||||
pickf.close()
|
||||
|
||||
|
||||
# Websockets stuff
|
||||
|
||||
ws_connections = {}
|
||||
|
||||
async def ws_serve(websocket, path):
|
||||
|
||||
Reference in New Issue
Block a user