Page 1 of 6

Temperature Announcement

Posted: 10 Apr 2017 16:30
by vsolivie
Hello good morning we are trying to make the temperature and relative humidity of the air work and we are doing so, but it does not work

1ยบ attempt LoadTrack, C:\weather\${weathercurrenttemperature}.mp3, Count=1, Options=SuppressAddHistory, SuppressHistoryCheck

Mp3s are in this format
0.0
1.0
2.0.
3.0

10.0
11.0
12.0
etc... etc...

How should I proceed to make this work?

Re: Temperature Announcement

Posted: 10 Apr 2017 16:30
by radio42
Ahh, sorry, but with the v3 it is not working anymore!

So why do you use v3 ???
As you have not purchased a license yet, you must use the Demo Version anyhow!
So why don't you use the official and latest v4 Demo to test it?!

Re: Temperature Announcement

Posted: 10 Apr 2017 17:05
by radio42
Maybe you first use this command to see, what exactly ${weathercurrenttemperature} resolves to in your case:

Code: Select all

SHOW_ALERT_WINDOW Weather Temperature|${weathercurrenttemperature}
In my case this reveals, that the temperature is given as a whole number, e.g. 10.
If so, you might need to name your files:
1.mp3
2.mp3
...
10.mp3
...

(P.S: Please submit these sort of posts in the future into the "Question & Answers" topic.)

Re: Temperature Announcement

Posted: 10 Apr 2017 20:50
by vsolivie
Forgive me for my ignorance but I do not understand is this the code?
SHOW_ALERT_WINDOW Weather Temperature|${weathercurrenttemperature}
capture-20170410-154809.png
capture-20170410-154809.png

Re: Temperature Announcement

Posted: 10 Apr 2017 21:51
by radio42
No of course NOT!
You can just use that control-command (e.g. in a User Command) to test what the macro ${weathercurrenttemperature} does effectively returns.
You assumed, that it would deliver a number with a decimal point, but I assume, it only delivers a single integer number.
Thus you need to correct your mp3 file names!

Your "LoadTrack" entry should still be:
C:\weather\${weathercurrenttemperature}.mp3

Re: Temperature Announcement

Posted: 11 Apr 2017 03:46
by vsolivie
Hello good night what could I be doing wrong?
C:\weather\${weathercurrenttemperature}.mp3
capture-20170410-223243.png

Rename the files as you told me but something is still wrong
capture-20170410-222950.png
capture-20170410-222950.png (7.64 KiB) Viewed 5657 times
Where do you think I'm wrong? :ugeek:
C:\weather\${weathercurrenttemperature}.mp3
capture-20170410-223149.png

Re: Temperature Announcement

Posted: 11 Apr 2017 07:52
by radio42
What FileName is scheduled when you run the script in a playlist?
Have you checked this?

And why did you specify an 'Archive' playlist? This can be removed I guess, as well as the 'Reload' option.

Re: Temperature Announcement

Posted: 11 Apr 2017 15:47
by vsolivie
So it is not necessary to mark nor reloading nor the archive path? :ugeek:

Re: Temperature Announcement

Posted: 11 Apr 2017 17:26
by radio42
No.
So did you test your script inside a playlist (just right-click into a playlist and select 'Add -> 1 random Track -> Script -> yourscriptname)...
And what filename was resolved to it?!

Re: Temperature Announcement

Posted: 11 Apr 2017 22:31
by vsolivie
Hi, good afternoon, I may not have been very clear in my question, but what I need is to inform the temperature and the reactive humidity of the air automatically, for example I want to reproduce real weather conditions :oops: :mrgreen: