Coder Social home page Coder Social logo

bluppfisk / coindicator Goto Github PK

View Code? Open in Web Editor NEW
156.0 156.0 40.0 2.77 MB

A crypto-currency (Bitcoin, Ethereum et al) market price indicator for the Linux desktop. Sits in the tray and lets you set alerts. Supports GNOME, Unity and KDE.

License: MIT License

Python 97.93% Shell 2.07%

coindicator's People

Contributors

alessiocarrafa avatar arnau-foraster avatar bluppfisk avatar chrisplusplus avatar dependabot[bot] avatar eliezeraquino avatar eloo avatar georgekarapi avatar nilgradisnik avatar okwme avatar rishabh-rawat avatar sicsim avatar taskula avatar thesolarminer avatar tutorgaming 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

coindicator's Issues

How to remove this app

Hi,

I tried to install this on my fedora but then I found another app for gnome shell...
How could I remove this app please ?

Thanks for your help.

work on XFCE?

Does it work on XFCE? I tried to install it on kali linux and I can see the coin symbol, but not the price. if right click on coin icon i can see the price

Piggy Icon

Is there a way to hide the pig icon and only show the coin/amount that you want?

Having trouble running make

Hi!
Running python3 coin/coin.py i get this output:

INFO:root:Coin Price indicator v0.3.0

(coin.py:29120): GLib-GIO-ERROR **: Settings schema 'org.nil.indicator.coinprice' does not contain a key named 'assetpair-bitstamp'

What should I do to make it work?

KeyError when loading new asset before previous asset was loaded

This is due to the asynchronous nature. Sometimes the active asset pair of an exchange has already changed and the correct key cannot be found in the response to the request that was fired before the asset pair was changed.

Solutions may include:

  • checking validity of a response (whether or not it belongs to the currently active asset pair)
  • setting up a control structure rather than functions passing on data to each other
  • letting the worker thread select the key

ModuleNotFoundError: No module named 'notify2'

I've run your exact instructions on an Ubuntu 18.04
I get this error:
ModuleNotFoundError: No module named 'notify2'

I'm not a python dev or know what is going on here.. any thoughts on this bug when I rollow your steps and get this error after I use

./run.sh

Cheers!

Alarm

High/low price alarm. Threshold should be configurable from the Preferences window.
Alarm should fire Ubuntu notification.

feature request: percent change alert

I'd like to be able to set alerts based on percent price change. This requires some local storage potentially, or it can be naive and only alert within the timeframe of price update initially. Setting this would be a bonus.

cant run on ubuntu 16

python3 coin/coin.py file=startmany-btx.yaml
Traceback (most recent call last):
File "coin/coin.py", line 5, in
import os, signal, yaml, sys, logging, gi
ModuleNotFoundError: No module named 'gi'

If i run as sudo - something works but i cant see in tray

INR support

support for Indian Rupee (INR) currency symbol

Add discovery of asset pairs

Rather than making contributors hardcode all the possible asset pairs, write a routine that lets exchanges discover the available pairs (at first run, and at user initiative afterward)

doesn't install on Ubuntu 20.04

(coinprice-indicator) gavin@Inspiron:~/coinprice-indicator$ ./install.sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
gir1.2-appindicator3-0.1 is already the newest version (12.10.1+20.04.20200408.1-0ubuntu1).
gir1.2-gtk-3.0 is already the newest version (3.24.18-1ubuntu1).
libcairo2-dev is already the newest version (1.16.0-4ubuntu1).
libdbus-glib-1-2 is already the newest version (0.110-5fakssync1).
python3-venv is already the newest version (3.8.2-0ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Collecting certifi==2018.8.24
Using cached certifi-2018.8.24-py2.py3-none-any.whl (147 kB)
Requirement already satisfied: chardet==3.0.4 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 2)) (3.0.4)
Collecting idna==2.7
Using cached idna-2.7-py2.py3-none-any.whl (58 kB)
Collecting notify2==0.3.1
Using cached notify2-0.3.1-py2.py3-none-any.whl (8.0 kB)
Collecting pygame==1.9.4
Using cached pygame-1.9.4.tar.gz (4.8 MB)
ERROR: Command errored out with exit status 1:
command: /home/gavin/coinprice-indicator/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-814taf_z/pygame/setup.py'"'"'; file='"'"'/tmp/pip-install-814taf_z/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-814taf_z/pygame/pip-egg-info
cwd: /tmp/pip-install-814taf_z/pygame/
Complete output (12 lines):

