bigdigital / watchdrip

GNU General Public License v3.0
41 stars 13 forks source link

Missing graph #5

Closed twinko closed 1 year ago

twinko commented 1 year ago

Already mentioned on Patreon. Im waiting for the graph to be implemented, This feature is depended on the following ZeppOS issue. https://github.com/zepp-health/zeppos-forum/discussions/22

Just wrote it down to have it documented and for others to follow

Nb-tst commented 1 year ago

Sharing an idea, I don't know if useful. As long as there no way to have a graph, a raw one can be displayed given enough digits ( the more the better ). Playing with the gadgetbridge weather idea I used digits as a graph. Indexing digits for a specific value ( in my case given I used a weather value like humidity, but it should work with everything I guess ), like 4 to this: image

And 5 to this: image

Using a humidity value of 45 I got this ( every bg related value of this watchface is actually provided using weather info ): image

Given that I have few digits to use, in fact 2 as the range is 0-255 and I have to use as much variability as I can, so the first one which could be only 0-1-2 has to be excludes, I choose to represent only three possible values ( in range, high,low ) two times per digits, so to have a 3x3 config which would fill 9 numbers possibilities ( actually I can reduce to 7 because some combination are not useful ). Having more digits to display a better translation could be useful, as every digit could have only one value to display and this could lead to a greater "resolution", say 0-9 to ( one low, 6 types of range, 3 types of high ).

Xdrip provides a new value every 5 min, so having something that resembles a graph for a 60 minutes span would require 12 digits.

twinko commented 1 year ago

@Nb-tst
if u follow the link above to the zeppOS git, u can see that the issue holding back the graph was solves by the zeppOS devs. Artem already saw it so i guess hes working on a solution :) But maybe if he still encounters problems this could be a solution.

4RK4N commented 1 year ago

first we would need that update on our watches. how long thats gonna take who knows. anything from days to months. i fear for the later...

bigdigital commented 1 year ago

I don't think you need to play with weather data on Zepp OS for so simple graphs. It is possible to display a simple graph data even now. For example you can display it with image widgets. Draw dots by using a small dots images, and hi/low lines by using line images.

4RK4N commented 1 year ago

I don't think you need to play with water data on Zepp OS for so simple graphs. It is possible to display a simple graph data even now. For example you can display it with image widgets. Draw dots by using a small dots images, and hi/low lines by using line images.

i also thought about that already. have something like 36 dots images on the x-axis (12 per hour = 3 hours) and move them up or down to produce a graph. graph data is not yet transmitted to the watch, right? at least drawGraph() is empty in watchdrip.js and there is no model for graphData either.

bigdigital commented 1 year ago

the graph functionality on zepp os is already available so i'm closing this issue