Skip to content

Instantly share code, notes, and snippets.

@roryaronson
Created June 5, 2014 04:59
Show Gist options
  • Select an option

  • Save roryaronson/dd5bced495bd6b3f4c5d to your computer and use it in GitHub Desktop.

Select an option

Save roryaronson/dd5bced495bd6b3f4c5d to your computer and use it in GitHub Desktop.
After starting sync.rb and then controller.rb, this is what I get, though it still seems to function. Line 11 gets repeated indefinitely
pi@farmbot ~/farmbot-raspberry-pi-controller $ ruby controller.rb
[FarmBot Controller]
starting up
connecting to hardware
starting farmbot
DEPRECATION WARNING: This dynamic method is deprecated. Please use e.g. Post.find_or_create_by(name: 'foo') instead. (called from check_refresh at /home/pi/farmbot-raspberry-pi-controller/lib/database/dbaccess.rb:116)
checking schedule
DEPRECATION WARNING: Calling #find(:all) is deprecated. Please call #all directly instead. You have also used finder options. These are also deprecated. Please build a scope instead of using finder options. (called from get_command_to_execute at /home/pi/farmbot-raspberry-pi-controller/lib/database/dbaccess.rb:98)
DEPRECATION WARNING: Relation#all is deprecated. If you want to eager-load a relation, you can call #load (e.g. `Post.where(published: true).load`). If you want to get an array of records from a relation, you can call #to_a (e.g. `Post.where(published: true).to_a`). (called from get_command_to_execute at /home/pi/farmbot-raspberry-pi-controller/lib/database/dbaccess.rb:98)
no command found, wait
DEPRECATION WARNING: This dynamic method is deprecated. Please use e.g. Post.find_or_create_by(name: 'foo') instead. (called from check_refresh at /home/pi/farmbot-raspberry-pi-controller/lib/database/dbaccess.rb:116)
DEPRECATION WARNING: This dynamic method is deprecated. Please use e.g. Post.find_or_create_by(name: 'foo') instead. (called from check_refresh at /home/pi/farmbot-raspberry-pi-controller/lib/database/dbaccess.rb:116)
DEPRECATION WARNING: This dynamic method is deprecated. Please use e.g. Post.find_or_create_by(name: 'foo') instead. (called from check_refresh at /home/pi/farmbot-raspberry-pi-controller/lib/database/dbaccess.rb:116)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment