Add testing for battery features

pull/95/head
kaguillera 2020-07-01 16:34:47 -04:00
parent 379036c2b1
commit b886fcab35
31 changed files with 142 additions and 13 deletions

View File

@ -30,6 +30,13 @@ if config["SCREEN"]["COMPUTE"]:
files_to_compute.extend(expand("data/processed/{pid}/screen_deltas.csv", pid=config["PIDS"]))
files_to_compute.extend(expand("data/processed/{pid}/screen_{day_segment}.csv", pid = config["PIDS"], day_segment = config["SCREEN"]["DAY_SEGMENTS"]))
if config["BATTERY"]["COMPUTE"]:
files_to_compute.extend(expand("data/raw/{pid}/{sensor}_raw.csv", pid=config["PIDS"], sensor=config["BATTERY"]["DB_TABLE"]))
files_to_compute.extend(expand("data/raw/{pid}/{sensor}_with_datetime.csv", pid=config["PIDS"], sensor=config["BATTERY"]["DB_TABLE"]))
files_to_compute.extend(expand("data/raw/{pid}/{sensor}_with_datetime_unified.csv", pid=config["PIDS"], sensor=config["BATTERY"]["DB_TABLE"]))
files_to_compute.extend(expand("data/processed/{pid}/battery_deltas.csv", pid=config["PIDS"]))
files_to_compute.extend(expand("data/processed/{pid}/battery_{day_segment}.csv", pid = config["PIDS"], day_segment = config["BATTERY"]["DAY_SEGMENTS"]))
rule all:
input:
files_to_compute

View File

@ -0,0 +1,2 @@
local_date,battery_afternoon_countdischarge,battery_afternoon_sumdurationdischarge,battery_afternoon_avgconsumptionrate,battery_afternoon_maxconsumptionrate,battery_afternoon_countcharge,battery_afternoon_sumdurationcharge
2020-07-01,2,12.141000000000004,0.3148499579639538,0.3655119197498273,2,19.457666666666668
1 local_date battery_afternoon_countdischarge battery_afternoon_sumdurationdischarge battery_afternoon_avgconsumptionrate battery_afternoon_maxconsumptionrate battery_afternoon_countcharge battery_afternoon_sumdurationcharge
2 2020-07-01 2 12.141000000000004 0.3148499579639538 0.3655119197498273 2 19.457666666666668

View File

@ -0,0 +1,2 @@
local_date,battery_daily_countdischarge,battery_daily_sumdurationdischarge,battery_daily_avgconsumptionrate,battery_daily_maxconsumptionrate,battery_daily_countcharge,battery_daily_sumdurationcharge
2020-07-01,6,54.820549999999955,0.3388682207181443,0.4262039670118132,5,49.705000000000034
1 local_date battery_daily_countdischarge battery_daily_sumdurationdischarge battery_daily_avgconsumptionrate battery_daily_maxconsumptionrate battery_daily_countcharge battery_daily_sumdurationcharge
2 2020-07-01 6 54.820549999999955 0.3388682207181443 0.4262039670118132 5 49.705000000000034

View File

