

RQ and RQ Scheduler will be used to execute a function that sends a text message notification using the Twilio API at a given datetime.Īt the end of my talk, I will send a text message containing the code I wrote, and a walkthrough on how to get it running to all of the audience members who interacted with the live-coded web application from my session. In the Django app built during this talk, Redis will be used to store subscriber information such as a user's phone number and geolocation. Send text message notifications using the Twilio SMS API. RQ-Scheduler is another simpler alternative (rq/rq-scheduler: A lightweight library that adds job scheduling capabilities to RQ (Redis Queue) ()) that appears to be good for such purposes. You should see a rqworker and rqscheduler instance in the console: ps aux grep rq. Access client-side geolocation data using JavaScript. Configure RQ-Scheduler and RQ-Worker to run with supervisord. Create another file called schedulenotification. Respond to webhook requests with Django. Now that we have a function that provides us with a datetime, and a function that sends a text message, we can use RQ Scheduler. Integrate RQ and RQ Scheduler into a Django web application. Use RQ Scheduler to schedule tasks to be performed at a specific datetime. Use Redis Queue as a lightweight alternative to Celery for executing asynchronous tasks. Access and interpret data from the ( ) on the exact timing on when the ISS will next pass a given geolocation. In this session, attendees will learn how to: I will cover step by step how to build a web application that notifies users via text message when the ISS is passing over them. RQ Scheduler is a small package that adds job scheduling capabilities to RQ, a Redis based Python queuing library.

Given a location on Earth (latitude, longitude) the ISS Open Notify API will compute the next n number of times that the ISS will be overhead.

The international space station (ISS) is an orbital outpost circling high above our heads.
