farmbot_os/README.md

97 lines
2.7 KiB
Markdown
Raw Normal View History

2014-01-12 11:54:11 -07:00
farmbot-controller
==================
2014-01-12 11:58:55 -07:00
This software is responsible for receiving the commands from the 'farmbot cloud backend', execute them and report back the results.
Technical Stuff
---------------
2014-01-12 11:58:55 -07:00
* Written in Ruby
2014-05-07 14:25:51 -06:00
* Data is stored in sqlite 3
2014-01-12 11:58:55 -07:00
* Running on Raspberry Pi
* Sends commands to hardware via serial with g-code (see below)
2014-01-12 11:58:55 -07:00
* Hardware is an Arduino Mega with a RAMPS 1.4 board
* Communication with cloud using [MeshBlu](https://github.com/octoblu/meshblu) (machine instant messaging)
2014-01-15 15:14:52 -07:00
2015-01-16 10:47:31 -07:00
Prerequisites
2014-01-15 15:14:52 -07:00
============
Install Ruby 2.2
----------------
This gem requires Ruby 2.2. As of this writing, a Pi is loaded with 1.9.3 by default.
To upgrade your ruby version, try this:
```
curl -L https://get.rvm.io | bash -s stable --ruby
```
This will take about 2 hours on a standard pi.
2014-01-25 14:22:40 -07:00
Raspberry PI
2014-01-15 15:14:52 -07:00
------------
Update the RPi, install ruby, firmate and the arduino IDE
```
2014-01-15 15:14:52 -07:00
sudo apt-get update
sudo apt-get install git-core sqlite3 arduino
```
2014-01-15 15:14:52 -07:00
Clone, install and run:
```
2014-05-19 01:59:58 -06:00
git clone https://github.com/FarmBot/farmbot-raspberry-pi-controller
cd farmbot-raspberry-pi-controller
bundle install
ruby farmbot.rb
```
At this point, your MeshBlu credentials can be found in `credentials.yml`
2014-01-15 15:14:52 -07:00
2015-06-09 06:17:37 -06:00
Process Monitoring (optional)
-----------------------------
TODO: Write how to start process monitoring.
2014-01-15 15:14:52 -07:00
Arduino
-------
**If your device doesn't use `/dev/ttyACM0`**: Write the name of your serial device (usually /dev/ttyUSB0) in `serial_port.txt`.
You will need to flash your Arduino with custom firmware. For instructions on how to do this, see [the FarmBot-Arduino github page](https://github.com/FarmBot/farmbot-serial)
2014-10-19 13:15:07 -06:00
2014-02-13 14:04:39 -07:00
Author
------
* Rick Carlino
* Tim Evers
License
-------
The MIT License
Copyright (c) 2014 Farmbot Project
2014-01-15 15:14:52 -07:00
2014-02-13 14:04:39 -07:00
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
2014-01-15 15:14:52 -07:00
2014-02-13 14:04:39 -07:00
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
2014-01-15 15:14:52 -07:00
2014-02-13 14:04:39 -07:00
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2014-05-07 14:25:51 -06:00