lnbits scheduler extension [previously: crontabs]
IMPORTANT:
- The user that runs LNBits server MUST have crontab -e permissions in order to read/write to crontab file.
- This extension should be limited to admin account(s).
- min version 0.12.*
LNBitsSchedulerVideo.mp4
Add, Edit, Delete and Monitor your scheduled Jobs from the Main Panel.
![Screenshot 2024-01-19 at 2 39 23 PM](https://private-user-images.githubusercontent.com/73979971/298217104-01656f95-bdde-4015-99c5-415ce9483ddb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyNzU5MDUsIm5iZiI6MTcyMDI3NTYwNSwicGF0aCI6Ii83Mzk3OTk3MS8yOTgyMTcxMDQtMDE2NTZmOTUtYmRkZS00MDE1LTk5YzUtNDE1Y2U5NDgzZGRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA2VDE0MjAwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwYjQ3MzdmOTg0NDIyNmE3MjEyODdiYTJiYmNlYmU2ZDIwMmQ5OWJhOGY5NjBhNzI2ZjVhMmQwMTAyZGU1MGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mdSyoo6JLiyUe3MQyOnQzF0Q2qVmn2osA2-iiK9yD30)
Schedule a specific http call with a specific timed interval.
- Create a new job by clicking "New Scheduled Job"
- Fill the options for your new SCHEDULED JOB
- Enter a Name for your Job
- Select an action (GET/PUT/POST/DEL)
- Enter the URL
- Add any headers if required
- Add body data if required, leave blank if there is no body (e.g. for DELETE)
- enter the scheduled time/day you want to run your job. You can use crontab.guru to help validate your cron schedules.
- Save your scheduled job and return to the main page to test the job (Orange) or start the job (Green arrow)
- All methods for controlling your job are on the main panel [Start/Stop, Edit, Test, View Logs and Delete]
NOTE: Jobs may not run automatically on creation depending on the release version. You will need to start and stop the jobs on the main panel [see image above]. If you are unfamiliar with how the 5 slot scheduling works, visit this resource: https://crontab.guru
![imgtwo](https://private-user-images.githubusercontent.com/73979971/277565748-77f55660-52b6-459c-9ce2-d81e6fa7d1b5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyNzU5MDUsIm5iZiI6MTcyMDI3NTYwNSwicGF0aCI6Ii83Mzk3OTk3MS8yNzc1NjU3NDgtNzdmNTU2NjAtNTJiNi00NTljLTljZTItZDgxZTZmYTdkMWI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA2VDE0MjAwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI4ZTg1OTRjZjQzNDkyYWM2ZmQzYTE5ODIzM2Q5YWZjMWQxZjhmMjRjZmJhNDg1ZTgxZjBiMmE3M2Q3YmRjMTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OhtJ5Z6w-09UsQvpxEh2qkNmz9NT2KI1bGJ4HgTJWjc)
- Individual Job Logs - these are viewable by clicking on the blue info icons on the main panel.
- Test job Logs - this is for testing the job and the result is not recorded to the database only to the test log file.
- Complete Extension Logs - This will show all errors and all events, these are viewable by clicking on the "View all logs" button, located the top of the main panel.