Chart.js persitant time graph example

Place code snippets and demo code here
RonS
Posts: 115
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 64 times
Been thanked: 23 times

Re: Chart.js persitant time graph example

Post by RonS »

many thanks,

does anyone see a way to output a current output of temperature in numbers or txt - or some other value - before The Canvas starts?
I tried "table" and also "div" after the "title" line - nothing worked

thanks Ron
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
BeanieBots
Posts: 345
Joined: Tue Jun 21, 2022 2:17 pm
Location: South coast UK
Has thanked: 183 times
Been thanked: 112 times

Re: Chart.js persitant time graph example

Post by BeanieBots »

I think you are after TEXTBOX$.
Have a look in the help file for full details.
Simply add TEXTBOX$(Var$) to your html and then populate Var$ with your value. Also add autorefresh after the CLS line.
(you will need to convert numbers to string.)
Annex then does all the hard work of displaying your value on the page.
User avatar
cicciocb
Site Admin
Posts: 2059
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 439 times
Been thanked: 1358 times
Contact:

Re: Chart.js persitant time graph example

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Tue Aug 01, 2023 8:14 am I think you are after TEXTBOX$.
Have a look in the help file for full details.
Simply add TEXTBOX$(Var$) to your html and then populate Var$ with your value. Also add autorefresh after the CLS line.
(you will need to convert numbers to string.)
Annex then does all the hard work of displaying your value on the page.
You can use Textbox$ directly with a numeric variable ex. Textbox$(var) so the conversion is not required
RonS
Posts: 115
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 64 times
Been thanked: 23 times

Re: Chart.js persitant time graph example

Post by RonS »

many thanks to you both - the result:
image.png
"autorefresh" only works correctly when the same variable is in the "GETVALUE" subroutine too... :?

now we only need the calculation for the breeding days :)
PS: Got some little help from ChatGPT 8-)
You do not have the required permissions to view the files attached to this post.
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
RonS
Posts: 115
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 64 times
Been thanked: 23 times

Re: Chart.js persitant time graph example

Post by RonS »

the result :D - im happy - but got a new idea - to insert a livecam picture :))) - AnnexBasic is great - thanks
image.png
as attachment the new code:
You do not have the required permissions to view the files attached to this post.
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
RonS
Posts: 115
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 64 times
Been thanked: 23 times

Re: Chart.js persitant time graph example

Post by RonS »

And this is how you determine if a code works
DSCI0470.JPG
have a nice day :D
You do not have the required permissions to view the files attached to this post.
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
Post Reply