Temperature Announcement

You have a question or need an advice about how to do something? Ask it here!
vsolivie
Posts: 45
Joined: 30 Dec 2016 01:34
Temperature Announcement

Post 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?
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Temperature Announcement

Post 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?!
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Temperature Announcement

Post 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.)
vsolivie
Posts: 45
Joined: 30 Dec 2016 01:34
Re: Temperature Announcement

Post 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
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Temperature Announcement

Post 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
vsolivie
Posts: 45
Joined: 30 Dec 2016 01:34
Re: Temperature Announcement

Post 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 10333 times
Where do you think I'm wrong? :ugeek:
C:\weather\${weathercurrenttemperature}.mp3
capture-20170410-223149.png
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Temperature Announcement

Post 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.
vsolivie
Posts: 45
Joined: 30 Dec 2016 01:34
Re: Temperature Announcement

Post by vsolivie »

So it is not necessary to mark nor reloading nor the archive path? :ugeek:
Attachments
capture-20170411-104250.png
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Temperature Announcement

Post 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?!
vsolivie
Posts: 45
Joined: 30 Dec 2016 01:34
Re: Temperature Announcement

Post 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:

Post Reply