Compare commits

..

4 Commits

Author SHA1 Message Date
cbb9ff7a23 kaleido, 3
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/tag/woodpecker Pipeline failed
2025-02-11 22:13:57 +01:00
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
3 changed files with 6 additions and 4 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

@ -16,7 +16,7 @@ idna==3.10
importlib_metadata==8.6.1
itsdangerous==2.2.0
Jinja2==3.1.5
kaleido==1.0.0rc0
kaleido==0.2.1
loguru==0.7.3
MarkupSafe==3.0.2
msgspec==0.19.0

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)