Skip to content

Instantly share code, notes, and snippets.

View roryaronson's full-sized avatar
🏄‍♂️

Rory Aronson roryaronson

🏄‍♂️
View GitHub Profile
message {"params"=>{"x"=>1000, "y"=>100, "z"=>100, "speed"=>100}, "method"=>"single_command.MOVE RELATIVE", "devices"=>"63977486-2bde-4a96-93f7-8b578a4ed18d", "id"=>"1bff313b-a233-4f9f-9e8c-720d9a234812", "fromUuid"=>"1868b2d4-20bc-42da-aa11-b84609f78015"}
pi@farmbot ~/farmbot-raspberry-pi-controller $ ruby farmbot.rb
WARN: Unresolved specs during Gem::Specification.reset:
minitest (~> 5.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
/home/pi/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/protocol.rb:158:in `rescue in rbuf_fill': Net::ReadTimeout (Net::ReadTimeout)
from /home/pi/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/protocol.rb:152:in `rbuf_fill'
from /home/pi/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/protocol.rb:134:in `readuntil'
from /home/pi/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/protocol.rb:144:in `readline'
from /home/pi/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http/response.rb:39:in `read_status_line'
@roryaronson
roryaronson / gist:dd5bced495bd6b3f4c5d
Created June 5, 2014 04:59
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-