• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Alias on 1-wire fails

    Official EVOK API
    2
    5
    1473
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      alydersen last edited by

      Hi,

      I'm on raspbian stretch and evok 2.0.7. When I try to use the web interface to set an alias on a 1-wire temperature sensor, I get a JS-alert saying:

      Operation failed with the following error: set() got an unexpected keyword argument 'alias'
      

      Any way I could set an alias in the evok.conf file?

      BR,
      Andreas

      1 Reply Last reply Reply Quote 0
      • T
        TomasKnot last edited by TomasKnot

        Hi @alydersen,

        Unfortunately setting an alias on 1Wire sensors (though not 1Wire extensions, which is why the option of aliasing 1Wire devices exists in the first place) is not possible, as they are detected dynamically, and lack proper device names which could be aliased in the first place.

        This is not the first request for this feature, but right now we unfortunately have no plans of adding it. The solution I would recommend to you is to rename the device in your client website/application instead.

        1 Reply Last reply Reply Quote 0
        • A
          alydersen last edited by

          Thanks @TomasKnot. On setting aliases on other ports there seems to be an evok-alias.yaml file, but I can't seem to find any documentation on that. I would really like to have the alias survive a reinstall, so that yaml file would be handy. Any docs you could point me in in the direction of?

          T 1 Reply Last reply Reply Quote 0
          • T
            TomasKnot @alydersen last edited by TomasKnot

            Hi @alydersen,

            The format is quite simple; you can use the GUI to set the alias to test it out. The alias is url-encoded in the following manner:

            • spaces are converted into underscores
            • an al_ prefix is prepended to the alias
            • other url-invalid characters are not allowed

            The web GUI then performs the reverse of this process.

            In particular, the prefix must be

            al_
            

            exactly in order for the alias to be accepted.

            1 Reply Last reply Reply Quote 0
            • A
              alydersen last edited by

              For anybody else looking for the evok-alias.yaml file, I found it under /var/evok/evok-alias.yaml

              Andreas

              1 Reply Last reply Reply Quote 0
              • First post
                Last post