add einfache testanfrage an listener
parent
c05d9170a2
commit
6fb4030bae
@ -0,0 +1,14 @@
|
||||
import requests
|
||||
|
||||
nuc_ip = '192.168.178.52'
|
||||
url = f'http://{nuc_ip}:9713/osiris_execute'
|
||||
|
||||
command = "testcommand"
|
||||
|
||||
response = requests.post(url, json={'command': command})
|
||||
|
||||
if response.status_code == 200:
|
||||
result = response.json()
|
||||
print('Response:', result.get('message'))
|
||||
else:
|
||||
print('Failed to execute script:', response.json())
|
Loading…
Reference in New Issue