@ -0,0 +1,12 @@
"battery_diff","time_diff","local_start_date_time","local_end_date_time","local_start_date","local_end_date","local_start_day_segment","local_end_day_segment"
3,9.46978333333333,"2020-07-01 00:08:10","2020-07-01 00:17:38","2020-07-01","2020-07-01","night","night"
-3,10.091,"2020-07-01 03:20:30","2020-07-01 03:30:35","2020-07-01","2020-07-01","night","night"
3,7.03888333333333,"2020-07-01 05:57:30","2020-07-01 06:04:32","2020-07-01","2020-07-01","night","morning"
-3,8.591,"2020-07-01 08:04:32","2020-07-01 08:13:07","2020-07-01","2020-07-01","morning","morning"
3,11.0243333333333,"2020-07-01 10:23:17","2020-07-01 10:34:18","2020-07-01","2020-07-01","morning","morning"
-3,12.1576666666667,"2020-07-01 11:55:58","2020-07-01 12:08:07","2020-07-01","2020-07-01","morning","afternoon"
3,8.20766666666667,"2020-07-01 13:52:07","2020-07-01 14:00:19","2020-07-01","2020-07-01","afternoon","afternoon"
-3,11.341,"2020-07-01 16:13:27","2020-07-01 16:24:47","2020-07-01","2020-07-01","afternoon","afternoon"
3,11.35555,"2020-07-01 17:56:03","2020-07-01 18:07:24","2020-07-01","2020-07-01","afternoon","evening"
-3,7.52433333333333,"2020-07-01 20:03:03","2020-07-01 20:10:34","2020-07-01","2020-07-01","evening","evening"
3,7.72433333333333,"2020-07-01 21:30:04","2020-07-01 21:37:47","2020-07-01","2020-07-01","evening","evening"
1 battery_diff time_diff local_start_date_time local_end_date_time local_start_date local_end_date local_start_day_segment local_end_day_segment
2 3 9.46978333333333 2020-07-01 00:08:10 2020-07-01 00:17:38 2020-07-01 2020-07-01 night night
3 -3 10.091 2020-07-01 03:20:30 2020-07-01 03:30:35 2020-07-01 2020-07-01 night night
4 3 7.03888333333333 2020-07-01 05:57:30 2020-07-01 06:04:32 2020-07-01 2020-07-01 night morning
5 -3 8.591 2020-07-01 08:04:32 2020-07-01 08:13:07 2020-07-01 2020-07-01 morning morning
6 3 11.0243333333333 2020-07-01 10:23:17 2020-07-01 10:34:18 2020-07-01 2020-07-01 morning morning
7 -3 12.1576666666667 2020-07-01 11:55:58 2020-07-01 12:08:07 2020-07-01 2020-07-01 morning afternoon
8 3 8.20766666666667 2020-07-01 13:52:07 2020-07-01 14:00:19 2020-07-01 2020-07-01 afternoon afternoon
9 -3 11.341 2020-07-01 16:13:27 2020-07-01 16:24:47 2020-07-01 2020-07-01 afternoon afternoon
10 3 11.35555 2020-07-01 17:56:03 2020-07-01 18:07:24 2020-07-01 2020-07-01 afternoon evening
11 -3 7.52433333333333 2020-07-01 20:03:03 2020-07-01 20:10:34 2020-07-01 2020-07-01 evening evening
12 3 7.72433333333333 2020-07-01 21:30:04 2020-07-01 21:37:47 2020-07-01 2020-07-01 evening evening

View File

@ -0,0 +1,2 @@
local_date,battery_evening_countdischarge,battery_evening_sumdurationdischarge,battery_evening_avgconsumptionrate,battery_evening_maxconsumptionrate,battery_evening_countcharge,battery_evening_sumdurationcharge
2020-07-01,2,15.12433333333333,0.3262855140774751,0.3883830319768698,1,7.52433333333333
1 local_date battery_evening_countdischarge battery_evening_sumdurationdischarge battery_evening_avgconsumptionrate battery_evening_maxconsumptionrate battery_evening_countcharge battery_evening_sumdurationcharge
2 2020-07-01 2 15.12433333333333 0.3262855140774751 0.3883830319768698 1 7.52433333333333

View File

@ -0,0 +1,2 @@
local_date,battery_morning_countdischarge,battery_morning_sumdurationdischarge,battery_morning_avgconsumptionrate,battery_morning_maxconsumptionrate,battery_morning_countcharge,battery_morning_sumdurationcharge
2020-07-01,2,15.557666666666634,0.3491646327968694,0.4262039670118131,2,12.607666666666667
1 local_date battery_morning_countdischarge battery_morning_sumdurationdischarge battery_morning_avgconsumptionrate battery_morning_maxconsumptionrate battery_morning_countcharge battery_morning_sumdurationcharge
2 2020-07-01 2 15.557666666666634 0.3491646327968694 0.4262039670118131 2 12.607666666666667

View File

