![]() There is also a data caching option which is enabled by default but can be customised. Once completed, you can add your API key to the widget settings once the plugin is enabled and added via the dashboard control. To get an API Key, visit and add a valid email address to receive your key. Using NASA Astronomy Picture of the Day widget It requires the user to generate an API Key from the NASA API website and support caching the API calls so as not to spam the API. This plugin, adds a simple widget which pulls the NASA Astronomy Picture of the Day in to the admin dashboard. NASA Astronomy Picture of the Day widget Overview In the Control Panel, go to Settings → Plugins and click the “Install” button for NASA Astronomy Picture of the Day widget. Then tell Composer to load the plugin: composer require adampatpattison/craft-nasaapod Open your terminal and go to your Craft project: cd /path/to/project To install the plugin, follow these instructions. This plugin requires Craft CMS 3.0.0-beta.23 or later. She loves exploring newer technologies.NASA Astronomy Picture of the Day widget plugin for Craft CMS 3.xĪdds a simple widget which pulls the NASA Astronomy Picture of the Day in to the admin dashboard Requirements Reshma Sathe is a Master of Computer Science graduate and a Software Developer with experience in Java, Python, Kotlin, and other programming languages. Building a NASA Satellite Imagery SMS Bot with Python, Flask, and Twilio.Automatically Send Birthday Wishes with Python Flask and WhatsApp.Or, check out some of the other tutorials on the Twilio blog for ideas on what to build next: For this application to be deploy-ready, consider changes like containerizing the application, adding admin functionality, building a model to store the SMS objects, etc. The above application is a beginner Django project with minimal configuration. Or you can call a Weather API, tweak the SMS content, and turn it into a daily series of weather for your locality. If you're interested in building more astronomy-related projects, you can try other NASA APIs. Send messages periodically using Celery and Django.Write a function to send an SMS message using the Twilio API.If you click on the specific link, the detailed logs are shown. We can also check the logs of whether the SMS was sent or not, what the details were, etc., in the Twilio console. You can create a NASA APOD API Key on the NASA Open APIs page by filling in the form:Ĭreate the Django project and the Python virtual environmentĬreate a new Django project from your command prompt called nasa_apod_sms_project, then navigate to this new directory:įollowing that will be the NASA Picture of the day's title, description, and a link to the photo. Your Account SID and Auth Token are found in your Twilio account dashboard as shown below: The Python installation manager, known as pip.It's free and includes 1000 requests per minute. You will need an API Key to use theNASA Astronomy Picture of the Day API. If your operating system does not provide a Python interpreter, you can download an installer from the site. ![]() The complete code is available in this repository.
0 Comments
Leave a Reply. |