File: constants.py

package info (click to toggle)
pyroon 0.1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 372 kB
  • sloc: python: 1,660; sh: 135; makefile: 4
file content (34 lines) | stat: -rw-r--r-- 963 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from __future__ import unicode_literals

import logging

SOOD_PORT = 9003
SOOD_MULTICAST_IP = "239.255.90.90"

SERVICE_REGISTRY = "com.roonlabs.registry:1"
SERVICE_TRANSPORT = "com.roonlabs.transport:2"
SERVICE_STATUS = "com.roonlabs.status:1"
SERVICE_PAIRING = "com.roonlabs.pairing:1"
SERVICE_PING = "com.roonlabs.ping:1"
SERVICE_IMAGE = "com.roonlabs.image:1"
SERVICE_BROWSE = "com.roonlabs.browse:1"
SERVICE_SETTINGS = "com.roonlabs.settings:1"
CONTROL_VOLUME = "com.roonlabs.volumecontrol:1"
CONTROL_SOURCE = "com.roonlabs.sourcecontrol:1"

REGISTERED = "Registered"

MESSAGE_REQUEST = "REQUEST"
MESSAGE_COMPLETE = "COMPLETE"
MESSAGE_CONTINUE = "CONTINUE"

PAGE_SIZE = 100

LOG_FORMAT = logging.Formatter(
    "%(asctime)-15s %(levelname)-5s  %(module)s -- %(message)s"
)
LOGGER = logging.getLogger("roonapi")
CONSOLE_HANDLER = logging.StreamHandler()
CONSOLE_HANDLER.setFormatter(LOG_FORMAT)
LOGGER.addHandler(CONSOLE_HANDLER)
LOGGER.setLevel(logging.INFO)