I'm using python on a Pi to log movement detected by a Infrared sensor. I'd like to represent the data on a line/bar graph with time on the x axis and the y axis being binary to represent movemnet (1) or no movement (0).
Each movement will be recorded as a new row on the log (csv) file.
Here is an example of the data:
Start Date,Start Time, End Date, End Time, Duration
2017-11-02,19:45:20,2017-11-02,19:45:59,0:00:38
2017-11-02,22:26:53,2017-11-02,22:27:50,0:00:56
2017-11-03,01:09:49,2017-11-03,01:10:31,0:00:42
2017-11-03,01:23:23,2017-11-03,01:23:43,0:00:20
2017-11-03,04:24:10,2017-11-03,04:33:03,0:08:52
The monitoring is daily within a defined window (7pm to 7am) and a separate log file is created for each logging window.
I would like my graph to represent the entire period of 7pm to 7am.
Is it possible for gnuplot to represent a graph to my requirements without the need to modify the existing input file? My fear is that I may need to create a new input file specifically for gnuplot where each minute is recorded as a new row in the file with either 1 or 0 to show movement during that minute.
I'm new to gnuplot so any advice would be appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using python on a Pi to log movement detected by a Infrared sensor. I'd like to represent the data on a line/bar graph with time on the x axis and the y axis being binary to represent movemnet (1) or no movement (0).
Each movement will be recorded as a new row on the log (csv) file.
Here is an example of the data:
Start Date,Start Time, End Date, End Time, Duration
2017-11-02,19:45:20,2017-11-02,19:45:59,0:00:38
2017-11-02,22:26:53,2017-11-02,22:27:50,0:00:56
2017-11-03,01:09:49,2017-11-03,01:10:31,0:00:42
2017-11-03,01:23:23,2017-11-03,01:23:43,0:00:20
2017-11-03,04:24:10,2017-11-03,04:33:03,0:08:52
The monitoring is daily within a defined window (7pm to 7am) and a separate log file is created for each logging window.
I would like my graph to represent the entire period of 7pm to 7am.
Is it possible for gnuplot to represent a graph to my requirements without the need to modify the existing input file? My fear is that I may need to create a new input file specifically for gnuplot where each minute is recorded as a new row in the file with either 1 or 0 to show movement during that minute.
I'm new to gnuplot so any advice would be appreciated.