Hi,
If I command to reboot, MyCroft replies “Confirming: Would you like me to restart now?”. No matter how hard I shout YES, MyCroft doesn’t restart.
What’s the right answer??
>> Confirming: Would you like me to turn myself off? --- 55.68
yes
So if you repeat yes enough, MyCroft hears me, but just keeps running.
mycroft-Mark2 skill could respond to the message (“system.reboot”) sent by the mycroft-stop skill.
( triggering subprocess.call(["/usr/bin/systemctl", "reboot"]) )
After you confirm with “yes”, a dialog (" Rebooting now, I’ll be right back"/“Restarting, back in a few minutes”- presuming you are running lang en-us) is spoken? Which would indicate that the message is received by skill-mark2.
the reboot is hardcoded in the enclosure code in mycroft, so unless you have a mk1 or mk2 it wont reboot
in ovos we have a PHAL plugin handling this, you can just run it in your vanilla mycroft device if you want to, or duplicate the plugin and make a skill listening to the bus messages
for current implementation that would be better than pretending it will reboot without rebooting, but i really hope we can just stop hardcoding enclosures!
why make the skill useless everywhere else? if you run phal plugin above (or your own dedicated platform plugin/skill) you get reboot functionality anywhere you want since it follows the bus api spec, but harcoding an enclosure will simply skip it