added omf translator as scheduled task - every 15 seconds
@@ -117,6 +117,7 @@ INSERT INTO foglamp.statistics ( key, description, value, previous_value )
insert into foglamp.scheduled_processes (name, script) values ('device', '["python3", "-m", "foglamp.device"]');
insert into foglamp.scheduled_processes (name, script) values ('purge', '["python3", "-m", "foglamp.data_purge"]');
insert into foglamp.scheduled_processes (name, script) values ('stats collector', '["python3", "-m", "foglamp.update_statistics_history"]');
+insert into foglamp.scheduled_processes (name, script) values ('omf translator', '["python3", "-m", "foglamp.translators.omf_translator"]');
-- Start the device server at start-up
insert into foglamp.schedules(id, schedule_name, process_name, schedule_type,
@@ -135,3 +136,9 @@ insert into foglamp.schedules(id, schedule_name, process_name, schedule_type,
schedule_time, schedule_interval, exclusive)
values ('2176eb68-7303-11e7-8cf7-a6006ad3dba0', 'stats collector', 'stats collector', 3,
NULL, '00:00:15', true);
+
+-- Run the omf transfalor every 15 seconds
+insert into foglamp.schedules(id, schedule_name, process_name, schedule_type,
+schedule_time, schedule_interval, exclusive)
+values ('2b614d26-760f-11e7-b5a5-be2e44b06b34', 'omf translator', 'omf translator', 3,
+NULL, '00:00:10', true);
