First commit with working implementation
This commit is contained in:
commit
1feabffe2b
5 changed files with 308 additions and 0 deletions
10
test_sms.py
Executable file
10
test_sms.py
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import os
|
||||
|
||||
ftest = open("/opt/sms/sms.log", "w")
|
||||
ftest.write("Observium {}\n".format(os.environ.get('OBSERVIUM_TITLE')))
|
||||
ftest.write("{} [{}]\n".format(os.environ.get('OBSERVIUM_ENTITY_NAME'), os.environ.get('OBSERVIUM_ENTITY_DESCRIPTION')))
|
||||
ftest.write("{}".format(os.environ.get('OBSERVIUM_DURATION')))
|
||||
ftest.close()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue