BUG? Using text to speach updates global_variabel

Post your questions and help other users.

Moderator: Martin

Post Reply
Frejoh466
Posts: 10
Joined: 30 Apr 2017 18:38

BUG? Using text to speach updates global_variabel

Post by Frejoh466 » 05 Jul 2017 06:14

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?
flow_Get_weather_20170705_075937.xml
I removed my API key
(6.71 KiB) Downloaded 809 times
London.xml
London weather (not my country) for testing.
(10.88 KiB) Downloaded 771 times

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: BUG? Using text to speach updates global_variabel

Post by Martin » 06 Jul 2017 19:55

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

Frejoh466
Posts: 10
Joined: 30 Apr 2017 18:38

Re: BUG? Using text to speach updates global_variabel

Post by Frejoh466 » 09 Jul 2017 09:43

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.

Post Reply