make tick 180 minutes and use hour for start_at epg

This commit is contained in:
deflax 2024-01-07 01:42:39 +02:00
parent f2f10e7aa2
commit a6469fe208
2 changed files with 4 additions and 5 deletions

View file

@ -1,17 +1,17 @@
[
{
"name": "IwayHigh",
"start_at": "14:00",
"start_at": "14",
"prio": 0
},
{
"name": "Jungletrain",
"start_at": "22:00",
"start_at": "22",
"prio": 0
},
{
"name": "Anima",
"start_at": "06:00",
"start_at": "6",
"prio": 0
},
{

View file

@ -143,7 +143,7 @@ except Exception as err:
# Schedule tick
scheduler.add_job(func=tick, trigger="interval", seconds=3)
scheduler.add_job(func=tick, trigger="interval", minutes=180)
# Schedule datarhei core api sync
#core_api_sync()
@ -161,7 +161,6 @@ head = fallback
@app.route('/', methods=['GET'])
def root_query():
global head
logger_api.info('api ping')
return jsonify(head)
def create_app():