Plugin Store 1.2.0 Release

Posted on
Sat Mar 25, 2023 11:10 pm
GlennNZ offline
User avatar
Posts: 1578
Joined: Dec 07, 2014
Location: Central Coast, Australia

Plugin Store 1.2.0 Release

Here:

https://www.indigodomo.com/pluginstore/283/

Changelog from last Release:

Plugin Store version 1.0.1
Update readme information

0.1.22
Refactor speak command
Thread Say for each device (with checks) and timeout if any part of say/conversion fails.
Remove runconcurrent as not used.
Few debugging changes/reduce logging
More logging info depending on what fails at appleTV Library end
Set error state until device is setup/paired. So obvious what is going on.
Support new HomePod in lieu of library recognising
Check for same name on device creation
Report if Unquarantine command xattr doesn't seem to have been run

0.1.20
Add check for correct version of pyatv being installed.
(thanks autolog for the requirements.py)

0.1.19
Change disconnect handling, avoiding potentially leaving loop running

0.1.17
Add exception catching to creation of devices - skipping device if issue
0.1.15
Fill PowerState states. Reflects the onOff state of the device - but PowerState will be Unknown, Idle, or On.

0.1.14
Fix for App name being combined name and identifier, add check for None first.
Add Playing states Stopped, Seeking, in addition to Playing, Idle, Paused

0.1.12
Bug fix for change in Ip address

0.1.11
Save new Ip address in Indigo device details. Enables reconnection to non-static IP addresses. When changes will fail and try to reconnect, should update plugin device with new IP address once connected. Ideally would suggest Static Ip address would avoid this period of disconnection.
Do above when scanning for devices - update existing devices IP's if changed
Change logging multicast mentioned - could have been either.
Last edited by GlennNZ on Sat Aug 05, 2023 10:36 pm, edited 1 time in total.

Posted on
Sat Aug 05, 2023 10:35 pm
GlennNZ offline
User avatar
Posts: 1578
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Plugin Store 1.2.0 Release - Updated Readme

Image

New Version 1.2.0

In Store, updated Readme
Now supports all appleTV devices, Homepods and all Airplay2 compatible speakers/Receivers etc.

Updated main Readme for version 1.2.0

Changes since 1.0.1 Release

Requires pyatv 0.,13.3 -- now released
Please run:
Code: Select all
pip3 install pyatv --upgrade


Support Library updates: Big Ticket Changes

Play URL command
Fixes play URL command for >OS16.4 - can't get BI camera streams working, but https:// mp4 and mu38 play well. (if particularly file doesn't play will relate to compatible file settings)

Airplay2 Speaker Support
Adds Airplay2 Speaker Support - allows playback of file to all Airplay2 devices.
Allows creation of indigo device for Airplay2 Speaker, and then file playback to these devices, including all Sonos Speakers that I have tested. (Note does not allow control of Airplay2 devices, just playback, further control will likely follow)

Expanded Remote Control Commands:

Image
Image



Other Library changes

    Better power state reporting, now seems robust
    Improved audio buffering
    Support for changing output device in tvOS
    Support for activating screensaver
    Listener interface for volume updates
    Text/Keyboard Input API
    Updated Device types, Apple4kGen3, Homepods etc
    Use pure audio frames, rather than ALAC frames improving performance
    Ability to set own artwork when streaming
    Bitarray dependency dropped
    macOS added as Operating System

Plugin Changes
    Few logging changes
    Re Working of Connection lost logic, reuse the same async task
    Add Volume state, with Volume listener - updating device whenever volume changes, as an immediate push update. New states to support as much.
    Delete MRPPort state
    Add CompanionPort State
    Fill the previous blank Port states.
    Fix About URL link in pluginConfig

Posted on
Thu Aug 24, 2023 4:20 am
Londonmark offline
Posts: 509
Joined: Feb 29, 2012

Re: Plugin Store 1.2.0 Release

Hi Glenn,

I'm getting this error with 1.2.0

appleTV Plugin Error Error in plugin execution InitializeMain:

File "plugin.py", line 163, in <module>
type: module 'pyatv.interface' has no attribute 'AudioListener'

Think I've updated everything I should have updated...

Posted on
Thu Aug 24, 2023 4:41 am
GlennNZ offline
User avatar
Posts: 1578
Joined: Dec 07, 2014
Location: Central Coast, Australia

Plugin Store 1.2.0 Release

That will occur (although thought had improved messaging) when your version of pyatv is not UpToDate.
(Just once with this version change unfortunately hence the issue showing you want to do)

Code: Select all
pip3 install pyatv --upgrade


Should fix


If not your pip3 is pointing to a different python3
Install rather than indigo’s install.

