Hello, everyone. I’m having trouble getting this skill to load login information from settingsmeta.
I have this settingsmeta.json file in the skill directory:
{
"skillMetadata": {
"sections": [
{
"name": "Login Information",
"fields": [
{
"type": "label",
"label": "Provide the login information provided by your calendar service provider."
},
{
"name": "user",
"type": "text",
"label": "Username",
"value": "",
"placeholder": "CalDAV username"
},
{
"name": "password",
"type": "password",
"label": "Password",
"value": ""
},
{
"name": "url",
"type": "text",
"label": "URL",
"value": ""
}
]
}
]
}
}
I can see the fields properly formatted on account.mycroft.ai, and I’ve entered the information into the fields and clicked save. This is what I have in the skill’s init.py file:
def initialize(self):
self.register_entity_file('when.entity')
self.user = self.settings.get('user')
if not self.user:
self.speak('failed to retrieve username')
self.password = self.settings.get('password')
if not self.password:
self.speak('failed to retrieve password')
self.url = self.settings.get('url')
if not self.url:
self.speak('failed to retrieve url')
Every time, I’m getting the “failed to retrieve” notifications. The variables are set to None in the init method.
The data is not populating in my ~/.config/mycroft/skills/my-calendar-skill/settings.json file. But the fields are there.
{"__mycroft_skill_firstrun": false, "password": "", "username": "", "internal_python_variable_name": "", "url": "", "user": ""}
I’ve checked the docs multiple times, and don’t see where I’m going wrong here.