alexanderepstein / cryptowatch

:bird: Cryptocurrency price and account balance monitor
MIT License
294 stars 40 forks source link

Nodoc: Config File #9

Open hickscorp opened 6 years ago

hickscorp commented 6 years ago

Issue Label:

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.

alexanderepstein commented 6 years ago

I will definitely put a little documentation but for now if you run cryptowatch --config it will actually create a template config file for you.

Mine now looks like this config

You can put more than one address for each type of crypto by separating them with a comma and a space. Right now those coins are not supported, but as I am adding new coins now to support more, I would definitely add the later three of the five but I have not heard of the first two, I will look into them :+1:

alexanderepstein commented 6 years ago

Let me know if ef728c41823a4feb89c5f8d6ec4ddcfe14f08748 is enough for you. Otherwise I will look to add more!

C0rn3j commented 6 years ago

I've added my BTC address to the [cryptoConsole-config] block but when I run cryptowatch my account balance is not shown.

Am I doing something wrong? If not, is there any other info I can provide to you that can help you diagnose the issue?

alexanderepstein commented 6 years ago

Can you upload a screenshot on your config file? If it looks correct I would next say to see if the blockchain api service I grab the data from has the balance on their, if it isn't then I'm not sure what I could do to fix the issue. I would direct you to the site but I'm on github on my phone right now bit will look at this later. If you could also provide your btc address that would let me do some debugging on my own and see if it works on my machine

C0rn3j commented 6 years ago
[cryptoConsole-config]
etherAddress =
bitcoinAddress = 1JFH3Kfd5kyDZX5ep8SrpoawFfWfeFaDmV
litecoinAddress =
bitcoinCashAddress =
dashAddress =
fiatCurrency = USD

blockchain.info sees no transactions for some reason, not sure which API you use - https://blockchain.info/address/1JFH3Kfd5kyDZX5ep8SrpoawFfWfeFaDmV

alexanderepstein commented 6 years ago

Thats actually the exact blockchain api I use, which would explain why its returning a 0 balance, can you find your balance on some other blockchain explorer?