@ -0,0 +1,2 @@
local_date,battery_night_countdischarge,battery_night_sumdurationdischarge,battery_night_avgconsumptionrate,battery_night_maxconsumptionrate,battery_night_countcharge,battery_night_sumdurationcharge
2020-07-01,2,11.953116666666663,0.37150053891108137,0.4262039670118132,1,10.091000000000001
1 local_date battery_night_countdischarge battery_night_sumdurationdischarge battery_night_avgconsumptionrate battery_night_maxconsumptionrate battery_night_countcharge battery_night_sumdurationcharge
2 2020-07-01 2 11.953116666666663 0.37150053891108137 0.4262039670118132 1 10.091000000000001

View File

@ -0,0 +1,2 @@
local_date,battery_afternoon_countdischarge,battery_afternoon_sumdurationdischarge,battery_afternoon_avgconsumptionrate,battery_afternoon_maxconsumptionrate,battery_afternoon_countcharge,battery_afternoon_sumdurationcharge
2020-07-01,2,12.141000000000004,0.3148499579639538,0.3655119197498273,2,19.457666666666668
1 local_date battery_afternoon_countdischarge battery_afternoon_sumdurationdischarge battery_afternoon_avgconsumptionrate battery_afternoon_maxconsumptionrate battery_afternoon_countcharge battery_afternoon_sumdurationcharge
2 2020-07-01 2 12.141000000000004 0.3148499579639538 0.3655119197498273 2 19.457666666666668

View File

@ -0,0 +1,2 @@
local_date,battery_daily_countdischarge,battery_daily_sumdurationdischarge,battery_daily_avgconsumptionrate,battery_daily_maxconsumptionrate,battery_daily_countcharge,battery_daily_sumdurationcharge
2020-07-01,6,54.820549999999955,0.3388682207181443,0.4262039670118132,5,49.705000000000034
1 local_date battery_daily_countdischarge battery_daily_sumdurationdischarge battery_daily_avgconsumptionrate battery_daily_maxconsumptionrate battery_daily_countcharge battery_daily_sumdurationcharge
2 2020-07-01 6 54.820549999999955 0.3388682207181443 0.4262039670118132 5 49.705000000000034

View File

@ -0,0 +1,12 @@
"battery_diff","time_diff","local_start_date_time","local_end_date_time","local_start_date","local_end_date","local_start_day_segment","local_end_day_segment"
3,9.46978333333333,"2020-07-01 00:08:10","2020-07-01 00:17:38","2020-07-01","2020-07-01","night","night"
-3,10.091,"2020-07-01 03:20:30","2020-07-01 03:30:35","2020-07-01","2020-07-01","night","night"
3,7.03888333333333,"2020-07-01 05:57:30","2020-07-01 06:04:32","2020-07-01","2020-07-01","night","morning"
-3,8.591,"2020-07-01 08:04:32","2020-07-01 08:13:07","2020-07-01","2020-07-01","morning","morning"
3,11.0243333333333,"2020-07-01 10:23:17","2020-07-01 10:34:18","2020-07-01","2020-07-01","morning","morning"
-3,12.1576666666667,"2020-07-01 11:55:58","2020-07-01 12:08:07","2020-07-01","2020-07-01","morning","afternoon"
3,8.20766666666667,"2020-07-01 13:52:07","2020-07-01 14:00:19","2020-07-01","2020-07-01","afternoon","afternoon"
-3,11.341,"2020-07-01 16:13:27","2020-07-01 16:24:47","2020-07-01","2020-07-01","afternoon","afternoon"
3,11.35555,"2020-07-01 17:56:03","2020-07-01 18:07:24","2020-07-01","2020-07-01","afternoon","evening"
-3,7.52433333333333,"2020-07-01 20:03:03","2020-07-01 20:10:34","2020-07-01","2020-07-01","evening","evening"
3,7.72433333333333,"2020-07-01 21:30:04","2020-07-01 21:37:47","2020-07-01","2020-07-01","evening","evening"
1 battery_diff time_diff local_start_date_time local_end_date_time local_start_date local_end_date local_start_day_segment local_end_day_segment
2 3 9.46978333333333 2020-07-01 00:08:10 2020-07-01 00:17:38 2020-07-01 2020-07-01 night night
3 -3 10.091 2020-07-01 03:20:30 2020-07-01 03:30:35 2020-07-01 2020-07-01 night night
4 3 7.03888333333333 2020-07-01 05:57:30 2020-07-01 06:04:32 2020-07-01 2020-07-01 night morning
5 -3 8.591 2020-07-01 08:04:32 2020-07-01 08:13:07 2020-07-01 2020-07-01 morning morning
6 3 11.0243333333333 2020-07-01 10:23:17 2020-07-01 10:34:18 2020-07-01 2020-07-01 morning morning
7 -3 12.1576666666667 2020-07-01 11:55:58 2020-07-01 12:08:07 2020-07-01 2020-07-01 morning afternoon
8 3 8.20766666666667 2020-07-01 13:52:07 2020-07-01 14:00:19 2020-07-01 2020-07-01 afternoon afternoon
9 -3 11.341 2020-07-01 16:13:27 2020-07-01 16:24:47 2020-07-01 2020-07-01 afternoon afternoon
10 3 11.35555 2020-07-01 17:56:03 2020-07-01 18:07:24 2020-07-01 2020-07-01 afternoon evening
11 -3 7.52433333333333 2020-07-01 20:03:03 2020-07-01 20:10:34 2020-07-01 2020-07-01 evening evening
12 3 7.72433333333333 2020-07-01 21:30:04 2020-07-01 21:37:47 2020-07-01 2020-07-01 evening evening