Can retry with pip3.10 instead of pip above

Current versions of Indigo use Python3.10 (so if your other install is another 3 version this will work/help)

Otherwise check forums for python version issues

(I think there is another thread with the same problem
Here…)

If still issues can use
Code: Select all
which pip3

To see which version you are running

Indigo Python3 should be here:
/Library/Frameworks/Python.framework/Versions/3.10/
&&

Alternatively can run Indigo pip3 command by using the full path

Code: Select all
/Library/Frameworks/Python.framework/Versions/3.10/bin/pip3 install pyatv --upgrade



Sent from my iPhone using Tapatalk
Last edited by GlennNZ on Thu Aug 24, 2023 3:20 pm, edited 1 time in total.

Posted on
Thu Aug 24, 2023 8:51 am
jalves offline
Posts: 749
Joined: Jun 16, 2013

Re: Plugin Store 1.2.0 Release

I've got the same error. Trying the terminal commands in your post I can't seem to resolve the issue.

When I issue the command: which pip3
I get /Library/Frameworks/Python.framework/Versions/3.10/bin/pip3

trying pip3 install pyatv —upgrade
I get ERROR: Invalid requirement: '—upgrade'

trying a simple install command pip3 install pyatv
gives:
Code: Select all
Requirement already satisfied: pyatv in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (0.10.3)
Requirement already satisfied: aiohttp<5,>=3.8.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyatv) (3.8.1)
Requirement already satisfied: async-timeout>=4.0.2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyatv) (4.0.2)
Requirement already satisfied: bitarray>=2.1.2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyatv) (2.6.0)
Requirement already satisfied: cryptography>=36.0.2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyatv) (39.0.2)
Requirement already satisfied: chacha20poly1305-reuseable>=0.0.3 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyatv) (0.0.4)
Requirement already satisfied: ifaddr>=0.1.7 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyatv) (0.2.0)
Requirement already satisfied: mediafile>=0.8.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyatv) (0.10.1)
Requirement already satisfied: miniaudio>=1.45 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyatv) (1.55)
Requirement already satisfied: protobuf>=3.19.3 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyatv) (4.21.9)
Requirement already satisfied: requests>=2.23.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyatv) (2.27.1)
Requirement already satisfied: srptools>=0.2.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyatv) (1.0.1)
Requirement already satisfied: zeroconf>=0.38.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyatv) (0.39.4)
Requirement already satisfied: attrs>=17.3.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from aiohttp<5,>=3.8.1->pyatv) (21.4.0)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from aiohttp<5,>=3.8.1->pyatv) (2.0.12)
Requirement already satisfied: multidict<7.0,>=4.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from aiohttp<5,>=3.8.1->pyatv) (6.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from aiohttp<5,>=3.8.1->pyatv) (1.7.2)
Requirement already satisfied: frozenlist>=1.1.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from aiohttp<5,>=3.8.1->pyatv) (1.3.0)
Requirement already satisfied: aiosignal>=1.1.2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from aiohttp<5,>=3.8.1->pyatv) (1.2.0)
Requirement already satisfied: cffi>=1.12 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from cryptography>=36.0.2->pyatv) (1.15.0)
Requirement already satisfied: six>=1.9 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from mediafile>=0.8.1->pyatv) (1.16.0)
Requirement already satisfied: mutagen>=1.46 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from mediafile>=0.8.1->pyatv) (1.46.0)
Requirement already satisfied: wheel in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from miniaudio>=1.45->pyatv) (0.38.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests>=2.23.0->pyatv) (1.26.9)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests>=2.23.0->pyatv) (2021.10.8)
Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests>=2.23.0->pyatv) (3.3)
Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from cffi>=1.12->cryptography>=36.0.2->pyatv) (2.21)


I'm obviously (well, not obvious to me) doing something wrong.

Running Indigo 2023.2 on a 24" iMac M1), OS X 14.4
Jeff

Posted on
Thu Aug 24, 2023 3:19 pm
GlennNZ offline
User avatar
Posts: 1578
Joined: Dec 07, 2014
Location: Central Coast, Australia

Plugin Store 1.2.0 Release

Hi all,

You need to upgrade the pyatv library. 0.10.3 is old. You python all points to the correct install however. Simply need to fix the upgrade command - check the first post.

The problem is the upgrade command here as failed as per the error message you received.

It will be a typo, should be 2 dashes - and a - upgrade.

Code: Select all
pip3.10 install pyatv --upgrade


(I think my ipad had autocorrected this - is correct above - in my defence it was correct in the first post)
(and annoying such a low level error can’t print the usual upgrade error message with command to run - which appeared every other time needed upgrade…)


