Use a Raspberry Pi and a OLED screen to constantly output BTC/GBP rate
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
Open terminal of Raspbain and install libraries (BCM2835, wiringPi, Python) as below
#Installing wiringPi libraries, sudo apt-get install wiringpi #For Pi 4, you need to update it cd /tmp wget https://project-downloads.drogon.net/wiringpi-latest.deb sudo dpkg -i wiringpi-latest.deb gpio -v #Installing python libraries #python2 sudo apt-get update sudo apt-get install python-pip sudo apt-get install python-pil sudo apt-get install python-numpy sudo pip install RPi.GPIO sudo pip install spidev #python3 sudo apt-get update sudo apt-get install python3-pip sudo apt-get install python3-pil sudo apt-get install python3-numpy sudo pip3 install RPi.GPIO sudo pip3 install spidev
Get the script from the github repo
To run the script on startup, run the following command
sudo vim /lib/systemd/system/btc_stats.service
Add this to the file:
[Unit] Description=BTC Stats After=multi-user.target [Service] ExecStart=/usr/bin/python3 /home/pi/path-to-script/stats.py [Install] WantedBy=multi-user.target
Make sure you change the path to the actual path to your script and also make sure that the python 3 file is pointing to the correct location of python3
Now the unit file has been defined we can tell systemd to start it during the boot sequence :
sudo systemctl daemon-reload sudo systemctl enable btc_stats.service
Reboot the Pi and your custom service should run:
sudo reboot
Create an account to leave a comment. Already have an account? Log In.
We could do the same to show the weather depending on which location you in. I will do the same but this the weather. Could be also nice to make one to show English Premier League Football results.
Thank you. The display is really nice and crisp. Watching the feed live is a bit like a roller coaster ride right on my desk.
I really like the look of that OLED display. Not surprised to learn that it's from Waveshare.
Nice looking project. Not sure I'd have the stomach to watch the conversion rate all day myself though ;-)
Become a member to follow this project and never miss any updates
That sounds like a fantastic and engaging project! Repurposing an old Raspberry Pi 3 for a live Bitcoin to GBP stats display is a great way to make use of existing hardware. The simplicity of the project not only makes it accessible for various skill levels but also ensures a quick and enjoyable experience.
To create this project, you can explore using Python with libraries such as Requests for fetching live Bitcoin data and perhaps Matplotlib or Tkinter for the user interface. Additionally, consider incorporating an API like CoinGecko or CoinMarketCap to retrieve real-time Bitcoin to GBP exchange rates.
Start by setting up your Raspberry Pi, ensuring that it's connected to the internet. Then, write a Python script that fetches the live Bitcoin data and updates the display accordingly. Depending on your preference, you can present the information in a text-based format or create a simple graphical user interface.
Remember to handle errors gracefully and consider implementing features like automatic data refreshing at regular intervals. This way, your project will continuously provide up-to-date information without requiring constant manual intervention.
Overall, it's a creative and practical way to breathe new life into an old Raspberry Pi, turning it into a dynamic tool for tracking cryptocurrency values. Have fun with your project! CHECK:https://www.supreme-cars.uk/best-taxis-in-high-wycombe/