Iot is the network of physical devices, vehicles, home appliances, and other items embedded with electronic, software, sensors, actuators, and network connectivity which enables these objects to connect and exchange data.
The first IoT device was believed to be a toaster which was developed by John Romkey in 1990. But the term iot was given by Kevin Aston in 1999.
Iot was officially born in 2008, when more electronic objects were connected to the internet than people. The human population stood at 6 billion, while connected devices reached 12 billion.
CryptocurrencyCryptocurrency, sometimes called crypto-currency or crypto, is any form of currency that exists digitally or virtually and uses cryptography to secure transactions. Cryptocurrencies don't have a central issuing or regulating authority, instead using a decentralized system to record transactions and issue new units.
Cryptocurrency market is very volatile, trading prices for some tokens can experience a sudden spike up or downturn in a matter of minutes. As a result, traders are facing difficulty following all the trading price movements unless they are monitoring them manually. Hence, we propose a real-time alert system for monitoring those trading prices, sending notifications to users if any target prices match or an anomaly occurs. We adopt a streaming platform as the backbone of our system.
APIAn application programming interface is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build or use such a connection or interface is called an API specification.
MotivationAs we have seen the trend from the last few years, there is a hype on investing in cryptocurrency. So, we have tried to make a price alert system using IoT. The price of single Bitcoin has soared more than 1000% since the start of the year. We have seen that the price is always fluctuating and people wait for a good time to invest. Nowadays when everything is getting digitalized and easy to access so why not having a user friendly interface that can keep you updated with the price for cryptocurrency investment.
The main objective of this project is to bridge the gap between full-time cryptoInvestors and initial cryptocurrency Investors. To keep a track of good time of selling or buying coins we planned to build a crypto alert system using Bolt IoT that will notify an individual about the crypto price.
Hardware Connections:We have connected the positive pins of the buzzer to pin 1 of module and LED to pin0 of module respectively and their negative pins to GND, using a breadboard.
Power on the module and connect it to the hotspot.
Twilio: Twilio is a third-party SMS functionality provider. It is a cloud communications platform as a service company. Twilio allows software developers to programmatically make and receive phone calls and also send and receive text messages using its web service APIs.
Ubuntu: Ubuntu is a Linux distribution based on Debian and composed mostly of free and open-source software. Ubuntu is officially released in three editions: Desktop, Server, and Core for Internet of things devices and robots. All the editions can run on the computer alone, or in a virtual machine.
Software implementation:In the following block of code we have imported important files like json for converting python dictionaries to json strings, time to return the number of seconds passed since epoch and conf is the file containing private api keys and tokens.
Now to fetch the data from Bolt Cloud, we will create an object called 'bolt' using which you can access the data on your Bolt.
For the Bolt Cloud to identify your device, you will need to provide the API key and the Device ID when creating the mybolt object. Since the conf file holds the API key and Device ID variables, you can use them as follows
The below code will automatically fetch your SID, ATOKEN, TO_NUM and FROM_NUM that you have initialized in conf.py file. Make sure you have given correct value in conf.py file.
This inputs the user demands for bitcoin.
Below is the function definition to check the current bitcoin market value and return the corresponding to the user.
This is the main code block below which incorporates the function price_check and checks the condition whether the selling price entered by the user is less than or greater than the current bitcoin market value and gives the user alert in both cases.
Message is generated in both cases stating different reasons but LED glows when current bitcoin market value is lesser than selling price as shown and Buzzer beeps when current bitcoin market value is greater than user's selling price.
Results:In the above image the user is asked to enter the corresponding country currency in which he/she wants to invest.
In the above output window after entering the selling price he/she can get current bitcoin market value directly and after comparing current bitcoin market value with selling price the output message and mail are sent to the user and output is also displayed on the breadboard.
The following is the output at breadboard:
And following are the screenshots of messages at user's smartphone after inputting different values of selling price at various currencies:
Internet of Things is the concept in which the virtual world of information technology is connected to the real world of things. The technologies of the Internet of things such as RFID and Sensor make our life become better and more comfortable.
While the number of tradable digital assets increase, the traders and holders face the challenge of trying to keep track of all their assets' price movement. It is impossible for them to monitor all the price actions manually. In order to address this issue we build an intelligent price alert system to meet their need of price tracking. Our system can store user price alert targets, and retrieve real-time trading prices of all the assets available from different exchanges. It then automatically sends alerts to all the user’s mobile devices whenever their price is lesser or greater than market value. Test results show that it takes an average of 30 seconds for round trip for each price data; from sending it to Bolt cloud, getting it processed and sending an alert to a user’s device.
Comments
Please log in or sign up to comment.