Closed maglub closed 5 years ago
Hi,
This is quite an old skill (created before settings.json was a thing) so it uses the mycroft.conf for configuration.
mycroft.conf is located under /home/mycroft/.mycroft
on the mark-1 to edit it you need to switch user to the mycroft user:
sudo su mycroft
then use nano (or an editor of your choice) to edit /home/mycroft/.mycroft/mycroft.conf
It usually looks like this when first opening:
{
"max_allowed_core_version": 19.2
}
Then add the skill config to the structure as provided in the readme. example:
{
"max_allowed_core_version": 19.2,
"CmdSkill": {
"alias": {
"generate report": "/home/forslund/scripts/generate_report.sh"
}
}
}
Note the added ,
after the 19.2. json is very strict on these kinds of things.
I've started on modernizing the skill to allow using the settings.json and maybe even home.mycroft.ai's skill settings.
Thanks a lot for the pointers!
Hi,
I am trying to get this working, but I am perhaps a bit too new to the config.
I have tried the following:
And now, I am stuck... I have no idea what to configure and how?
In my cmd_skill directory there is a settings.json file, which contains the following:
I created a script, which should put the date into /tmp/magnus.out
What would my next step be, so that I can tell mycroft to run the skill?