So I have a problem that boggles my mind, and I can't find out why this is happening.
So the first flow,
Get weather,
starts every day at 5:00
Check wifi, if off, turn it on.
Download the weather information
and then set the global variabels.
end
Second flow,
Morning long weather global,
At alarm
store audio
set audio level to 2
speech output
sleep 2
speech output
restore audio
end
Seems simple right? The problem is that at "Morning long weather global" the first speech output says the old value, while the second speech output says the new value (they are a copy). So the speech output is updating the variabel.
If I delete all the global variabels right after start in "Get Weather", the first speech says Null and the second say the right value. It also might only happen if the wifi is off.
So can someone tell me how the Text to speech updates the global variabel?
BUG? Using text to speach updates global_variabel
Moderator: Martin
Re: BUG? Using text to speach updates global_variabel
Hi,
I don't see why the first speech output should use the old value and the second one the new value except when the values of the variables change in between. Is there a chance that the flows 'Get weather' and 'Morning long weather global' run at the same time, maybe an alarm registered for 5am?
Could you please post a log after you have reproduced the issue?
Regards,
Martin
I don't see why the first speech output should use the old value and the second one the new value except when the values of the variables change in between. Is there a chance that the flows 'Get weather' and 'Morning long weather global' run at the same time, maybe an alarm registered for 5am?
Could you please post a log after you have reproduced the issue?
Regards,
Martin
Re: BUG? Using text to speach updates global_variabel
Ah, I do have a alarm at 5:00 and the "Get weather" does start at 5:00.
That's probably the problem, strange that I didn't see that. I change it to 4:30 and that should solve the problem, otherwise I'll report back with a log.
Thanks for the help.
That's probably the problem, strange that I didn't see that. I change it to 4:30 and that should solve the problem, otherwise I'll report back with a log.
Thanks for the help.