Sent from my iPad using Tapatalk
Last edited by GlennNZ on Sat Aug 26, 2023 6:09 pm, edited 3 times in total.

Posted on
Thu Aug 24, 2023 5:26 pm
jalves offline
Posts: 749
Joined: Jun 16, 2013

Re: Plugin Store 1.2.0 Release

Thanks for the clarification. I'll try that tomorrow and report back.

Running Indigo 2023.2 on a 24" iMac M1), OS X 14.4
Jeff

Posted on
Fri Aug 25, 2023 8:34 am
jalves offline
Posts: 749
Joined: Jun 16, 2013

Re: Plugin Store 1.2.0 Release

That seems to have done the trick!

Running Indigo 2023.2 on a 24" iMac M1), OS X 14.4
Jeff

Posted on
Mon Aug 28, 2023 12:42 pm
Doctor Q offline
Posts: 67
Joined: Feb 18, 2020

Re: Plugin Store 1.2.0 Release

Londonmark wrote:
Hi Glenn,

I'm getting this error with 1.2.0

appleTV Plugin Error Error in plugin execution InitializeMain:

File "plugin.py", line 163, in <module>
type: module 'pyatv.interface' has no attribute 'AudioListener'

Think I've updated everything I should have updated...
I’m getting the same error, tried all your pyatv updates.
which pip3 returns:

/opt/homebrew/bin/pip3

Am I in the wrong directory?

Posted on
Mon Aug 28, 2023 1:31 pm
FlyingDiver offline
User avatar
Posts: 7238
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Plugin Store 1.2.0 Release

Doctor Q wrote:
Londonmark wrote:
Hi Glenn,

I'm getting this error with 1.2.0

appleTV Plugin Error Error in plugin execution InitializeMain:

File "plugin.py", line 163, in <module>
type: module 'pyatv.interface' has no attribute 'AudioListener'

Think I've updated everything I should have updated...
I’m getting the same error, tried all your pyatv updates.
which pip3 returns:

/opt/homebrew/bin/pip3

Am I in the wrong directory?


Homebrew installs of Python are known to break Indigo. You really need to remove that if at all possible.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Aug 28, 2023 1:50 pm
Doctor Q offline
Posts: 67
Joined: Feb 18, 2020

Re: Plugin Store 1.2.0 Release

That stuff is there from installing Scrypted and/or Homebridge, I presume I don’t need it after they’ve been installed?

How do I do that, rm that path?

Posted on
Mon Aug 28, 2023 2:57 pm
FlyingDiver offline
User avatar
Posts: 7238
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Plugin Store 1.2.0 Release

Removing the /opt/homebrew directory (and all it's contents) will do part of it. You also need to edit your profile scripts to remove any mention from your PATH variables. Open a Terminal window and do this to see what file you need to edit:

Code: Select all
grep homebrew .*

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Aug 28, 2023 3:11 pm
GlennNZ offline
User avatar
Posts: 1578
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Plugin Store 1.2.0 Release

Doctor Q wrote:
Londonmark wrote:
Hi Glenn,

I'm getting this error with 1.2.0

appleTV Plugin Error Error in plugin execution InitializeMain:

File "plugin.py", line 163, in <module>
type: module 'pyatv.interface' has no attribute 'AudioListener'

Think I've updated everything I should have updated...
I’m getting the same error, tried all your pyatv updates.
which pip3 returns:

/opt/homebrew/bin/pip3

Am I in the wrong directory?
Yes.
As per FlyingDiver - should uninstall HomeBrew as can/will cause issues with a number of indigo plugins.
Alternatively can try the full indigo path pip command, which would be interested in whether works.

Code: Select all
/Library/Frameworks/Python.framework/Versions/3.10/bin/pip3 install pyatv --upgrade



Sent from my iPad using Tapatalk

Posted on
Mon Aug 28, 2023 4:20 pm
Doctor Q offline
Posts: 67
Joined: Feb 18, 2020

Re: Plugin Store 1.2.0 Release

[/quote]Yes.
As per FlyingDiver - should uninstall HomeBrew as can/will cause issues with a number of indigo plugins.
Alternatively can try the full indigo path pip command, which would be interested in whether works.

Code: Select all
/Library/Frameworks/Python.framework/Versions/3.10/bin/pip3 install pyatv --upgrade


@GlennNZ, it worked.

Posted on
Tue Aug 29, 2023 2:47 am
Londonmark offline
Posts: 509
Joined: Feb 29, 2012

Re: Plugin Store 1.2.0 Release

This fixed it for me too.

Not sure I have entirely managed to get rid of Homebrew. Grep gave me a list of items but I don't really know what to do about them.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests

cron