WARNING, No "Setup" File Exists, Running "config.py"
Using UNIX configuration...

/bin/sh: 1: sdl-config: not found
/bin/sh: 1: sdl-config: not found
/bin/sh: 1: sdl-config: not found

Hunting dependencies...
WARNING: "sdl-config" failed!
Unable to run "sdl-config". Please make sure a development version of SDL is installed.
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

install.sh fails (dbus-python?) on 2 of 3 Ubuntu 16.04 Unity

I have three systems running Ubuntu 16.04 with Unity 7, all set up fairly similarly. On the first system, install.sh runs without errors and the indicator works fine using run.sh. On the other two systems, install.sh fails in the same way. The last line of console output is:
./install.sh: line 6: vext: command not found
(so this may be a duplicate of issue #63)

Between the working system and the failing ones, the install.sh output is nearly identical up until the line:
Running setup.py install for dbus-python ...
where the line ends with done for the good system and error for the failing ones.

After this error, the output contains some detailed info about the problem. However, I'm not familiar enough with Python to figure out what the problem is, especially when using a virtualenv.

I've attached 3 files containing the console output from running install.sh on each system:

install_out_sys1_good.txt (successful build)
install_out_sys2_fail.txt
install_out_sys3_fail.txt

New Crypto Icon

I have found a very good collection of Icon set on Github located at --> AllienWorks
I consider by using this icon set will add support for many new Icons in this application.

Slow menu building and submenus not working in GNOME 3

In Ubuntu 17.10 with GNOME 3, it is impossible to select assets as submenus are not correctly shown. Moreover, building the menu is most likely what stalls the program for a while. There may simply be too many menu items and I'm looking to building a settings window instead where you can select the assets from a (searchable) dropdown.

Other coins disappear on the top bar

Let's say I add four tickers: BTC, ETH, LTC and XRP. When I restart my PC or restart coinprice-indicator, all coin tickers disappear except the main one (BTC). I have to re-add the tickers every time I restart, why is that? I'm on Ubuntu 16.04 LTS by the way.

Better asset selection

It would be better if you could select assets as follows:

source currency > target currency (limited by source) > exchange (limited by source and target)

Feature Request: See set alerts

I'd like to be able to see what alerts I've set, and if I can't set more than one of them at a time (not obvious at this point), I'd like to be able to do that.

Custom conversion

Say you have the ticker price for eth to usd and that for another cryptocurrency to eth, would it be possible to add a feature to convert the other cryptocurrency to usd?

Messy code

The code is in need of urgent cleanup. It needs to be way more flexible and extensible than now. I don't really have the time and my eyes are already growing calices. Would appreciate any help and/or pointers.

Websocket support

While using my phone hotspot the other day, I noticed how much data the REST API takes with 5 tickers and 3s refresh rate: constantly pulling at 10-15KBps. Websockets should minimise the amount of bandwidth.

pygame installed but doesn't load

~/coinprice-indicator$ ./run.sh
~/coinprice-indicator$ Traceback (most recent call last):
  File "coin/coin.py", line 17, in <module>
    from indicator import Indicator
  File "/home/user/coinprice-indicator/coin/indicator.py", line 8, in <module>
    from alarm import Alarm, AlarmSettingsWindow
  File "/home/user/coinprice-indicator/coin/alarm.py", line 4, in <module>
    import pygame
ImportError: No module named 'pygame'

Requirement packages is installed.

~/coinprice-indicator$ python3 -V
Python 3.5.2

~/coinprice-indicator$ dpkg -l |grep -E 'python-pygame|python3-gi|python3-yaml|python-notify|python-idna|python-requests|python-ruamel|python-urllib3|python-dbus|python-chardet|python-certifi'
ii  python-certifi                              2015.11.20.1-2                                                              all          root certificates for validating SSL certs and verifying TLS hosts
ii  python-chardet                              2.3.0-2                                                                     all          universal character encoding detector for Python2
ii  python-dbus                                 1.2.0-3                                                                     amd64        simple interprocess messaging system (Python interface)
ii  python-idna                                 2.0-3                                                                       all          Python IDNA2008 (RFC 5891) handling (Python 2)
ii  python-notify                               0.1.1-4                                                                     amd64        Python bindings for libnotify
ii  python-pygame                               1.9.1release+dfsg-10                                                        amd64        SDL bindings for games development in Python
ii  python-ruamel.ordereddict                   0.4.9-1                                                                     amd64        dictionary that keeps keys in insertion resp. sorted order
ii  python-ruamel.yaml                          0.10.23-1                                                                   amd64        roundtrip YAML parser/emitter (Python 2 module)
ii  python-urllib3                              1.13.1-2ubuntu0.16.04.2                                                     all          HTTP library with thread-safe connection pooling for Python
ii  python3-gi                                  3.20.0-0ubuntu1                                                             amd64        Python 3 bindings for gobject-introspection libraries
ii  python3-gi-cairo                            3.20.0-0ubuntu1                                                             amd64        Python 3 Cairo bindings for the GObject library
ii  python3-yaml                                3.11-3build1                                                                amd64        YAML parser and emitter for Python3

I'm using fresh Coin Price Indicator repository clone.
OS Ubuntu 16.04.5

Xubuntu 18.04 - Package 'python3-pygame' has no installation candidate

Firstly, thank you so much for this amazing simple indicator for Ubuntu. This is what ive been looking for for a long time!

i just want to mention that ive been having difficulty installing this on a fresh installation of Xubuntu 18.04.
I kept getting this error: Package 'python3-pygame' has no installation candidate

Then i went to remove python3-pygame from install.sh but then it gave an error:

Building wheels for collected packages: PyYAML
  Running setup.py bdist_wheel for PyYAML ... error
  Complete output from command /home/test/coinprice-indicator/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-shzygl8g/PyYAML/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpyu3ynxd5pip-wheel- --python-tag cp36:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help
  
  error: invalid command 'bdist_wheel'
  
  ----------------------------------------
  Failed building wheel for PyYAML
  Running setup.py clean for PyYAML
Failed to build PyYAML

So what i did was:
cd coinprice-indicator
source ./bin/activate
pip3 install pygame

After that, i ran ./install.sh again and it finished without errors, then clicked on the Coinindicator created icon, and it loaded everything fine. The only problem is that i cannot see the actual values on the taskbar next to the Ticker i create.
2020-09-12

Does this have anything to do with the fact that the specific package python3-pygame wasnt installed?
Also, did i install the correct package for pygame?

dependencies too much

With a Ubuntu 20.10 set up that has a lot of desktop software installed, this package still yields the additional:

  libblkid-dev libbrotli-dev libcairo-script-interpreter2 libcairo2-dev libffi-dev libfontconfig1-dev libfreetype-dev
  libfreetype6-dev libglib2.0-dev libglib2.0-dev-bin libmikmod3 libmount-dev libpcre16-3 libpcre2-dev libpcre2-posix2 libpcre3-dev
  libpcre32-3 libpcrecpp0v5 libpixman-1-dev libpng-dev libpng-tools libportmidi0 libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0-0
  libselinux1-dev libsepol1-dev libxcb-render0-dev libxcb-shm0-dev libxext-dev libxrender-dev python3-numpy python3-pygame
  uuid-dev x11proto-xext-dev

Wonder why so many packages are needed?

AttributeError: 'Indicator' object has no attribute 'active_asset_pair'

ubuntu14, "make install" was working, but "make" failed to start the application, error messages are:

python3 coin/coin.py
INFO:root:Coin Price indicator v0.3.0
Traceback (most recent call last):
File "coin/coin.py", line 140, in
coin = Coin()
File "coin/coin.py", line 64, in init
self.add_indicator()

File "coin/coin.py", line 106, in add_indicator
indicator.start()
File "/home/sbai/Downloads/coinprice-indicator-master/coin/indicator.py", line 90, in start
self._start_exchange()
File "/home/sbai/Downloads/coinprice-indicator-master/coin/indicator.py", line 112, in _start_exchange
home_currency = self.active_asset_pair.lower()[1:4]
AttributeError: 'Indicator' object has no attribute 'active_asset_pair'

`Add ticker` gives an error

When i try to add ticker, I get the following errror

Traceback (most recent call last):
  File "./coin/coin.py", line 248, in _add_ticker
    i = self._add_indicator(self.settings.get('tickers')[len(self.settings.get('tickers')) - 1])
IndexError: list index out of range

My user.conf file is

plugins:
- binance: true
- bitfinex: false
- bitstamp: false
- bittrex: false
- cexio: false
- gdax: false
- gemini: false
- hitbtc: false
- kraken: false
- okcoin: false
- poloniex: false
- unocoin: false
recent: []
tickers: []

I am not sure what to add in tickers.

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.