Hi,
Have you tried listing all the possible file names in advance? Something
like:
hour_one_file = "/path/to/file/at/1h.mp3"
hour_two_file = "/path/to/file/at/2h.mp3"
....
And then:
switch(...[({1h}, single(hour_one_file))],...)
Hope that makes sense..
Romain
2017-07-28 7:32 GMT-05:00 Oriol Gómez <[email protected]>:
> Hello everyone!
> Would it be possible to get the current hour and minute on a switch
> statement?
> I'm trying to play a file every hour but this file changes depending
> on the hour.
> Maybe by using switches and get_process_lines?
> Is there another way to achieve this? This way seems a bit dirty.
>
> Thank you!
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users