First commit with working implementation

This commit is contained in:
root 2017-02-02 14:41:18 +01:00
commit 1feabffe2b
5 changed files with 308 additions and 0 deletions

10
test_sms.py Executable file
View 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()