Ajuda para criar app MIT App Inventor que detecta dia/noite via LDR com ESP32-C6 Wi-Fi


ja consegui ! agr o problema e que o ldr ou seja da um valor e nos lux e na % nao muda o valor nem a % sera erro do html?


estame a dar erro essa bara porque?

You forgot to let us know, which error you get?
Also your screenshot is of bad quality, almost unreadable...
My guess is you have to call the javascript method with the value of your gauge?

updateLuzGauge(42)

Which means only calling the value does not help very much, does it?

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

image
ou deve ser assim (algo assim)

this is correct, assuming your javascript method is called updateLuxGauge
unknown

and this is nonsense
unknown2

correct would be to join

updateLuxGauge(
get global LuxCalculado
);

Taifun

a % tem que ir aumentando também progressivamente consoante o valor dos LUX

mas temos de ter atencao que a percentagem e 1 2 3 4 5 6 7 ..... ate 100%

mas porque é que e updateluxgauge(0)?

Well, during initialization you set the gauge to 0, therefore updateLuxGauge(0), later if you have a value, you call that method with that value, for example 42% would be updateLuxGauge(42)

If you understand this and then check your latest screenshots you might realize yourself, what kind of nonsense you are doing

Taifun

image
seria ent assim? para fazer isso se quiser de o a 100 a % e a lux?

unknown

Taifun

blocks (4)
Não sei o que esta eerrado nisto, mas ele nao esta a fazer comunicacao com o xiao ou seja, tenho um codigo ler ldr com esse ip e n le, nem faz o que e pedido, alguem que consiga me dizer se o erro e dos blocos ou do ide?
o ide o codigo n consigo por aqui


I don't know what's wrong with this, but it's not communicating with Xiao. In other words, I have code to read LDR with this IP address, and it doesn't read it or do what's requested. Can someone tell me if the error is in the blocks or the IDE?

I can't figure out the IDE code here.

What is the response content?
Is any error message displayed?
Remember, you once got it running in post #52

Taifun