Don't load remote settings for send command
parent
a3e35d736b
commit
0811df3831
|
@ -17,7 +17,9 @@ import json
|
||||||
|
|
||||||
from websocket import create_connection
|
from websocket import create_connection
|
||||||
|
|
||||||
from mycroft.configuration import ConfigurationManager
|
from mycroft.configuration import Configuration
|
||||||
|
from mycroft.configuration.locations import (DEFAULT_CONFIG, SYSTEM_CONFIG,
|
||||||
|
USER_CONFIG)
|
||||||
from mycroft.messagebus.client import MessageBusClient
|
from mycroft.messagebus.client import MessageBusClient
|
||||||
from mycroft.messagebus.message import Message
|
from mycroft.messagebus.message import Message
|
||||||
|
|
||||||
|
@ -66,7 +68,11 @@ def send(message_to_send, data_to_send=None):
|
||||||
data_to_send = data_to_send or {}
|
data_to_send = data_to_send or {}
|
||||||
|
|
||||||
# Calculate the standard Mycroft messagebus websocket address
|
# Calculate the standard Mycroft messagebus websocket address
|
||||||
config = ConfigurationManager.get().get("websocket")
|
config = Configuration.get([DEFAULT_CONFIG,
|
||||||
|
SYSTEM_CONFIG,
|
||||||
|
USER_CONFIG],
|
||||||
|
cache=False)
|
||||||
|
config = config.get("websocket")
|
||||||
url = MessageBusClient.build_url(
|
url = MessageBusClient.build_url(
|
||||||
config.get("host"),
|
config.get("host"),
|
||||||
config.get("port"),
|
config.get("port"),
|
||||||
|
|
Loading…
Reference in New Issue