make tick 180 minutes and use hour for start_at epg
This commit is contained in:
parent
f2f10e7aa2
commit
a6469fe208
2 changed files with 4 additions and 5 deletions
|
@ -1,17 +1,17 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "IwayHigh",
|
"name": "IwayHigh",
|
||||||
"start_at": "14:00",
|
"start_at": "14",
|
||||||
"prio": 0
|
"prio": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Jungletrain",
|
"name": "Jungletrain",
|
||||||
"start_at": "22:00",
|
"start_at": "22",
|
||||||
"prio": 0
|
"prio": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Anima",
|
"name": "Anima",
|
||||||
"start_at": "06:00",
|
"start_at": "6",
|
||||||
"prio": 0
|
"prio": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -143,7 +143,7 @@ except Exception as err:
|
||||||
|
|
||||||
|
|
||||||
# Schedule tick
|
# 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
|
# Schedule datarhei core api sync
|
||||||
#core_api_sync()
|
#core_api_sync()
|
||||||
|
@ -161,7 +161,6 @@ head = fallback
|
||||||
@app.route('/', methods=['GET'])
|
@app.route('/', methods=['GET'])
|
||||||
def root_query():
|
def root_query():
|
||||||
global head
|
global head
|
||||||
logger_api.info('api ping')
|
|
||||||
return jsonify(head)
|
return jsonify(head)
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
|
|
Loading…
Reference in a new issue