Giter Site home page Giter Site logo

dwisiswant0 / indodax-notify Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 609 KB

Get newest cryptocurrency coin price notifications from Indodax market on your desktop!

Home Page: https://indodax.com/dashboard

License: MIT License

Shell 100.00%
indodax crypto cryptocurrency cryptocurrencies crypto-alerts notify-send bitcoin btc

indodax-notify's Introduction

Indodax Notify

indodax notify

Get newest cryptocurrency coin price notifications from Indodax market on your desktop!

Installation

It's fairly simple, just clone it:

$ git clone https://github.com/dwisiswant0/indodax-notify.git

Dependencies

  1. curl
  2. jq
  3. notify-send (custom), download:
$ (sudo) wget -q "https://github.com/vlevit/notify-send.sh/raw/master/notify-send.sh" -O /usr/local/bin/notify-send
$ (sudo) wget -q "https://github.com/vlevit/notify-send.sh/raw/master/notify-action.sh" -O /usr/local/bin/notify-action
# (sudo) chmod +x /usr/local/bin/notify-*

Usage

First, initialize by passing functions with built-in source shell command.

source "src/functions.sh" .

To get latest price, simply just call getPrice function with required arguments, such as symbol, pair, and order (buy/sell).

getPrice "btc" "idr" "buy"

Formatting price? Call format "price" function instead.

To send notification to your desktop, call sendNotif with pair, price and coin arguments (must be sequence).

sendNotif "idr" "699.000.000" "btc"

Advanced

Cron every N minutes/hours/days or whatever you want!

For examples, cron for every hours:

0 */1 * * * /opt/indodax-notify/main.sh

Examples

See examples at main.sh and edit according to your needs for test.

$ ./main.sh

Legal

This tool can be freely copied, modified, altered, distributed without any attribution whatsoever. However, if you feel like this tool deserves an attribution, mention it. It won't hurt anybody :)

Please, read the license terms. Don't worry, it can be read in less than 30 seconds, unless you have some sort of reading disability - in that case, I'm wondering why you're still reading this text. Really. Stop. Please. I mean, seriously. Why are you still reading?

Contributions

Since this tool includes some contributions, and I'm not an asshole, I'll publically thank the following users for their help:

  • @vlevit for his drop-in replacement for notify-send with more features.

indodax-notify's People

Contributors

dwisiswant0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.