MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. eliah
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 7
    • Best 0
    • Controversial 0
    • Groups 0

    eliah

    @eliah

    0
    Reputation
    78
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location Moscow

    eliah Unfollow Follow

    Latest posts made by eliah

    • Alert module no longer accepts HTML for notifications

      Platform: Raspberry PI 4
      Node Version: 10.24.1
      MagicMirror Version: 2.18.0

      Description: Following the most recent update of MM, it seems that alert module does not accept HTML tags in the notification text, they are shown in output message as text.

      Expected Results: Notification text should be shown formatted as HTML.

      Actual Results: HTML tags are visible in the output.

      Additional Notes: Provide any other relevant notes not previously mentioned (optional)

      posted in Bug Hunt
      E
      eliah
    • RE: MMM-MyCalendar

      Hi @j-e-f-f,

      Thank you for the great module! 🙂
      I have added an option to have a calendar label displayed before the event text as it looks more intuitive and does not require to remember colors :). If you are ok to have this added to your code I can either send the updates to you or create a pull request in github.

      Here is the screenshot (I use MM as a picture frame, not a mirror, with bright colored image, that’s why it is black on white in my case):
      alt text

      posted in Utilities
      E
      eliah
    • RE: MMM-Sonos - Display what is currently playing on your Sonos network

      @tbouron said in MMM-Sonos - Display what is currently playing on your Sonos network:

      I assume you are talking about the second line for artist and album right? I already have sort of partial fix for that (not displaying the album if null). I could do the same thing for the artist. When you are using airplay, is the first line displayed correctly? What does it say? I unfortunately cannot know if something comes through airplay or not, it’s all unified through the Sonos library.

      I checked that more. And it looks if I share a song from iTunes via AirPlay, it provides all necessary information, so the data is correct. But if I use YouTube, then it is empty. Song name is just empty, and both singer and album names are displayed as (null).

      That would be a bug in the underlying Sonos library. I just listening for events and display whatever comes from there.

      That’s bad. 😞 As I can see, sometimes it just gets crazy. Shows me up instances of the same, when only one group plays. Looks like the library behind node-http-sonos-api required for another modules of the same type is more stable currently.

      The Sonos library doesn’t give me this information unfortunately so that won’t be possible to do for now.

      I believe it gives in fact. As I can see from Sonos module, its class SonosGroup contains Members. I believe it can be used to count number of members in the current group, and if there is more than one, not output the volume. Alternatively, I believe it should be possible to extract exact names of members from the Group to construct a more user-friendly custom name to use in metadata (i.e. not “Kitchen+2”, but “Kitchen, Corridor, Bathroom”).

      posted in Entertainment
      E
      eliah
    • RE: MMM-Sonos - Display what is currently playing on your Sonos network

      @tbouron It looks like the issue is now fixed, no constant updates anymore! Thank you. 🙂
      Some more issues I noticed:

      1. Value for song length minutes has no leading zero, so when a song’s length is 2:04 it shows 2:4.
      2. If any of speakers are used directly by AirPlay, it shows (null) (null). Maybe it’s better to ignore AirPlay mode if no information is available for it?
      3. Not sure if it is a bug of a module or Sonos library behind it, but for some reason the group names are sometimes become incorrect. For example, if I start a playlist on three speakers in the same group, first it shows something like “Kitchen+2” (and that’s correct), but after some time it becomes just “Kitchen” (same 3 speakers are playing).
        And additionally, if more than one speaker is playing in the same group, each of them can have its own volume. In this case the single volume indicator that your module outputs to the screen becomes useless.
      posted in Entertainment
      E
      eliah
    • RE: MMM-Sonos - Display what is currently playing on your Sonos network

      sure, I can test if you have any ideas why it is happening.

      posted in Entertainment
      E
      eliah
    • RE: MMM-Sonos - Display what is currently playing on your Sonos network

      @tbouron,
      In my case it seems that the script always consider that groups have changed, but that’s not true in fact. The log is full of repeating lines like that:

      [14:18:03.026] [LOG]    Found new (or updated) group "Kitchen + 1" on host "x.x.x.34"
      [14:18:03.029] [LOG]    Registering listeners on group "Kitchen + 1" (host "x.x.x.34")
      [14:18:03.281] [LOG]    [Group Kitchen + 1 - x.x.x.34] Track changed to "Pokerface" by "The Baseballs"
      [14:18:03.289] [LOG]    [Group Kitchen + 1 - x.x.x.34] Play state change to "paused"
      [14:18:03.353] [LOG]    [Group Kitchen + 1 - x.x.x.34] Volume changed to "13"
      [14:18:03.361] [LOG]    [Group Kitchen + 1 - x.x.x.34] Group is unmuted
      [14:18:07.847] [LOG]    Found new (or updated) group "Bathroom" on host "x.x.x.39"
      [14:18:07.849] [LOG]    Registering listeners on group "Bathroom" (host "x.x.x.39")
      [14:18:07.852] [LOG]    Found new (or updated) group "Kids’ Room" on host "x.x.x.40"
      [14:18:07.854] [LOG]    Registering listeners on group "Kids’ Room" (host "x.x.x.40")
      [14:18:08.045] [LOG]    [Group Kids’ Room - x.x.x.40] Track changed to "Durch den Monsun" by "Annett Louisan"
      [14:18:08.053] [LOG]    [Group Kids’ Room - x.x.x.40] Play state change to "paused"
      [14:18:08.081] [LOG]    [Group Bathroom - x.x.x.39] Track changed to "Umbrella" by "The Baseballs"
      [14:18:08.088] [LOG]    [Group Bathroom - x.x.x.39] Play state change to "paused"
      [14:18:08.157] [LOG]    [Group Kids’ Room - x.x.x.40] Volume changed to "22"
      [14:18:08.163] [LOG]    [Group Kids’ Room - x.x.x.40] Group is unmuted
      [14:18:08.213] [LOG]    [Group Bathroom - x.x.x.39] Volume changed to "15"
      [14:18:08.216] [LOG]    [Group Bathroom - x.x.x.39] Group is unmuted
      [14:18:13.066] [LOG]    Found new (or updated) group "Kitchen + 1" on host "x.x.x.34"
      [14:18:13.069] [LOG]    Registering listeners on group "Kitchen + 1" (host "x.x.x.34")
      [14:18:13.507] [LOG]    [Group Kitchen + 1 - x.x.x.34] Track changed to "Pokerface" by "The Baseballs"
      [14:18:13.514] [LOG]    [Group Kitchen + 1 - x.x.x.34] Play state change to "paused"
      [14:18:13.593] [LOG]    [Group Kitchen + 1 - x.x.x.34] Volume changed to "13"
      [14:18:13.597] [LOG]    [Group Kitchen + 1 - x.x.x.34] Group is unmuted
      [14:18:18.029] [LOG]    Found new (or updated) group "Kids’ Room" on host "x.x.x.40"
      [14:18:18.032] [LOG]    Registering listeners on group "Kids’ Room" (host "x.x.x.40")
      [14:18:18.036] [LOG]    Found new (or updated) group "Bathroom" on host "x.x.x.39"
      [14:18:18.040] [LOG]    Registering listeners on group "Bathroom" (host "x.x.x.39")
      [14:18:18.277] [LOG]    [Group Kids’ Room - x.x.x.40] Track changed to "Durch den Monsun" by "Annett Louisan"
      [14:18:18.285] [LOG]    [Group Kids’ Room - x.x.x.40] Play state change to "paused"
      [14:18:18.309] [LOG]    [Group Bathroom - x.x.x.39] Track changed to "Umbrella" by "The Baseballs"
      [14:18:18.318] [LOG]    [Group Bathroom - x.x.x.39] Play state change to "paused"
      [14:18:18.408] [LOG]    [Group Kids’ Room - x.x.x.40] Volume changed to "22"
      [14:18:18.414] [LOG]    [Group Kids’ Room - x.x.x.40] Group is unmuted
      [14:18:18.434] [LOG]    [Group Bathroom - x.x.x.39] Volume changed to "15"
      [14:18:18.437] [LOG]    [Group Bathroom - x.x.x.39] Group is unmuted
      [14:18:23.059] [LOG]    Found new (or updated) group "Kitchen + 1" on host "x.x.x.34"
      [14:18:23.063] [LOG]    Registering listeners on group "Kitchen + 1" (host "x.x.x.34")
      [14:18:23.248] [LOG]    [Group Kitchen + 1 - x.x.x.34] Track changed to "Pokerface" by "The Baseballs"
      [14:18:23.255] [LOG]    [Group Kitchen + 1 - x.x.x.34] Play state change to "paused"
      [14:18:23.353] [LOG]    [Group Kitchen + 1 - x.x.x.34] Volume changed to "13"
      [14:18:23.359] [LOG]    [Group Kitchen + 1 - x.x.x.34] Group is unmuted
      [14:18:27.955] [LOG]    Found new (or updated) group "Kids’ Room" on host "x.x.x.40"
      [14:18:27.959] [LOG]    Registering listeners on group "Kids’ Room" (host "x.x.x.40")
      [14:18:27.965] [LOG]    Found new (or updated) group "Bathroom" on host "x.x.x.39"
      [14:18:27.969] [LOG]    Registering listeners on group "Bathroom" (host "x.x.x.39")
      [14:18:28.311] [LOG]    [Group Kids’ Room - x.x.x.40] Track changed to "Durch den Monsun" by "Annett Louisan"
      [14:18:28.316] [LOG]    [Group Kids’ Room - x.x.x.40] Play state change to "paused"
      [14:18:28.343] [LOG]    [Group Bathroom - x.x.x.39] Track changed to "Umbrella" by "The Baseballs"
      [14:18:28.351] [LOG]    [Group Bathroom - x.x.x.39] Play state change to "paused"
      [14:18:28.430] [LOG]    [Group Kids’ Room - x.x.x.40] Volume changed to "22"
      [14:18:28.434] [LOG]    [Group Kids’ Room - x.x.x.40] Group is unmuted
      [14:18:28.471] [LOG]    [Group Bathroom - x.x.x.39] Volume changed to "15"
      [14:18:28.474] [LOG]    [Group Bathroom - x.x.x.39] Group is unmuted
      
      

      And as I said before, actually all speakers are paused so nothing is really playing.

      posted in Entertainment
      E
      eliah
    • RE: MMM-Sonos - Display what is currently playing on your Sonos network

      Hi @tbouron,
      Great idea to simplify SONOS integration installation!
      Your module works for me, and I like that it updates the data almost instantly comparing to other modules that do it on schedule.
      But in my case your module constantly thinks that something have updated in SONOS groups, even if nothing is currently being played. So it constantly updates the groups, sets listener, causing high CPU utilization by Electron.

      posted in Entertainment
      E
      eliah