Lovelace: Upcoming Media Card


#227

I’m not sure what you mean by “had to add a list”. Do you mean that you had to add movies to Radarr to get anything to appear?

Saw your feature request on github and replied there, but I’ll mention it here too:

I would consider adding click to view trailer if others are interested, but it seems like it would just cause a good bit of accidental clicks taking you away from home assistant.


#228

To get the upcoming movies u have to add IMDb or something in list

What about the plot ? Short description of the movie by long press?maybe in this new window there could be a trailer icon to click


#229

Radarr is a tool for automatically downloading movies. This card was made to show what movies are “upcoming” or downloading soon. If you don’t add anything, you have nothing upcoming. There’s quite a bit of information on how to get radarr up and running out there already, including on their site.

A more info window on click is doable, but not high on my list at the moment. Will definitely look into it though. Currently working on a Plex recently added component for the card.


#230

Anyone else getting this in log every minute or is it a problem on my part only?

Update of sensor.radarr_upcoming_media is taking over 10 seconds


#231

I get that with all my media players not just radarr.


#232

But this is not a media player. But you do get it with the upcoming media card for radarr?


#233

Addressing this in the next update, should help. It’s because the radarr component uses themoviedb’s api to supplement what radarrs api supplies. I imagine you may still get the error occasionally, but not nearly as frequent.


#234

Updates:

Be sure to restart after updating components and read the readme’s of the updated and new components on their github pages!

New component Plex!!!

Displays recent additions to your Plex library. Be sure to check out the readme on this one, there is some important information on how images are handled with this component.

Radarr

  • Added max item config
  • Check’s api data against last updated to only update when needed.
  • Calculation of days between now and airdate is now time zone aware.

The first 2 changes should help with the “taking over 10 seconds” errors. I suggest setting max in the components configuration to the amount of items you show in the card.

Sonarr

  • Added max item config
  • Calculation of days between now and airdate is now time zone aware.

#235

tried to configure it but got:

plex_recently_added: Error on device update!
    Traceback (most recent call last):
      File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
        await entity.async_device_update(warning=False)
      File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
        await self.hass.async_add_executor_job(self.update)
      File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
        yield self  # This tells Task to wait for completion.
      File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
        future.result()
      File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
        raise self._exception
      File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
        result = self.fn(*self.args, **self.kwargs)
      File "/home/homeassistant/.homeassistant/custom_components/sensor/plex_recently_added.py", line 201, in update
        os.makedirs(directory)
      File "/usr/lib/python3.5/os.py", line 231, in makedirs
        makedirs(head, mode, exist_ok)
      File "/usr/lib/python3.5/os.py", line 231, in makedirs
        makedirs(head, mode, exist_ok)
      File "/usr/lib/python3.5/os.py", line 231, in makedirs
        makedirs(head, mode, exist_ok)
      File "/usr/lib/python3.5/os.py", line 231, in makedirs
        makedirs(head, mode, exist_ok)
      File "/usr/lib/python3.5/os.py", line 241, in makedirs
        mkdir(name, mode)
    PermissionError: [Errno 13] Permission denied: 'www' 

I was surprised not find a field option for server/IP, just the “server name”


#236

@sfnetwork

The component automatically gets the network info it needs from Plex. Your issue is that HA doesn’t have permission to create the folder. Check out this link.

Alternatively, you can try the download_images: false option, follow the instructions on the github readme


#237

where do it need it? I thought all related folders had 777 permisisons…


#238

The www folder or folders within. The component creates the directory in /www/custom-lovelace/upcoming-media-card/


#239

just checked, has full permission set…
I guess I’ll try to other way


#240

could also try just creating the folder structure yourself. /www/custom-lovelace/upcoming-media-card/images/plex


#241

just tried it, doesn’t work…

The other method seems to work better though… keeping testing…


#242

ok, it looks like so far, it’s not working when setting download to true.

When setting it up to false with ssl, it works bu I get a bunch of:

http://192.168.1.9:8123/lovelace/0:0:0 Uncaught

Althought, this may not be this at all, I’ll look into it…


#243

also, even if I set it to 10, I get only 4…
And, anyway to disable shadow in font?


#244

Just updated plex with a dir permission setting that may help, might want to try it again.

in upcoming media cards lovelace config set text_shadows: false

looking into why you’re only seeing 4


#245

thanks for the shadow (didn’t see this kind of option in doc for it, I thought it wasn’t available)

I updated to 1.0 and tried the image download (after reboot af course); still same problem:

plex_recently_added: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/.homeassistant/custom_components/sensor/plex_recently_added.py", line 201, in update
    os.makedirs(directory, mode=0o777)
  File "/usr/lib/python3.5/os.py", line 231, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.5/os.py", line 231, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.5/os.py", line 231, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.5/os.py", line 231, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.5/os.py", line 241, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: 'www'

#246

would it be possible in the future to be able to separate TV episodes and movies? (to be able to create two cards)
Episodes overtake movies logically (much much more recently added than movies)…