Only fetch last 100 cadence readings and display as sparklines graph

This commit is contained in:
Peter Stockings
2023-01-30 22:12:10 +11:00
parent cf2dc204e7
commit fa3a8990cf
4 changed files with 16 additions and 6 deletions

View File

@@ -2,8 +2,11 @@
class="mb-4 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl dark:text-white text-center">
{{last_cadence}} rpm</h1>
<div class="lg:flex">
<img type="image/svg+xml" src={{graph_data|safe}} class="lg:w-3/4 sm:w-full h-1/4" />
<div class="flex flex-col items-center">
<div>
{{graph_data|safe}}
</div>
<div class="relative overflow-x-auto">
<table class="lg:w-1/4 sm:w-full text-sm text-left text-gray-500 dark:text-gray-400">