| time | value |
2:30 1
3:00 1
3:30 1
4:00 1
4:30 1
...
...
...
0:00 1
0:30 1
1:00 1
1:30 1
2:00 1
from datetime import datetime, timedelta
from random import randint
t = datetime.now().replace(minute=0, second=0, microsecond=0)
list_event = [(t + timedelta(minutes=30 * i)).time().isoformat() for i in range(48)]
values = [randint(1, 100) for _ in range(48)]
records = [dict(zip(('time', 'value'), value)) for value in zip(list_event, values)]