View File

@ -0,0 +1,2 @@
local_date,battery_evening_countdischarge,battery_evening_sumdurationdischarge,battery_evening_avgconsumptionrate,battery_evening_maxconsumptionrate,battery_evening_countcharge,battery_evening_sumdurationcharge
2020-07-01,2,15.12433333333333,0.3262855140774751,0.3883830319768698,1,7.52433333333333
1 local_date battery_evening_countdischarge battery_evening_sumdurationdischarge battery_evening_avgconsumptionrate battery_evening_maxconsumptionrate battery_evening_countcharge battery_evening_sumdurationcharge
2 2020-07-01 2 15.12433333333333 0.3262855140774751 0.3883830319768698 1 7.52433333333333

View File

@ -0,0 +1,2 @@
local_date,battery_morning_countdischarge,battery_morning_sumdurationdischarge,battery_morning_avgconsumptionrate,battery_morning_maxconsumptionrate,battery_morning_countcharge,battery_morning_sumdurationcharge
2020-07-01,2,15.557666666666634,0.3491646327968694,0.4262039670118131,2,12.607666666666667
1 local_date battery_morning_countdischarge battery_morning_sumdurationdischarge battery_morning_avgconsumptionrate battery_morning_maxconsumptionrate battery_morning_countcharge battery_morning_sumdurationcharge
2 2020-07-01 2 15.557666666666634 0.3491646327968694 0.4262039670118131 2 12.607666666666667

View File

@ -0,0 +1,2 @@
local_date,battery_night_countdischarge,battery_night_sumdurationdischarge,battery_night_avgconsumptionrate,battery_night_maxconsumptionrate,battery_night_countcharge,battery_night_sumdurationcharge
2020-07-01,2,11.953116666666663,0.37150053891108137,0.4262039670118132,1,10.091000000000001
1 local_date battery_night_countdischarge battery_night_sumdurationdischarge battery_night_avgconsumptionrate battery_night_maxconsumptionrate battery_night_countcharge battery_night_sumdurationcharge
2 2020-07-01 2 11.953116666666663 0.37150053891108137 0.4262039670118132 1 10.091000000000001

View File

@ -0,0 +1 @@
local_date,battery_afternoon_countdischarge,battery_afternoon_maxconsumptionrate,battery_afternoon_countcharge,battery_afternoon_avgconsumptionrate,battery_afternoon_sumdurationcharge,battery_afternoon_sumdurationdischarge
1 local_date battery_afternoon_countdischarge battery_afternoon_maxconsumptionrate battery_afternoon_countcharge battery_afternoon_avgconsumptionrate battery_afternoon_sumdurationcharge battery_afternoon_sumdurationdischarge

View File

