Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jan 2022
    Posts
    2

    Random number for alarms?

    If I give a CLI command defining a new alarm:
    "bd:a5:a9:9b:9d:df alarm add dow:1 enabled:1 playlist:file://some/playlist.m3u time:9000<LF>"

    I get a response:
    "bd:a5:a9:9b:9d:df alarm add dow:1 enabled:1 playlist:file://some/playlist.m3u time:9000 id:eaf39<LF>"

    Is the id (in this case eaf39) a random number? Is it possible to change the id to a fixed number?

    Peter

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,776

    Random number for alarms?

    > Is the id (in this case eaf39) a random number? Is it possible to change
    > the id to a fixed number?


    It's not random, but (part of) a hash, based on the current time,
    hostname, process ID etc. to make sure it's unique. What do you mean by
    "fixed number"? A simple integer value?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •