penso que agora nao falte nada, mas la esta
Looks good
the only thing is switching screens correctly...
Taifun
ent quer dizer que posso ja testar? depois isso da tela do gerente eu ja tenho a SCREEN1 faco nela ent certo?
pq eu tenho 4 ecras, 1 tipo de apresentacao, outro de projeto, outro de sobre e outro de material. mas posso aplicar essa logica tbm
testei a app e nao me aparece os valores dele, nem o estado do dia da me sempre erro 1101
consegui e deu, so tem um roblema da sempre 1023 e noite , constantemente
acredito que agr seja problema de ligacao, o meu ldr e de dois pinos mas estou a ligar ele como sei, mas penso que seja por a resistencia n seja de 10k
alguem sabe como aplicar so dizer o audio apenas 1x ou so quando muda
ou seja quero que esteja de dia e oica esta de dia mudou diz esta de tarde.... mas n quero que esteja esta de dia esta de dia... so quero que diga 1x
Does anyone know how to apply it to just say the audio only once or only when it changes?
In other words, I want it to be daytime and the audio is daytime and it has changed to say it's afternoon... but I don't want it to be daytime, it's daytime... I just want it to say it once.
each time you receive a new value, the blocks in Web.GotText get executed
one player component would have been suficient, just set the source of the player accordingly to play the day afternoon or night sound before playing
Taifun
To prevent the playing of the same sound consecutively, remember the previous sound file name somewhere, and compare it against the new sound file name when you want to play a sound.
If the sound file names are different, play the new sound, otherwise don't play the sound.
Save the new sound file name for next time.
You can also add a cooldown period, if you save the last Instant you played a sound.
Don 't play the sound if it is not yet whatever cooldown period you want past the last time you played a sound.
Clock1.SystemTime (milliseconds from 1970) has the easiest math.
pode me dizer como ficaria nos blocos entao se faz favor
como me aconselha a fazer ent? deixei foto em baixo se me pudesse deixar um exemplo de como teria de ficar agradeco
ou seja na foto que deixo sao so executados uma vez certo? ou e tipo um loop repetidamente?
You lack of some basic understanding how things are working
Doing the tutorials would help
Each time you call Web.Get, the corresponding Web.GotText will be executed
And as you are calling it in a Clock.Timer event, it gets executed at each timer interval
Please understand the difference between MinimumInterval and Source, the documentation of the Sound component is here Media
MinimumInterval
Specifies the minimum interval required between calls toPlay, in milliseconds. Once the sound starts playing, all furtherPlaycalls will be ignored until the interval has elapsed.
Source
The name of the sound file. Only certain formats are supported. See Supported media formats | Android media | Android Developers.
Taifun
pode me ajudar a por aquela meio criculo para a percentagem sfv sendo que o ldr le de 0 a 1023 e digame tbm como por em % e o estado do dia, deixei aqui na pagina isso, se me puder ajuar agradeco, pois nao estou a conseguir
pode me ajudar a por aquela meio criculo para a percentagem sfv sendo que o ldr le de 0 a 1023 e digame tbm como por em % e o estado do dia, deixei aqui na pagina isso, se me puder ajuar agradeco, pois nao estou a conseguir. mande me o meu projeto aia com isso sfv ele encontrase aqui no grupo
supomos que quero por por exemplo a percentagem de 10 em 10. imaginemos ldr le entre 1 a 10 esta 10% teria de ser assim?
As a start use only one if - elseif - elseif - etc. statement
Learn to use rhe mutator
http://www.appinventor.mit.edu/explore/ai2/support/concepts/mutators
If valor_LDR <= 10
Then set image to 10.png
Else if valor_LDR <= 20
Then set image to 20.png
Else if valor_LDR <= 30
Then set image to 30.png
Else if ...
Later you could simplify this by using the ceiling block and some logic to create the name of the image to display dynamically
Taifun
mas la esta seria muitos blocos else if eu ja tinha feito como no link e ficaria a mesma logica digo eu?


