The Crypto-Currency Alert
The Crypto News Alert sends you updates directly from a crypto project or exchanges themselves. You are able to receive alerts from all projects and exchanges or filter and set alerts for a specific project and/or specific category of news such as Upcoming Events, Exchange New Listings, Funds Movement, General News, Milestones Reached, Partnerships or Software Releases.
Hardware Connections:
=> Connect power to Bolt IoT module and connect it by type B cable
=> After checking the status of wifi module and cloud connection join our two devices for output buzzer and led respectively
=> Connect the male/female jumper wire to the led and buzzer with bread-board
=> Connect digital write to port zero to led and port one to the buzzer
Code for this project of creating an online server-based crypto-currency alert system :
The configuration file contains the details of all links related to API function of Twilio in this particular manner:
SID = 'You can find SID in your Twilio Dashboard'
AUTH_TOKEN = 'You can find on your Twilio Dashboard'
FROM_NUMBER = 'This is the no. generated by Twilio. You can find this on your Twilio Dashboard'
TO_NUMBER = 'This is your number. Make sure you are adding +91 in beginning'
API_KEY = 'This is your Bolt Cloud accout API key'
DEVICE_ID = 'This is the ID of your Bolt device'
Code Explanation:
1. Importing each and every file and inbuilt functions to the main file of the code.Basically we keep the configuration file separate so that the important key and SID can be used quickly without any hassle
2. Creating as well as importing bolt python with in-built features of sending SMS, generating a function object to execute / connection to the Bolt IoT chip
3. Creating a function for getting cryptocurrency rate from Cryptocompare API using the requests library function for gathering URL data
4. Creating a function for getting multiple data for the currency and comparing the profit.If the profit is in the range of 0-5 % then the led will turn on, if profit increases between 5-10 % then the buzzer will start, if the profit is more than 10 percent then it will send your device an SMS that indicates u to take a needful step.
5. Infinite while loop using True (ls: to exit the loop use "ctrl+c") we create an outlook using print statement for creating the system. Using if-else-if to generate multiple cryptocurrency choices.
Youtube Link For my project :
Comments