Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Easy!Appointments
  3. Cron Job for Google Calendar Sync not working

Cron Job for Google Calendar Sync not working

Scheduled Pinned Locked Moved Solved Easy!Appointments
7 Posts 2 Posters 3.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    med1aaccess
    wrote on last edited by
    #1

    Hello,

    one feature of the Easy!Appointments App is to sync appointments with Google Calendar. To automate this process you have to create a Cron Job.

    https://easyappointments.org/2021/02/22/configuring-cron-jobs/

    I have tried to add a crontab file in /app/data/, but this does not seem to work. In the Cloudron documentation I read about a scheduler addon that you can put in a Cloudron Manifest. But as far as I understand this is only used for when you are packaging your own app?

    Is there any way I can add a Cron Job within the Easy!Appointments App container?

    Thank you

    Lukas

    nebulonN 1 Reply Last reply
    0
    • M med1aaccess

      Hello,

      one feature of the Easy!Appointments App is to sync appointments with Google Calendar. To automate this process you have to create a Cron Job.

      https://easyappointments.org/2021/02/22/configuring-cron-jobs/

      I have tried to add a crontab file in /app/data/, but this does not seem to work. In the Cloudron documentation I read about a scheduler addon that you can put in a Cloudron Manifest. But as far as I understand this is only used for when you are packaging your own app?

      Is there any way I can add a Cron Job within the Easy!Appointments App container?

      Thank you

      Lukas

      nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      @med1aaccess the current package does not come with cron or any other scheduler enabled. We will add this to the next package release then.

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #3

        I've added the cron-job support to run the sync command now. But before publishing the package, the upstream article you have linked uses a cron pattern to run once every hour. Is that what we want as well in the package? Further I don't have a google calendar to test this here locally, so while the sync command runs, it basically so far does nothing for me.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          med1aaccess
          wrote on last edited by
          #4

          Thank you for your quick response,

          I think it would be useful to run the sync command more frequently, like every 5 minutes. I have tested the sync command successfully and it works as expected, I just wasn't able to automate it via a Cron Job.

          nebulonN 1 Reply Last reply
          0
          • M med1aaccess

            Thank you for your quick response,

            I think it would be useful to run the sync command more frequently, like every 5 minutes. I have tested the sync command successfully and it works as expected, I just wasn't able to automate it via a Cron Job.

            nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #5

            @med1aaccess ok. I have released a new app package with the cronjob run every 5min now.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              med1aaccess
              wrote on last edited by
              #6

              Thank you,

              syncing every 5 minutes to Google Calendar is working now.

              nebulonN 1 Reply Last reply
              0
              • M med1aaccess

                Thank you,

                syncing every 5 minutes to Google Calendar is working now.

                nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #7

                @med1aaccess thanks for letting us know.

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search