Added simple python script to test the Garmin (NetworkPassive) Data Source in the absence of a hardware device.
This commit is contained in:
1
test/data
Normal file
1
test/data
Normal file
@@ -0,0 +1 @@
|
||||
{"dataTime":"01-01-1970 00:00:00","dataTimeStr":"19700101T000000","maxVal":0,"maxFreq":0,"specPower":-1,"roiPower":-1,"batteryPc":0,"pebbleConnected":true,"pebbleAppRunning":false,"haveSettings":false,"alarmState":4,"sdMode":0,"sampleFreq":0,"analysisPeriod":0,"alarmFreqMin":0,"alarmFreqMax":0,"alarmThresh":0,"alarmRatioThresh":0,"simpleSpec":[0,0,0,0,0,0,0,0,0,0]}
|
||||
9
test/testNetworkPassiveDataSource.py
Executable file
9
test/testNetworkPassiveDataSource.py
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import requests
|
||||
|
||||
content = {"testData":"test data string"}
|
||||
|
||||
request = requests.post("http://192.168.0.161:8080/data", json=content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user