mas la esta seria muitos blocos else if eu ja tinha feito como no link e ficaria a mesma logica digo eu?

e isto com a percentagem sabe como se faz no codigo? imaginemos o ldr da o valor 10 supomos que equivale a 10% essa risca preta firaria apenas 10% pintada de azul e dizia 10% e para os outros igual

isto e a app que tenho supomos que o valor do ldr é 10 o estado do dia tem de ser c na % estava a falr dessa imagem e na luminosidade igual.
os outros 3 pontos tensao corrente etc isso sei fazer de cor, outro ponto conseguiria me ajudar a emblezar melhor esta app de acordo com isso ou seja isto e monitorizacao do estado do dia
read again my answer and understand the difference in what you were doing compared to my suggestion
do some percent calculation... it is very simple: your value x multiplied by 10 divided by 100 is the value you are looking for
Taifun
em relacao aquilo do circulo sabe como se faz?
your large if statement could be simplified like this
this will work if your images follow the same structure, i.e. 10percent.png, 20percent.png, etc
Taifun
os valores tem de ser actuais ou seja progressivos de acordo com o valor do ldr, em tempo real basicamente
outra questao como e que funcionaria usar o https no mit?
Taifun

nao sei como vou por isso a funcionar e que supostamente seria assim mas no telemovel nao inicia
I don't know how to get this to work; it's supposed to work like this, but it won't start on my phone.
mas atencao supomos o ldr le de 0 a 1023, se o ldr ler 100 a percentagem sera x, mas o gauge tera de mudar automaticamente de acordo com o ldr.
eu ja consegui criar a pagina html e por nos assets, mas conitnua sem aparecer nada
To access a html page in the assets use the following path to be able to test with the companion app
http://localhost/percent_gauge.html
Use the companion app and Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by
Taifun.
faltara mais blocos no gotext eu sei ja tinha feito isso so que n estava a funcinoar o wevier ent desidi remover para testar e n deu em nada a mesma
era isto mas automatico de acordo com o valor do ldr
It looks like you got something running. .
So no matter of the value of your global variable, you always set the image to 1.jpg? Does this make sense?
Taifun
Nao!, eu vou por outra imagem mas a minha questao era da progress bar aquilo do html que lhe falei, pq isso ja tinha visto consigo e estava a dar!!, so quero que me diga os blocos que serao necessarios para isto tudo funcionar obrigado
Sorry, I'm not here to write the app for you
You are welcome to try something and if you got stuck, then to provide a screenshot of your blocks to get help from the community
Taifun







