Code Monkey home page Code Monkey logo

devcxl / cryptocurrency-notify Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 47 KB

Cryptocurrency-notify is a notification tool designed to detect prices of blockchain tokens, with the aim of assisting individuals in achieving greater returns from the cryptocurrency market. Cryptocurrency-notify是一款旨在检测区块链代币价格的通知工具,旨在帮助个人从加密货币市场获得更大的回报。

Python 84.68% HTML 10.88% Dockerfile 4.44%

cryptocurrency-notify's Introduction

 _____             _                                                   _   _ ___       
|     |___ _ _ ___| |_ ___ ___ _ _ ___ ___ ___ ___ ___ _ _ ___ ___ ___| |_|_|  _|_ _   
|   --|  _| | | . |  _| . |  _| | |  _|  _| -_|   |  _| | |___|   | . |  _| |  _| | |  
|_____|_| |_  |  _|_| |___|___|___|_| |_| |___|_|_|___|_  |   |_|_|___|_| |_|_| |_  |  
          |___|_|                                     |___|                     |___|  

中文

Cryptocurrency-notify is a notification tool designed to detect prices of blockchain tokens, with the aim of assisting individuals in achieving greater returns from the cryptocurrency market.

Usage

usage: cryptocurrency-notify [-h] --config CONFIG [--verbose]

options:
  -h, --help       Show this help message and exit
  --config CONFIG  Config path
  --verbose        Enable verbose mode

Install

  1. Clone code

    git clone https://github.com/devcxl/cryptocurrency-notify.git

  2. create a new virtual environment

    python3 -m venv .env

  3. activate

    source .env/bin/activate

  4. Installation dependencies

    pip install -r requirements.txt

  5. Build

    bash build.sh

  6. Install Binary

    mv dist/main /usr/bin/cryptocurrency-notify

  7. Create systemd configuration

    sudo vim /etc/systemd/system/cryptocurrency-notify.service

  8. Add context:

    [Unit]
    Description=Cryptocurrency-notify
    After=network.target
    
    [Service]
    ExecStart=/usr/bin/cryptocurrency-notify --config /etc/cryptocurrency-notify/config.yaml
    Restart=always
    
    [Install]
    WantedBy=multi-user.target
    
  9. Configuration

    Example

    sudo vim /etc/cryptocurrency-notify/config.yaml

  10. run in background

    sudo systecmtl daemon-reload

    sudo systemctl enable --now cryptocurrency-notify.service

Remove

sudo rm /etc/systemd/system/cryptocurrency-notify.service

sudo rm -r /etc/cryptocurrency-notify/

sudo rm /usr/bin/cryptocurrency-notify

Docker

  1. Clone code

    git clone https://github.com/devcxl/cryptocurrency-notify.git

  2. build

    docker build -t cryptocurrency-notify .

  3. run

    docker run -it --name cryptocurrency-notify -v ${PWD}/config/config.yaml:/etc/coin/config.yaml cryptocurrency-notify

  4. check

    docker log cryptocurrency-notify

    2024-01-14 01:43:54,720 [INFO] daemon successful!
    

cryptocurrency-notify's People

Contributors

devcxl avatar

Stargazers

iamlos avatar

Watchers

 avatar

cryptocurrency-notify's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.