Can I have mycroft auto run a skill?

For example…
hey mycroft “…run ~skill-name~ at 8 am every day…” if not I can create it… if someone tells me how to run a skill from inside the mark1 example mycroft run ~skill_name~ then I can just make a skill with a scheluler (cron) to run at certain times.

1 Like

Check out the scheduled skills capability which is demonstrated in the official “reminder” skill here: https://github.com/MycroftAI/skill-reminder/blob/master/init.py

2 Likes

Thank you! was on vacation for all the hacker conferences this summer, and moving wil get back to work on more skills next week.

1 Like

Always excited to have new skills. Welcome back from vacation.

I did an event skill that may be of interest as a reference. It can trigger other skills at certain times. https://github.com/forslund/event_skill

If you want to go with a cron job you can connect to the mycroft messagebus using something similar to https://gist.github.com/forslund/064384b0d5d073a2a37cc092462e609c

for example:
python wstest.py localhost recognizer_loop:utterance '{"utterances": ["what time is it"]}'

to trigger an intent through the intent service. (If you know the names of the intents the methods can be triggered directly)

2 Likes