banner
2021go

2021go

喜欢用大白话,讨厌弯弯绕绕。
twitter_id
jike

Hands-on Note - Pixel Clock Displaying Crypto Prices

20240214_190206_1

Summary#

I previously bought a finished product, and the Crypto price display was also provided by the seller. However, the interface can only display one type of cryptocurrency, and the interface often has problems and cannot display. So I decided to do it myself.

Preparation#

For Awtrix hardware and software, please refer to the two articles on Zhang Dama's website. They are well written and suitable for small partners with strong hands-on abilities. If you have average hands-on abilities like me, you can buy finished products on Taobao or Xianyu.
Awtrix Part 1: [Awtrix] Pixel Clock, Detailed Introduction Tutorial from Hardware to Software
Awtrix Part 2: [Awtrix] Pixel Clock, Detailed Introduction Tutorial from Hardware to Software

There are offline systems and official systems. Since I couldn't find the offline firmware with cryptocurrency function mentioned in the tutorial above, the following tutorials are all based on the official firmware. Crypto price display requires a networked system. This article focuses on deploying the Docker version of Awtrix2 service.

Configuration#

The principle is very simple. Once you have the display, you just need a data push service. This tutorial is based on the Awtrix2 official tutorial.

Service Deployment:#

Hardware#

A server:
Cloud-based, such as Alibaba Cloud, Tencent Cloud
Local-based, such as a self-built server or a regular computer

Configuration Process#

Install Docker#

  • Linux
    System Requirements:
    Docker supports 64-bit versions of CentOS 7 and CentOS 8 or higher. It requires a Linux kernel version of at least 3.10 and recommends the latest version of Ubuntu.
    Automated installation code:
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
  • Windows
    Refer to the official tutorial:
https://docs.docker.com/desktop/install/windows-install/

Deploy Awtrix2#

One-click deployment code:

docker run --name AwTriX2 -p 7000:7000 -p 7001:7001 -p 5568:5568/udp --restart always -e TZ=Europe/Berlin  whyet/awtrix2:latest 

For more information, refer to:
https://github.com/wHyEt/Awtrix2-Docker

Configure Awtrix2#

I am using the Windows version of Docker, so the following examples are for the Windows version only.

After deploying the Docker version of Awtrix2, you can see the following in the Docker client:

image
You can see the current status of Awtrix2 in the Status section.

Access the IP address of the device where Docker is located plus the port number to make the settings. Make sure to open ports 7000, 7001, and 5568 in the firewall.
For example, if the device IP is 192.168.2.14, enter 192.168.2.14:7000 in the browser address bar.
After entering, you will see the following page:
Change the interface language to zh-CN in the Host Settings and click the save button in the upper right corner.
image
If there is no device connection configured on the pixel display, it will prompt that there is no device connected. You need to configure the connection service on the pixel display first. Refer to the above tutorial 2 for more information.

Crypto Price Display#

By default, only the time plugin is installed. The Crypto plugin needs to be installed from the application store.
image
After installation, click the gear button to enter the plugin settings.
The left side is the display settings, which can be set according to your preferences. After setting, click the save button in the upper left corner.
The right side is the settings for the cryptocurrencies and information categories to be displayed. Similarly, set them and click the save button in the upper right corner.
image
Now your pixel display will show the corresponding information according to your settings. You can explore more interesting ways to play on your own.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.