SetTime cronjob

Posted on
  • I discovered that you can pass -t flag to EspruinoTools espruino command line script. Since time can drift, I want to connect to the watch once a day to update the time.

    How can I run EspruinoTools/bin/espruino-cli.js with the -t flag and then exit instead of enter terminal prompt. I want just time set then exit.

    EDIT: 2 sec later i find solution as usual xd, not sure if its best solution, i just put -e 'console.log("time update")'

  • Yes, that works fine - you just need to upload some code, anything - even 1+2 should work.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

SetTime cronjob

Posted by Avatar for d3nd3-o0 @d3nd3-o0

Actions