timegenerators.rst 880 B

12345678910111213141516171819202122232425262728293031
  1. Timegenerators
  2. ===============
  3. A "timegenerator" is something that describe _when_ you want to do something.
  4. There are 3 kinds of timegenerators in larigira:
  5. single
  6. ------------
  7. With single, you just set a single time the event should happen.
  8. frequency
  9. --------------
  10. Sometimes you have something happening very regularly. For example you might want a jingle every 30minutes, or
  11. a specific show every friday at 8PM.
  12. cron
  13. ----------
  14. Sometimes your specification is very complex.
  15. For example, you might want a specific message to be sent at 10:00, 13:00, 15:00 and 18:00, but only during
  16. working days. That would be hard to do with a single `frequency` event, so you could use a cron
  17. 0 10,13,15,18 * * 1-5
  18. I know, that's very difficult, but is still a possibility you have. If you want to learn how to write crons,
  19. check `this helpful site <https://crontab.guru>`_.