Code Monkey home page Code Monkey logo

overcast-sonos's Introduction

Play Overcast podcasts on your Sonos.

  • Fast!
  • Remembers last played position
  • Syncs play position back to the Overcast service every 30 seconds or when paused/stopped
  • Removes episodes from Overcast when completed

Usage:

  1. pip install -r requirements.txt

  2. [email protected] OVERCAST_PASSWORD=1234 python overcast-sonos.py

  3. Go to http://<SONOS_IP>:1400/customsd.htm, and enter:

    • SID - some unique SID (255 works if you've not done this before
    • Service Name - some name, overcast works
    • Endpoint URL and Secure Endpoint URL: http://<YOUR_IP>:8140/overcast-sonos
    • Presentation map: version = 1, Uri = http://<YOUR_IP>:8140/presentation_map
    • Authentication SOAP header policy: "Anonymous"
    • Check the boxes in the example screenshot
  4. In your Sonos controller, go to "Add Music Service", then add the service above.

See the TODO list for some nice-to-haves.

overcast-sonos's People

Contributors

antonino-u avatar jacobian avatar kjellr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

overcast-sonos's Issues

Error

After typing in OVERCAST_USERNAME=[myemail] OVERCAST_PASSWORD=[mypassword] python overcast-sonos.py, I'm getting the following, and the terminal hangs:

INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): overcast.fm
DEBUG:requests.packages.urllib3.connectionpool:"POST /login HTTP/1.1" 302 None
INFO:requests.packages.urllib3.connectionpool:Resetting dropped connection: overcast.fm
DEBUG:requests.packages.urllib3.connectionpool:"GET /podcasts HTTP/1.1" 200 None
INFO:overcast-sonos:at=start

Any advice? Thanks for creating this!

Track duration, resumable, and time reporting issues

Up until recently, overcast-sonos had been doing an awesome job of tracking the time for each podcast, syncing with Overcast, and resuming episodes. Over the past few days though, that's stopped working for me.

Playing episodes now displays a crazy episode length:

screen shot 2017-02-23 at 9 03 47 am

Soon after the episode starts playing, it's marked as played and removed from Overcast's Active Episodes list. Everything else is working as expected.

This behavior seemed to coincide with the release of Overcast 3, so I'm not sure if there were some under-the-hood Overcast changes that broke this integration?

Let me know if there's anything else I can provide.

cc @antonino-u, since it looks like you'd recently spent time on this stuff (thank you!).

101 Stupid Help

So, this is awkward. I would like to install this, but I find the instructions to be obtuse and not written with the average person in mind. I have not installed something like this before, and honestly cannot decipher how to do so in any of the documentation. Help?

ImportError: No module named requests

Hi,

Very keen to get this project working! I've run:

[email protected] OVERCAST_PASSWORD=xxx python overcast-sonos.py

but get

Traceback (most recent call last):
  File "overcast-sonos.py", line 4, in <module>
    from overcast import Overcast, utilities
  File "/Applications/overcast-sonos/overcast.py", line 7, in <module>
    import requests
ImportError: No module named requests

in return.

Any clues on how I might proceed? I've utterly new with Python.

Dan

Still working in 2020?

I'm attempting to run this on a server (with Python 3.7) and it works for a few of my Podcasts, but for most of them, I get an "unable to connect to Overcast" on from the Sonos Controller.

Should this still be working in 2020? I had to make a few changes to adapt it for Python 3.7, and I'm actually running slightly newer versions of the requirements. I'm unsure if that's causing problems, but the server itself appears to be working as intended, based on the logs.

Unable to browse music

I'm having trouble getting this configured and running. The service and music source configuration seems to be working -- when going into that music source on the Sonos app, I can see a stream of activity in the console indicating that it is connecting and retrieving data. However the app then says Unable to browse music - there was a problem connecting to OvercastTest (where OvercastTest is what I named the Sonos music source).

Any suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.