@ -0,0 +1 @@
local_date,battery_daily_sumdurationcharge,battery_daily_sumdurationdischarge,battery_daily_countdischarge,battery_daily_maxconsumptionrate,battery_daily_countcharge,battery_daily_avgconsumptionrate
1 local_date battery_daily_sumdurationcharge battery_daily_sumdurationdischarge battery_daily_countdischarge battery_daily_maxconsumptionrate battery_daily_countcharge battery_daily_avgconsumptionrate

View File

@ -0,0 +1 @@
"battery_diff","time_diff","local_start_date_time","local_end_date_time","local_start_date","local_end_date","local_start_day_segment","local_end_day_segment"
1 battery_diff time_diff local_start_date_time local_end_date_time local_start_date local_end_date local_start_day_segment local_end_day_segment

View File

@ -0,0 +1 @@
local_date,battery_evening_sumdurationcharge,battery_evening_countdischarge,battery_evening_avgconsumptionrate,battery_evening_countcharge,battery_evening_maxconsumptionrate,battery_evening_sumdurationdischarge
1 local_date battery_evening_sumdurationcharge battery_evening_countdischarge battery_evening_avgconsumptionrate battery_evening_countcharge battery_evening_maxconsumptionrate battery_evening_sumdurationdischarge

View File

@ -0,0 +1 @@
local_date,battery_morning_sumdurationcharge,battery_morning_sumdurationdischarge,battery_morning_maxconsumptionrate,battery_morning_countcharge,battery_morning_avgconsumptionrate,battery_morning_countdischarge
1 local_date battery_morning_sumdurationcharge battery_morning_sumdurationdischarge battery_morning_maxconsumptionrate battery_morning_countcharge battery_morning_avgconsumptionrate battery_morning_countdischarge

View File

@ -0,0 +1 @@
local_date,battery_night_maxconsumptionrate,battery_night_countcharge,battery_night_sumdurationdischarge,battery_night_avgconsumptionrate,battery_night_sumdurationcharge,battery_night_countdischarge
1 local_date battery_night_maxconsumptionrate battery_night_countcharge battery_night_sumdurationdischarge battery_night_avgconsumptionrate battery_night_sumdurationcharge battery_night_countdischarge

View File

@ -0,0 +1 @@
local_date,battery_afternoon_countcharge,battery_afternoon_sumdurationcharge,battery_afternoon_sumdurationdischarge,battery_afternoon_maxconsumptionrate,battery_afternoon_avgconsumptionrate,battery_afternoon_countdischarge
1 local_date battery_afternoon_countcharge battery_afternoon_sumdurationcharge battery_afternoon_sumdurationdischarge battery_afternoon_maxconsumptionrate battery_afternoon_avgconsumptionrate battery_afternoon_countdischarge

View File

@ -0,0 +1 @@
local_date,battery_daily_maxconsumptionrate,battery_daily_countdischarge,battery_daily_countcharge,battery_daily_avgconsumptionrate,battery_daily_sumdurationdischarge,battery_daily_sumdurationcharge
1 local_date battery_daily_maxconsumptionrate battery_daily_countdischarge battery_daily_countcharge battery_daily_avgconsumptionrate battery_daily_sumdurationdischarge battery_daily_sumdurationcharge

View File

@ -0,0 +1 @@
"battery_diff","time_diff","local_start_date_time","local_end_date_time","local_start_date","local_end_date","local_start_day_segment","local_end_day_segment"
1 battery_diff time_diff local_start_date_time local_end_date_time local_start_date local_end_date local_start_day_segment local_end_day_segment

View File

@ -0,0 +1 @@
local_date,battery_evening_sumdurationdischarge,battery_evening_sumdurationcharge,battery_evening_maxconsumptionrate,battery_evening_avgconsumptionrate,battery_evening_countdischarge,battery_evening_countcharge
1 local_date battery_evening_sumdurationdischarge battery_evening_sumdurationcharge battery_evening_maxconsumptionrate battery_evening_avgconsumptionrate battery_evening_countdischarge battery_evening_countcharge

View File

@ -0,0 +1 @@
local_date,battery_morning_countcharge,battery_morning_avgconsumptionrate,battery_morning_countdischarge,battery_morning_sumdurationdischarge,battery_morning_maxconsumptionrate,battery_morning_sumdurationcharge
1 local_date battery_morning_countcharge battery_morning_avgconsumptionrate battery_morning_countdischarge battery_morning_sumdurationdischarge battery_morning_maxconsumptionrate battery_morning_sumdurationcharge

