Simple Python Script To Monitor Chromecast and cURL on change
- or -
Post a project like this1263
£30(approx. $38)
- Posted:
- Proposals: 4
- Remote
- #3041638
- Awarded
Description
Experience Level: Entry
Need a simple script/app able to run 24x7 on home server. Use https://github.com/home-assistant-libs/pychromecast to check status of Chromecasts and call a URL using cURL if this changes.
Only for use at home so sorry for low budget, it doesnt need to be pretty.
The PyChromecast example here https://github.com/home-assistant-libs/pychromecast/blob/master/examples/simple_listener_example.py gets close, but would need to monitor multiple chromecasts and use the "app_id" value to determine if something is playing.
End result should be like;
If app_id changes to equal none for chomecast1 then call url1, if app_id changes to not equal none chromecast1 then call url2.
If app_id changes to equal none for chomecast2 then call url3, if app_id changes to not equal none chromecast1 then call url4
I hope this is fairly easy for someone with more Python experience than me.
Only for use at home so sorry for low budget, it doesnt need to be pretty.
The PyChromecast example here https://github.com/home-assistant-libs/pychromecast/blob/master/examples/simple_listener_example.py gets close, but would need to monitor multiple chromecasts and use the "app_id" value to determine if something is playing.
End result should be like;
If app_id changes to equal none for chomecast1 then call url1, if app_id changes to not equal none chromecast1 then call url2.
If app_id changes to equal none for chomecast2 then call url3, if app_id changes to not equal none chromecast1 then call url4
I hope this is fairly easy for someone with more Python experience than me.
Dan M.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
100%
Last project
3 Nov 2020
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies