view · edit · sidebar · attach · print · history

< Niklaus.20170529-vetiquinol-importer | Index | Niklaus.20170523-vetoquinol-rack >>



  • brand2csv gem does not contain the binary
  • Vetoquinol updater problem
  • Add totals to rapflag
  • Keep in Mind



brand2csv gem does not contain the binary

Analysing Rakefile and gemspec.

Fixed with commits

Vetoquinol updater problem

no implicit conversion of nil into String
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/fileutils.rb:1447:in `path'
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/fileutils.rb:1447:in `block in fu_list'
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/fileutils.rb:1447:in `map'
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/fileutils.rb:1447:in `fu_list'
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/fileutils.rb:186:in `mkdir_p'
/var/www/ `block in poll'
/var/www/ `each'
/var/www/ `poll'
/var/www/ `block in poll_sources'
/var/www/ `block in load_sources'
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/psych/deprecated.rb:32:in `each'
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/psych/deprecated.rb:32:in `load_documents'
/var/www/ `load_sources'
/var/www/ `poll_sources'
/var/www/ `run'
/var/www/ `update'
/var/www/ `block (2 levels) in run_updater'
/var/www/ `loop'
/var/www/ `block in run_updater'

Looking for clues in the log files

grep update log/2017/05/24/app_log 
D, [2017-05-24T05:00:00.000344 #17798] DEBUG -- : server.rb:94:in `block (2 levels) in run_updater' update starting
I, [2017-05-24T05:00:00.000446 #17798]  INFO -- : updater.rb:12:in `run' started at 2017-05-24 05:00:00 +0200
D, [2017-05-24T05:00:04.212707 #17798] DEBUG -- : server.rb:96:in `block (2 levels) in run_updater' update finished
D, [2017-05-24T05:00:04.212815 #17798] DEBUG -- : server.rb:92:in `block (2 levels) in run_updater' updater sleeping 86395.79 seconds. run_only_once_at_startup false

Analysing the code I see that the @backup_dir is not initialized. Also this part of the polling is never touched when running the unit tests.

Fixed the test_poll_message__normal and the underlying problem.

Pushed commits

Add totals to rapflag

Create a new file for each currency with the name "Currency_total.csv" summarizing "Income" and "balance" for each day across the three wallet files of each currency. We do not touch: *rate* and *balance_in_usd*.

Added some two currencies and shows the configured currencies in the help with commit Show currencies in help. Add XRP,ETH

We iterate in bin/rapflag over RAPFLAG::Config['currencies'] and RAPFLAG::Config['wallets'] I should inverse the order. But still the History class is initialized for each wallet and each currencies. Is it easier to change the History class or parse at the end each CSV? As we have spec test I will try modifying the History class. Added a global variable to keep track.

Running rapflag -b and checking the result for BFX and 2016.08.20 reveiled some problems. No. At this date there were no movements. Testing 2017.05.24 showed that the total was correct.

Changed the -c(--clean) flag to (-b, --bitfinex). Also showing the defined currencies in the help text. Pushed commits

view · edit · sidebar · attach · print · history
Page last modified on May 24, 2017, at 03:26 PM