soco.config module¶
This module contains configuration variables.
They may be set by your code as follows:
from soco import config
...
config.VARIABLE = value
-
soco.config.SOCO_CLASS¶ alias of
soco.core.SoCo
-
soco.config.CACHE_ENABLED= True¶ Is the cache enabled?
If
True(the default), some caching of network requests will take place.See also
The
soco.cachemodule.
-
soco.config.EVENT_ADVERTISE_IP= None¶ The IP on which to advertise to Sonos.
The default of None means that the relevant IP address will be detected automatically.
See also
The
soco.events_basemodule.
-
soco.config.EVENT_LISTENER_IP= None¶ The IP on which the event listener listens.
The default of None means that the relevant IP address will be detected automatically.
See also
The
soco.events_basemodule.
-
soco.config.EVENT_LISTENER_PORT= 1400¶ The port on which the event listener listens.
The default is 1400. You must set this before subscribing to any events.
See also
The
soco.events_basemodule.
-
soco.config.EVENTS_MODULE= <module 'soco.events' from '/builddir/build/BUILD/soco-0.19/soco/events.py'>¶ The events module to be used by the
soco.servicesmodule.The default of None means the
soco.eventsmodule will be used.See also
The
soco.eventsandsoco.events_twistedmodules.