Working with data in a text file accessing by http:\\....
Posted: Tue Dec 08, 2015 11:57 pm
Hello ,
i'm trying to accessing data from a sensor.
The data file could be accessed to this address :
http://127.0.0.1:4444/bySerial/LIGHTMK2 ... Sensor.txt
Data are like this in the text file :
*** lightSensor
logicalName: ""
advertisedValue: "17.5"
unit: "lx"
currentValue: 17.6
lowestValue: 3.5
highestValue: 82.6
currentRawValue: 17.617
logFrequency: 1/s
reportFrequency: OFF
calibrationParam: 0,
resolution: 0.1
measureType: HUMAN_EYE
So i would like to make a module that can read this text file each minute then get the datas on line 6,7,8 line ( lowestValue
highestValue
currentRawValue )
How can i make this module in flowstone.
Thanks for your answers
François
i'm trying to accessing data from a sensor.
The data file could be accessed to this address :
http://127.0.0.1:4444/bySerial/LIGHTMK2 ... Sensor.txt
Data are like this in the text file :
*** lightSensor
logicalName: ""
advertisedValue: "17.5"
unit: "lx"
currentValue: 17.6
lowestValue: 3.5
highestValue: 82.6
currentRawValue: 17.617
logFrequency: 1/s
reportFrequency: OFF
calibrationParam: 0,
resolution: 0.1
measureType: HUMAN_EYE
So i would like to make a module that can read this text file each minute then get the datas on line 6,7,8 line ( lowestValue
highestValue
currentRawValue )
How can i make this module in flowstone.
Thanks for your answers
François