Apple TV Plugin: new versions

User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Apple TV Plugin: new versions

Post by kw123 »

changes in V 0.3.2@ 2021-03-27
==================
1. changed to continuous listening process for changes of playing xxx
this is much more stable than the previous polling version
2. added a lot of check in case something has an exception
- delete a device, change the ip number
3. added several menu explanations

next steps:
- send commands - power on/off/ start/ stop play etc


changes in V 0.1.1@ 2021-03-26
==================
1. first version:
will scan for apple tv devices every xx minutes
will read play status of ided apple tv devices ever xx secs
Configure in config:
- path to python
- time for scan and read sequences
In device edit the IP numebr can be over written
In menu a manual scan for new devices can be initated


download at https://www.indigodomo.com/pluginstore/248/

Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV Plugin: new versions

Post by kw123 »

this is now 80% functional.. can retrieve all info and "press" all apple remote button

Code: Select all

changes in V 0.5.2@ 2021-03-28  
==================    
1. added menu and actions (Send command to apple tv)  
     down             Press key down  
     home             Press key home  
     home_hold        Hold key home  
     left             Press key left  
     menu             Press key menu  
     next             Press key next  
     pause            Press key play  
     play             Press key play  
     play_pause       Toggle between play and pause  
     previous         Press key previous  
     right            Press key right  
     select           Press key select  
     set_position     Seek in the current playing media  
     set_repeat       Change repeat state  
     set_shuffle      Change shuffle mode to on or off  
     skip_backward    Skip backwards a time interval  
     skip_forward     Skip forward a time interval  
     stop             Press key stop  
     suspend          Suspend the device  
     top_menu         Go to main menu (long press menu)  
     up               Press key up  
     volume_down      Press key volume down  
     volume_up        Press key volume up  
     wakeup           Wake up the device  
     power_state      Return device power state  
     turn_off         Turn device off  
     turn_on          Turn device on  
  
next function:  
send play xx commands like play song or http ref.  
 
Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV Plugin: new versions

Post by kw123 »

changes in V 0.5.4@ 2021-03-28
==================
1. fixed
error=u'MRPCredentials'
tuple index out of range


Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV Plugin: new versions

Post by kw123 »

Code: Select all

changes in V 0.6.4@ 2021-03-28  
==================    
1. added 
   print parameters and devices to logfile
   (un)ignore devices ie ignore certain ip numbers
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV Plugin: new versions

Post by kw123 »

Code: Select all

changes in V 0.7.5@ 2021-03-28  
==================    
1.added free text commands - you can send several commands in one eg 'turn_on delay=1000 play'
2.added print help menu command, gives a long list of how to install, how to use etc.
this version should be ok as a beta, not alpha any more

Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Apple TV Plugin: new versions

Post by kw123 »

changes in V 1.0.6@ 2021-03-29
==================
1. cosmetic changes in menus
2. added print help to logfile in menu
3. added check if python3 is properly installed


first non beta release

Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV Plugin: new versions

Post by kw123 »

changes in V 1.0.9@ 2021-04-16
==================
1. changed steup for default values in plugin.config
2. added addition try except for new devices, in case of bad data return
3. cosmetic changes in menus
4. added print help to logfile in menu
5. added check if python3 is properly installed


Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV Plugin: new versions

Post by kw123 »

changes in V 1.0.10@ 2021-04-30
==================
1. when python3 is not installed don't go to sleep in startup, but in concurrent loop
that allows to set config
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV Plugin: new versions

Post by kw123 »

changes in v1.0.12@ 2021-05-01
==================
1. updated help texts to reflect: do not create apple tv devices manually, all done by the plugin automatically
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV Plugin: new versions

Post by kw123 »

changes in v1.0.14@ 2021-05-01
==================
1. will now try to auto detect path to python3,
will exit after 3 minutes if still not found / defined.
during these 3 minutes you can setup python3 or set the path to python3 in config

Code: Select all

appleTV Warning                 ==== python3 path not setup, trying to find path to python3 ====
appleTV                         ==== ... found, setting path to python3 to: >>/usr/local/bin/python3<<
and if not found:

Code: Select all

appleTV Warning                 python3 ><  is not present on this mac, see logfile on how to install python3, you have 180 secs to setup config
2. will show a detailed message in indigo log for each new apple device created

Code: Select all

appleTV Warning                 =====================================================================================================================================
appleTV                         == New apple tv device created:"appletv_192.168.1.47"; with MAC#:D0:D2:B0:88:7B:77; NO FURTHER action needed to activat/use device ==
appleTV                         == check "plugin/menu/PRINT help to logfile" for available actions etc. ==
SQL Logger                      creating table device_history_1198576866 for "appletv_192.168.1.47"
appleTV Warning                 =====================================================================================================================================
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Apple TV Plugin: new versions

Post by kw123 »

Code: Select all

changes in v1.1.14@ 2021-05-01
==================  
1. upgraded to the march 2021 version of pyatv
install w:
sudo pip3 install pyatv 

or download the zipfile and

cd ~/Downloads/pyatv-master/setup.py
sudo python3 setup.py install 

if you get an error msg when you run the plugin:
  "ModuleNotFoundError: No module named 'pendulum'" 
you need to add in a terminal (or just install them anyway, should not harm)
sudo pip3 install pendulum 
sudo pip3 install bidict  
sudo pip3 install more_itertools  
sudo pip3 install bitstruct  
This new version might not work w the older pyatv GitHub download

Karl
Post Reply

Return to “AppleTV Plugin”