Python Plugin: Chromecast Topic is solved

Python and python framework

Moderator: leecollings

Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by Ewaldharmsen »

please install Spotipy properly:

Code: Select all

sudo pip3 install git+https://github.com/plamere/spotipy.git
Tobbo
Posts: 13
Joined: Monday 08 October 2018 13:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by Tobbo »

Ewaldharmsen wrote: Tuesday 02 April 2019 12:12 please install Spotipy properly:

Code: Select all

sudo pip3 install git+https://github.com/plamere/spotipy.git
I already have this installed so I will try and re-install it and return with an update. Thank you.

Edit:
That did the trick.

Code: Select all

sudo pip3 uninstall spotipy
sudo pip3 install git+https://github.com/plamere/spotipy.git
brain
Posts: 15
Joined: Saturday 03 March 2018 9:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by brain »

hi i am getting this error((chromecast) pychromecast is not up to date, please upgrade by using this command: 'sudo pip3 install pychromecast --upgrade) and pychromecast is up to date.
what can i do?

thanx
jeroenkl
Posts: 113
Joined: Sunday 14 July 2013 22:00
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: Python Plugin: Chromecast

Post by jeroenkl »

Dnpwwo wrote: Tuesday 12 March 2019 11:30
I will add new aplications (as they are used) to the Source device in the next version.
great, just wondering when do you have time to implement this?

regards,

Jeroen
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by Ewaldharmsen »

brain wrote: Sunday 28 April 2019 11:12 hi i am getting this error((chromecast) pychromecast is not up to date, please upgrade by using this command: 'sudo pip3 install pychromecast --upgrade) and pychromecast is up to date.
what can i do?

thanx
can you update the plugin to version 4.4.0? That should solve the issue, or should show the problem.
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Python Plugin: Chromecast

Post by snellejellep »

after updating to the latest stable version of Domoticz i get this error messageL

Code: Select all

2019-05-09 16:32:14.933 Error: (Chromecasts) Error on line 413 Error is 'BasePlugin' object has no attribute 'ConnectedChromecasts'
i already tried updating the plugin but that does not fix the issue.
does someone know what to do?
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
brain
Posts: 15
Joined: Saturday 03 March 2018 9:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by brain »

Hi does anyone know how to change the volume of the voice notification in a lua script?

please

Thanx
schulpr
Posts: 137
Joined: Thursday 01 January 2015 9:10
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Python Plugin: Chromecast

Post by schulpr »

Hi,

I'm getting this error:

Code: Select all

Error: (Chromecast) pychromecast is not up to date, it is currently version 3.2.2 it should be at least version 3.2.1. Please upgrade by using this command: 'sudo pip3 install pychromecast --upgrade' and restart this plugin.
Updating as suggested doesn't solve it. Any solution?

Kind regards, Rob
Robinjoo94
Posts: 21
Joined: Saturday 25 May 2019 19:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Contact:

Re: Python Plugin: Chromecast

Post by Robinjoo94 »

I have been facing the same issue, I just forced pychromecast to version 3.2.1 and restarted the Domoticz server by the following commands

Code: Select all

sudo pip3 install --force-reinstall pychromecast==3.2.1
sudo service domoticz.sh restart
So I installed the Chromcast plugin for the first time (quite new to Domoticz) and managed to get rid of the errors as stated above.

However I have no idea how to send a simple string to a normal Chromecast to be spoken (no experience at all in LUA).

I want te perform some tests on usability to see whether I am going to purchase Google home mini's or not.

So can anybody explain to me step by step how to send a message to the chromecast?
The description of the TS / author of the plugin in one of the first posts on this topic:
Just add a value to the created variabele and the text will be spoken.
I use it voor voice messages and fill the variable from a lua script
Is not really helpfull for me..
Justintime
Posts: 228
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Python Plugin: Chromecast

Post by Justintime »

Thanks for this Plugin.

I have a 7" Google Nest Hub In the startup log its says its not supported. Any chance it will be added?

Another thing:

WHen Domoticz has started no error messages are there. WHen i modify the Plugin in the HArdware section it gives a message in the Log i have to update to an earlier version?

Code: Select all

2019-05-27 09:41:41.424 Error: (Chromecast Plugin) pychromecast is not up to date, it is currently version 3.2.2 it should be at least version 3.2.1. Please upgrade by using this command: 'sudo pip3 install pychromecast --upgrade' and restart this plugin.
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Python Plugin: Chromecast

Post by snellejellep »

i have a little problem, if i use the text to speech function, it works fine for one device, but if i let another device say something before the first device is finished speaking the whole python plugin framework crashes and the plugin no longer works including all my other plugins.
for now i disabled announcing on two of my google home mini's and announce on just one but i would like to be able to announce to all of them
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by Ewaldharmsen »

schulpr wrote: Friday 24 May 2019 7:31 Hi,

I'm getting this error:

Code: Select all

Error: (Chromecast) pychromecast is not up to date, it is currently version 3.2.2 it should be at least version 3.2.1. Please upgrade by using this command: 'sudo pip3 install pychromecast --upgrade' and restart this plugin.
Updating as suggested doesn't solve it. Any solution?

Kind regards, Rob
Fixed in version 4.4.1, You need to install "sudo pip3 install packaging"
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Python Plugin: Chromecast

Post by Dnpwwo »

@snellejellep,

Can you supply some details?

What version of the plugin are you using.
What version of Domoticz.
What platform you are running on.
Can you attach the log messages showing the framework crash.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Python Plugin: Chromecast

Post by snellejellep »

Dnpwwo wrote: Saturday 01 June 2019 23:52 @snellejellep,

Can you supply some details?

What version of the plugin are you using.
What version of Domoticz.
What platform you are running on.
Can you attach the log messages showing the framework crash.
Of course,
i have the latest version of the plugin
running version 4.10717 of domoticz on a raspberry pi 3b with raspbian stretch updated to the latest.
some of the log messages:

Code: Select all

2019-06-03 15:53:47.672 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:53:47.672 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:53:47.672 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:54:15.712 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:54:15.712 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:54:15.713 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:54:29.715 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:54:29.716 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:54:29.716 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:54:43.719 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:54:43.719 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:54:43.719 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:54:57.729 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:54:57.729 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:54:57.729 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:55:13.414 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:55:13.415 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:55:13.415 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:55:27.418 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:55:27.418 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:55:27.418 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:55:41.429 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:55:41.430 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:55:41.430 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:55:55.433 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:55:55.433 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:55:55.433 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:56:09.436 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:56:09.436 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:56:09.436 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:56:23.441 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:56:23.441 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:56:23.442 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:56:37.445 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:56:37.445 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:56:37.445 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:56:51.448 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:56:51.449 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:56:51.449 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:57:05.452 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:57:05.452 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:57:05.452 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
2019-06-03 15:57:19.455 Error: xiaomi vacuum hardware (19) thread seems to have ended unexpectedly
2019-06-03 15:57:19.455 Error: Buienradar hardware (29) thread seems to have ended unexpectedly
2019-06-03 15:57:19.456 Error: Chromecast hardware (34) thread seems to have ended unexpectedly
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
Robinjoo94
Posts: 21
Joined: Saturday 25 May 2019 19:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Contact:

Re: Python Plugin: Chromecast

Post by Robinjoo94 »

So can anybody explain to me step by step how to send a message to the chromecast?
The description of the TS / author of the plugin in one of the first posts on this topic:
Just add a value to the created variabele and the text will be spoken.
I use it voor voice messages and fill the variable from a lua script
Is not really helpfull for me..
Solved my issue, had to put the correct name of the chromecast in the hardware tab.
However facing the same
the whole python plugin framework crashes and the plugin no longer works including all my other plugins
issue.
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Python Plugin: Chromecast

Post by snellejellep »

no one a suggestion for the above problem?
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by Ewaldharmsen »

guess that's not possible, you have to wait till the first is finished.
Will change that in the plugin
FunFair
Posts: 52
Joined: Wednesday 04 October 2017 11:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by FunFair »

Ewaldharmsen wrote: Monday 10 December 2018 14:23 I just have released version 3.0.1.
You can now update the hardware without the need to restart domoticz.
Devices which are no longer needed are automatically deleted

How can I disable the automatic deletion function?
I have a Rfxcom setup and it will scan every single 433 Mhz signal in the neighbourhood. So I have domoticz setup to not scan for new devices.
But every night I backup domoticz and restart the service. And this morning all Chromecast devices were gone... :(
It deleted the devices, but could not re-create them on startup.


Never mind... I changed the device names. After a restart of domoticz, the plugin did not detect them correctly anymore and deleted them apparently.
turnhob
Posts: 7
Joined: Sunday 11 December 2016 9:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by turnhob »

When i power on a chromecast device my domoticz installation freezes and i have to restart it.

Im using a Raspberry pi 2. Just installed the lastest version of Raspian. No other software or tasks are running on the device. I installed from scratch, but the problem remains.

The log files dont show anything, so i dont understand. Is the raspberry to weak? (allthough memory and CPU usage is allmost 0 when it freezes.
maxtrash
Posts: 106
Joined: Tuesday 06 August 2013 1:31
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Chromecast

Post by maxtrash »

Hi

Chromecast plugin is installed and seems to work fine.
Status: (Google) Initialized version 4.5.0, author 'Tsjippy'

I do however get this error in the log:
"Error: (Google) Error on line 423 Error is 'BasePlugin' object has no attribute 'SpotifyClient'"

what could it be?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests