Expose node
This commit is contained in:
parent
fdf782bc2f
commit
ed3f7872e9
|
@ -7,8 +7,9 @@ import time
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
def record_observations(observations):
|
|
||||||
node = socket.gethostbyaddr(socket.gethostname())[0]
|
node = socket.gethostbyaddr(socket.gethostname())[0]
|
||||||
|
|
||||||
|
def record_observations(observations):
|
||||||
for dir in (".", os.environ["HOME"] + "/.config/ltsdb", "/etc/ltsdb"):
|
for dir in (".", os.environ["HOME"] + "/.config/ltsdb", "/etc/ltsdb"):
|
||||||
try:
|
try:
|
||||||
with open(dir + "/config.json") as fh:
|
with open(dir + "/config.json") as fh:
|
||||||
|
|
Loading…
Reference in New Issue