Compare commits

...

3 Commits

Author SHA1 Message Date
84b5bbe325 python 3.11
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2025-02-11 21:59:14 +01:00
a42254cf95 import kaleido, 2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2025-02-11 21:21:14 +01:00
3d05ea5d28 import kaleido
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2025-02-11 19:58:08 +01:00
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM python:3.12-alpine3.21
FROM python:3.11-alpine3.21
ENV REDIS_URL=""
ENV SECRET_KEY=""

View File

@ -8,6 +8,8 @@ import json
import os
import plotly.express as px
import plotly.graph_objects as po
import plotly.io as pio
import io
import pandas as pd
import psycopg
import sqlalchemy
@ -159,7 +161,7 @@ def ntpserver():
select time_bucket('5 minutes', time) as bucket,
device,
avg(cast(values->'rootdisp'->>'value' as float)) as rootdisp,
avg(cast(values->'stratum'->>'value' as int)) as stratum
max(cast(values->'stratum'->>'value' as int)) as stratum
from measurements
where time >= date_trunc('day', now()) AND time < date_trunc('day', now()) + '1 day'::interval and
application = 'TSM' and attributes->>'Label' = 'david'
@ -206,7 +208,7 @@ def ntpserver():
if __name__ == '__main__':
app.run(port=8080)
app.run(host="0.0.0.0", port=8080)
else:
exposed_app = ProxyFix(app, x_for=1, x_host=1)