30 */3 * * * /root/console.py
...how to active sensor to work every three hours, for example, 1:30 am, 4:30 am, 7:30 am ... etc.? how to save the dataset to a file named with the current date/time?...
Use Console Class collect sensor data
...If that works, and if you want the sketch to do other things, the while (!Console); statement can be replaced with an if (Console) statement to only do the console communications when the socket is open.