mycroft.conf
A configuration file that contains the device and service settings.
Last updated
A configuration file that contains the device and service settings.
Last updated
mycroft.conf
?mycroft.conf
is a JSON-formatted file that is saved locally on your Mycroft Device, such as Picroft or Mark 1. The mycroft.conf
file contains information about the Device itself, like what type of Device and Enclosure it is, as well as information about user preferences. If you haven't specified preferences, then mycroft.conf
will contain some default values. Your Device, and Skills installed on your Device, use mycroft.conf
to provide additional functionality.
You can edit your mycroft.conf
files directly however be very aware that any small syntax error such as a missing comma will prevent the file from being read entirely. In these instances Mycroft may discard the file entirely and generate a fresh copy.
It is recommended to instead use the Mycroft Configuration Manager to make these changes.
mycroft.conf
files stored?The mycroft.conf
files are stored in four possible locations:
Default - mycroft-core/mycroft/configuration/mycroft.conf
Remote (from Home.Mycroft.ai) - /var/tmp/mycroft_web_cache.json
System - /etc/mycroft/mycroft.conf
User - $HOME/.mycroft/mycroft.conf
Mycroft implements an order of precedence; settings defined at a User level override those at a System level. If the file does not exist, Mycroft moves to the following level.
mycroft.conf
Here is an example System level mycroft.conf
from a Mark 1 Device:
mycroft_web_cache.json
mycroft_web_cache.json
is is a JSON-formatted file that is saved locally on your Mycroft Device, such as Picroft or Mark 1. mycroft_web_cache.json
is a cached copy of the settings on your home.mycroft.ai account, such as your Location (which determines Time Zone), which Voice you have selected and your preference for Measurements such as temperature and distance.
Both of these files are regularly used in troubleshooting, so it's useful to know what information they hold, and where they are stored on your Device.
mycroft_web_cache.json
file stored?This file is stored at:
/var/tmp/mycroft_web_cache.json
on the Device.
mycroft_web_cache.json
updated?When you update settings at home.mycroft.ai, your Device will periodically pull them down. In normal circumstances any change should be reflected on the device within 1-2 minutes. You can also instruct your device to pull down the latest configuration, by saying:
Hey Mycroft, update configuration
Mycroft will respond in one of two ways:
If your configuration was out of date, and has been pulled down again, Mycroft will respond:
Configuration updated
If your configuration was the same on your device as on home.mycroft.ai, Mycroft will respond:
Your device has been configured
mycroft_web_cache.json
To see the city location value:
jq ".location.city" < /var/tmp/mycroft_web_cache.json
To see the latitude and longitude coordinates of your location:
jq ".location.coordinate" < /var/tmp/mycroft_web_cache.json
To see the timezone setting:
jq ".location.timezone" < /var/tmp/mycroft_web_cache.json
To see the listener setting:
jq ".listener" < /var/tmp/mycroft_web_cache.json
To see the Speech to Text (STT) settings:
jq ".stt" < /var/tmp/mycroft_web_cache.json
To see the Text to Speech (TTS) settings:
jq ".tts" < /var/tmp/mycroft_web_cache.json
mycroft_web_cache.json
Here is an example mycroft_web_cache.json
.
NOTE: Your settings will be different.