There is hardware that records data. I can call api to get the data stream through cURL. It writes a new line of data every second. I would like to convey this data and present it in a line graph over time. With php and possibly ajax. I would like to see a moving chart in the browser, updating the browser every second or using Ajax. What tools do I need? What is the best way to do this?
Thank you, all these are really useful things. At the moment, I'm struggling to get data from the hardware. I can get the data through an interface that is written as follows:
192.168.150.130:2345/realtime
Then I see the following in the browser:
DM_NumLogChans=5 DM_NumDataModes=1 DM_LogicalChan=1 DM_ChanType=SEQUENTIAL DM_NumDims=2 DM_DataMode=1 DM_DataModeType=TIMHIS DM_AxisLabel.Dim1=Time DM_AxisLabel.Dim2=Value DM_AxisUnits.Dim1=secs DM_AxisUnits.Dim2=microstrain DM_SampleRate=1.000000 DM_TimeBase=0.0 DM_ChanName=bridge_1 DM_UserMin=-583.220764 DM_UserMax=940.916199 DM_Start= -439.779 -391.875 -680.114 1001.37 0 -442.068 -396.62 -680.945 1001.37 0 -443.571 -399.705 -680.639 1001.37 0 -445.598 -404.848 -684.662 1001.37 0
This is the recorded data that I cannot get from the URL. I would like to save it or transform it somehow. Sorry for the bad english.
source share