View File

@ -0,0 +1 @@
local_date,battery_night_countdischarge,battery_night_maxconsumptionrate,battery_night_sumdurationdischarge,battery_night_countcharge,battery_night_sumdurationcharge,battery_night_avgconsumptionrate
1 local_date battery_night_countdischarge battery_night_maxconsumptionrate battery_night_sumdurationdischarge battery_night_countcharge battery_night_sumdurationcharge battery_night_avgconsumptionrate

View File

@ -13,7 +13,7 @@ timestamp,device_id,battery_status,battery_level,battery_scale,battery_voltage,b
1593597450123,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,80,100,4170,23,0,2,Li-ion
1593597589435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,79,100,4094,23,0,2,Li-ion
1593597739321,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,78,100,4157,23,0,2,Li-ion
1593597872456,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,77,100,4157,23,0,2,Li-ion
@ -33,7 +33,7 @@ timestamp,device_id,battery_status,battery_level,battery_scale,battery_voltage,b
1593619168435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,63,100,4094,23,0,2,Li-ion
1593619477679,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,64,100,4157,23,0,2,Li-ion
1593619687 876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,65,100,4157,23,0,2,Li-ion
1593619687876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,65,100,4157,23,0,2,Li-ion
1593625927416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,64,100,4170,23,0,2,Li-ion
1593626099435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,63,100,4094,23,0,2,Li-ion
@ -43,15 +43,15 @@ timestamp,device_id,battery_status,battery_level,battery_scale,battery_voltage,b
1593630629603,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,4,77,100,4157,23,0,2,Li-ion
1593634407416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,60,100,4170,23,0,2,Li-ion
1593634497435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,61,100,4094,23,0,2,Li-ion
1593634567679,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,62,100,4157,23,0,2,Li-ion
1593634723876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,63,100,4157,23,0,2,Li-ion
1593634677435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,61,100,4094,23,0,2,Li-ion
1593634887679,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,62,100,4157,23,0,2,Li-ion
1593635087876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,63,100,4157,23,0,2,Li-ion
1593640683123,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,60,100,4170,23,0,2,Li-ion
1593640793435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,59,100,4094,23,0,2,Li-ion
1593640563123,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,60,100,4170,23,0,2,Li-ion
1593640781435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,59,100,4094,23,0,2,Li-ion
1593640853321,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,58,100,4157,23,0,2,Li-ion
1593640983456,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,57,100,4157,23,0,2,Li-ion
1593641054321,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,58,100,4157,23,0,2,Li-ion
1593641244456,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,57,100,4157,23,0,2,Li-ion
1593648183416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,72,100,4170,23,0,2,Li-ion
1593648312435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,73,100,4094,23,0,2,Li-ion
@ -63,4 +63,4 @@ timestamp,device_id,battery_status,battery_level,battery_scale,battery_voltage,b
1593653404416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,74,100,4170,23,0,2,Li-ion
1593653534435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,73,100,4094,23,0,2,Li-ion
1593653723679,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,72,100,4157,23,0,2,Li-ion
1593653867876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,71,100,4157,23,0,2,Li-ion
1593653867876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,3,71,100,4157,23,0,2,Li-ion
Can't render this file because it has a wrong number of fields in line 16.

View File

