I’d like to use a needle image and use the [BATT_TEM_F] tag to rotate in order to show on a gauge.
without being able to test battery temperature in the run window, how do i figure out the right rotation formula?
A battery should not exceed 45 Centigrade or 113 Fahrenheit so 32 - 122 is 4 degrees rotation for ever degree temp but you have to subtract 32 to start at zero). You also have to know where you want to start it, a half circle gauge or a full circle.
I think it is easier to do 0 - 50 C (7.2 degrees rotation for ever degree temp) as the index doesn’t care if it is F or C the dial will point to the same position.
Ron
Samsung Developer Relations
thank you very much, i appreciate your math.
is there any way to view this in the run window just to check my formulas? or is it just trial and error sending it to my watch and checking it there?
@RickyGrafixWF To test your Dial you could substitute the battery power slider data divided by two , would give you 0 to 50 for a simulation .
I would first enter the tag into a text field and run it on watch to see what kind of real world readings the tag returns
i’ve used it as text before and it works. not sure how accurate it is but it works. i’ve seen it as low as 80F and as high as 103F on the charger. it’s usually below body temp on my wrist.
Hi, then u use that for your min to max bat temp.
I caculate accordingly