Giter VIP home page Giter VIP logo

cryptowatch's Introduction

Cryptowatch

Monitor prices and account balances for multiple cryptocurrencies

Use either the terminal or Raspberry Pi LCD for monitoring

PythonVer PyPI Codacy Badge platform license

Console Monitor

cryptowatch.png

Install

Pip Install

pip3 install cryptowatch

Snap Package Install

sudo snap install cryptowatch

Snap package maintained by: Marcin Mikołajczak

Usage

usage: Cryptowatch [-h] [-m MONITOR] [-f FILE] [-c] [-v]

Track prices and account balances for bitcoin, ethereum, litecoin, bitcoin cash and dash

optional arguments:
  -h, --help            show this help message and exit
  -m MONITOR, --monitor MONITOR
                        Choose which cryptowatch monitor to use
  -f FILE, --file FILE  Output the current cryptowatch data to the specified
                        file path
  -c, --config          Edit the config file for cryptowatch
  -v, --version         Display the current version of cryptowatch
Terminal Monitor cryptowatch --monitor terminal
Print Information To Terminal Once cryptowatch
Output information to a file cryptowatch -f desiredFilePath
Display the raspberry pi monitor cryptowatch --monitor rpi
Edit the config file cryptowatch --config

Getting Started

  • First install cryptowatch

  • Then run

    cryptowatch --config

    this will create a config file if one does not exist and edit it.

    • The file can be found
      • Windows: C:/.crypto.cfg
      • macOS/Linux: ~/.crypto.cfg
  • Write in the addresses you want to track next to their respective variable, if more then one address for a type of crypto separate them with commas and a space after the comma

  • Save and close the file and now you are ready to use cryptowatch!

The above steps help with getting address balance monitoring, cryptowatch still works without these steps

Programmatic Usage

Dependencies

  • Python 3
  • requests
  • Adafruit-GPIO
  • terminaltables
  • colorclass

Todo

  • Change from curses interface to a table
  • Color the terminal output
  • Support more cryptocurrencies

Donate

If this project helped you in any way and you feel like supporting me

Donate Donate

BTC: 38Q5VbH63MtouxHu8BuPNLzfY5B5RNVMDn
ETH: 0xf7c60C06D298FF954917eA45206426f79d40Ac9D
LTC: LWZ3T19YUk66dgkczN7dRhiXDMqSYrXUV4
DSH: XpV1LtM5PvpfR9z5pYFZVmgcpLkDmrFAKM
XRP: r4ZsnoHM94zMb2SCJ89fYzQqmGgozqLZF1
XLM: GDN7WCUBAKLLUYENLUBM6LA647UAS5QTZDNV3QZMMMQLOJJKPJKACJ3H

License

MIT License

Copyright (c) 2017 Alex Epstein

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

cryptowatch's People

Contributors

delirious-lettuce avatar dependabot[bot] avatar lukaskollmer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cryptowatch's Issues

SyntaxError

def main():
    screen.enable_display(True)  # just in case
    screen.clear()  # just in case
    screen.home()  # start at inital position
    while True:
        showCryptoStats("bitcoin")
        showCryptoStats("ethereum")
        showCryptoStats("litecoin")
    except KeyboardInterrupt:  # <-- where is the `try`?
        screen.clear()
        screen.enable_display(False)

You are missing the try in the try/except. I wasn't sure whether you intended to have the while loop inside of the try/except or if you just wanted the three showCryptoStats calls inside but either way, this doesn't work.

Nodoc: Config File

Issue Label:

  • Bug
  • New feature
  • Enhancement

Description:

I'm new to this cryptowatch script, and I have no clue on how to actually create that portfolio file, what format it should be in. IMO a little bit of documentation would add a ton of traction to this script.

I tried to edit the configuration, but it's little to no use: having to supply one address per crypto is pointless as most people will have several receive addresses, and also I don't see how to add cryptos (Stratis, Peercoin, Dogecoin, IOTA, ADA all seem to be good candidates). A small doc about how to add an API endpoint allowing to monitor this or that would be great.

GLIBC_2.26 not found (required by python3)

Hi, since yesterday, I thought it was an update, I can't start de application. I'm on ubuntu 16.04 LTS and this is the message:

python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by python3)

Nice app! Thanks for your work!

Ubuntu 18.04 snap issue with -c flag sh and nano

Issue Label:

  • Bug
  • New feature
  • Enhancement

Description:
When trying to run cryptowatch -c I am simply presented with the line
sh: 1: nano: not found in the terminal and immediately returned to the terminal prompt

If its a bug make sure to include this section.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:
Ubuntu 18.04 LTS

Update ticker api

Issue Label:

  • Bug
  • New feature
  • Enhancement

Description:
requests.exceptions.HTTPError: 503 Server Error: Service Temporarily Unavailable for url: https://api.coinmarketcap.com/v1/ticker/bitcoin?convert=USD
Browsing that page gives this: {"code": "410 Gone", "reason": "We no longer serving this endpoint here" }

If its a bug make sure to include this section.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version: Ubuntu 16.04.7

Remove the last 2 columns for user who didn't auth the buy/sell api.

Issue Label:

  • Bug
  • New feature
  • [tick] Enhancement

Description:
Can you remove the last 2 columns for user who didn't auth the buy/sell api. It's useless for those who just watch.

If its a bug make sure to include this section.

OS and OS version:

  • [tick] Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:
10.14

getCryptoData is an undefined name

Issue Label:

  • Bug
  • New feature
  • Enhancement

Description:
Undefined names can raise NameError at runtime.

flake8 testing of https://github.com/alexanderepstein/cryptowatch on Python 3.6.2

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./cryptoUtils/cryptoUtils.py:198:28: F821 undefined name 'getCryptoData'
            exchangeRate = getCryptoData(response, "ER")
                           ^

./cryptoUtils/cryptoUtils.py:204:28: F821 undefined name 'getCryptoData'
            exchangeRate = getCryptoData(response, "ER")
                           ^

./cryptoUtils/cryptoUtils.py:210:28: F821 undefined name 'getCryptoData'
            exchangeRate = getCryptoData(response, "ER")
                           ^

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.