@ -0,0 +1,58 @@
timestamp,device_id,battery_status,battery_level,battery_scale,battery_voltage,battery_temperature,battery_adaptor,battery_health,battery_technology
1593576490416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,80,100,4170,23,0,2,Li-ion
1593576683435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,79,100,4094,23,0,2,Li-ion
1593576930630,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,78,100,4157,23,0,2,Li-ion
1593577058603,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,77,100,4157,23,0,2,Li-ion
1593588030416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,77,100,4170,23,0,2,Li-ion
1593588230435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,78,100,4094,23,0,2,Li-ion
1593588635630,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,79,100,4157,23,0,2,Li-ion
1593588635876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,80,100,4157,23,0,2,Li-ion
1593597450123,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,80,100,4170,23,0,2,Li-ion
1593597589435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,79,100,4094,23,0,2,Li-ion
1593597739321,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,78,100,4157,23,0,2,Li-ion
1593597872456,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,77,100,4157,23,0,2,Li-ion
1593605072416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,72,100,4170,23,0,2,Li-ion
1593605232435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,73,100,4094,23,0,2,Li-ion
1593605392679,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,74,100,4157,23,0,2,Li-ion
1593605587876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,75,100,4157,23,0,2,Li-ion
1593613397416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,74,100,4170,23,0,2,Li-ion
1593613583435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,73,100,4094,23,0,2,Li-ion
1593613783679,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,72,100,4157,23,0,2,Li-ion
1593614058876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,71,100,4157,23,0,2,Li-ion
1593618958416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,62,100,4170,23,0,2,Li-ion
1593619168435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,63,100,4094,23,0,2,Li-ion
1593619477679,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,64,100,4157,23,0,2,Li-ion
1593619687876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,65,100,4157,23,0,2,Li-ion
1593625927416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,64,100,4170,23,0,2,Li-ion
1593626099435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,63,100,4094,23,0,2,Li-ion
1593626229679,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,62,100,4157,23,0,2,Li-ion
1593626419876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,61,100,4157,23,0,2,Li-ion
1593634407416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,60,100,4170,23,0,2,Li-ion
1593634677435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,61,100,4094,23,0,2,Li-ion
1593634887679,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,62,100,4157,23,0,2,Li-ion
1593635087876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,63,100,4157,23,0,2,Li-ion
1593640563123,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,60,100,4170,23,0,2,Li-ion
1593640781435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,59,100,4094,23,0,2,Li-ion
1593641054321,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,58,100,4157,23,0,2,Li-ion
1593641244456,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,57,100,4157,23,0,2,Li-ion
1593648183416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,72,100,4170,23,0,2,Li-ion
1593648312435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,73,100,4094,23,0,2,Li-ion
1593648444679,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,74,100,4157,23,0,2,Li-ion
1593648634876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,75,100,4157,23,0,2,Li-ion
1593653404416,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,74,100,4170,23,0,2,Li-ion
1593653534435,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,73,100,4094,23,0,2,Li-ion
1593653723679,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,72,100,4157,23,0,2,Li-ion
1593653867876,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,71,100,4157,23,0,2,Li-ion
1 timestamp device_id battery_status battery_level battery_scale battery_voltage battery_temperature battery_adaptor battery_health battery_technology
2 1593576490416 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 80 100 4170 23 0 2 Li-ion
3 1593576683435 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 79 100 4094 23 0 2 Li-ion
4 1593576930630 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 78 100 4157 23 0 2 Li-ion
5 1593577058603 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 77 100 4157 23 0 2 Li-ion
6 1593588030416 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 77 100 4170 23 0 2 Li-ion
7 1593588230435 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 78 100 4094 23 0 2 Li-ion
8 1593588635630 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 79 100 4157 23 0 2 Li-ion
9 1593588635876 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 80 100 4157 23 0 2 Li-ion
10 1593597450123 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 80 100 4170 23 0 2 Li-ion
11 1593597589435 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 79 100 4094 23 0 2 Li-ion
12 1593597739321 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 78 100 4157 23 0 2 Li-ion
13 1593597872456 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 77 100 4157 23 0 2 Li-ion
14 1593605072416 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 72 100 4170 23 0 2 Li-ion
15 1593605232435 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 73 100 4094 23 0 2 Li-ion
16 1593605392679 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 74 100 4157 23 0 2 Li-ion
17 1593605587876 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 75 100 4157 23 0 2 Li-ion
18 1593613397416 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 74 100 4170 23 0 2 Li-ion
19 1593613583435 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 73 100 4094 23 0 2 Li-ion
20 1593613783679 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 72 100 4157 23 0 2 Li-ion
21 1593614058876 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 71 100 4157 23 0 2 Li-ion
22 1593618958416 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 62 100 4170 23 0 2 Li-ion
23 1593619168435 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 63 100 4094 23 0 2 Li-ion
24 1593619477679 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 64 100 4157 23 0 2 Li-ion
25 1593619687876 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 65 100 4157 23 0 2 Li-ion
26 1593625927416 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 64 100 4170 23 0 2 Li-ion
27 1593626099435 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 63 100 4094 23 0 2 Li-ion
28 1593626229679 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 62 100 4157 23 0 2 Li-ion
29 1593626419876 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 61 100 4157 23 0 2 Li-ion
30 1593634407416 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 60 100 4170 23 0 2 Li-ion
31 1593634677435 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 61 100 4094 23 0 2 Li-ion
32 1593634887679 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 62 100 4157 23 0 2 Li-ion
33 1593635087876 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 63 100 4157 23 0 2 Li-ion
34 1593640563123 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 60 100 4170 23 0 2 Li-ion
35 1593640781435 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 59 100 4094 23 0 2 Li-ion
36 1593641054321 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 58 100 4157 23 0 2 Li-ion
37 1593641244456 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 57 100 4157 23 0 2 Li-ion
38 1593648183416 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 72 100 4170 23 0 2 Li-ion
39 1593648312435 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 73 100 4094 23 0 2 Li-ion
40 1593648444679 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 74 100 4157 23 0 2 Li-ion
41 1593648634876 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 2 75 100 4157 23 0 2 Li-ion
42 1593653404416 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 74 100 4170 23 0 2 Li-ion
43 1593653534435 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 73 100 4094 23 0 2 Li-ion
44 1593653723679 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 72 100 4157 23 0 2 Li-ion
45 1593653867876 wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun 1 71 100 4157 23 0 2 Li-ion

View File

@ -0,0 +1 @@
timestamp,device_id,battery_status,battery_level,battery_scale,battery_voltage,battery_temperature,battery_adaptor,battery_health,battery_technology
1 timestamp device_id battery_status battery_level battery_scale battery_voltage battery_temperature battery_adaptor battery_health battery_technology

View File

@ -0,0 +1 @@
timestamp,device_id,battery_status,battery_level,battery_scale,battery_voltage,battery_temperature,battery_adaptor,battery_health,battery_technology
1 timestamp device_id battery_status battery_level battery_scale battery_voltage battery_temperature battery_adaptor battery_health battery_technology

View File

@ -2,4 +2,4 @@ directory: ./
configfile: ./tests/settings/testing_config.yaml
snakefile: ./tests/Snakefile
cores: 1
forcerun: [messages_features, call_features, screen_features]
forcerun: [messages_features, call_features, screen_features, battery_features]

View File

@ -1,9 +1,10 @@
# Add as many sensor tables as you have, they all improve the computation of PHONE_SENSED_BINS.
# If you are extracting screen or Barnett's location features, screen and locations tables are mandatory.
TABLES_FOR_SENSED_BINS: [messages, calls, screen]
TABLES_FOR_SENSED_BINS: [messages, calls, screen, battery]
# Participants to include in the analysis
# You must create a file for each participant named pXXX containing their device_id. This can be done manually or automatically
# PIDS: [test01, test02, test03, test04]
PIDS: [test01, test02, test03, test04]
@ -32,7 +33,6 @@ CALLS:
outgoing: [count, distinctcontacts, meanduration, sumduration, minduration, maxduration, stdduration, modeduration, entropyduration, timefirstcall, timelastcall, countmostfrequentcontact]
DAY_SEGMENTS: *day_segments
SCREEN:
COMPUTE: True
DB_TABLE: screen
@ -40,3 +40,9 @@ SCREEN:
REFERENCE_HOUR_FIRST_USE: 0
FEATURES_DELTAS: ["countepisode", "episodepersensedminutes", "sumduration", "maxduration", "minduration", "avgduration", "stdduration", "firstuseafter"]
EPISODE_TYPES: ["unlock"]
BATTERY:
COMPUTE: True
DB_TABLE: battery
DAY_SEGMENTS: *day_segments
FEATURES: ["countdischarge", "sumdurationdischarge", "countcharge", "sumdurationcharge", "avgconsumptionrate", "maxconsumptionrate"]