Giter Site home page Giter Site logo

weyland's Introduction

Introduction

This is HOWTO for building a wireless print server for a AxiDraw v3 pen plotter.

Hardware Parts

Preparing the MicroSD Card with the Raspberry Pi boot image

  1. Download latest Raspbian Jessie ISO image

  2. Write the ISO onto the MicroSD card

  3. Configure the Raspberry Pi boot image to connect to your wireless network by creating a new text file named wpa_supplicant.conf in the /boot folder of the MicroSD card. Its contents should look something like this:

network={
    ssid="YourNetworkSSID"
    psk="Your Network's Passphrase"
    key_mgmt=WPA-PSK
}
  1. Enable SSH access by creating an empty file named ssh in the /boot folder of the MicroSD card

(These steps are Mac OS)

touch /Volumes/boot/ssh
  1. Unmount the MicroSD card and insert it into the Raspberry Pi

  2. Connect the Raspberry Pi to a power supply

  3. Find out the IP address of the Raspberry Pi. One way is to look at your WiFi access point to find the IP address of a device named "raspberrypi". Another way is to connect the Raspberry Pi to an HDMI display, keyboard and mouse and use the Pixel GUI to find out its IP address.

  4. Copy your SSH key to the Raspberry Pi

brew install ssh-copy-id
ssh-copy-id pi@<ip_address>
  1. Test the SSH login. You should not be prompted for the password.
ssh pi@<ip_address>
exit # from the SSH

Installing the Software on Raspberry Pi

These steps will finish the software installation onto the MicroSD now inserted in the Raspberry Pi.

  1. Clone this github repo
cd <work_dir>
git clone [email protected]:tjotala/weyland.git
cd weyland
  1. Install bundler
gem install bundler
  1. Install all the required gems
cd <work_dir>/weyland
bundle install
  1. Configure deployment to the target Raspberry Pi
nano config/deploy/staging.rb
# change IP address to match
  1. Prepare the Raspberry Pi for deployment (only needs to be done once)
cap staging deploy:prepare
  1. Deploy the code to the Raspberry Pi
cap staging deploy
  1. Try the web UI by opening a browser window at http://<ip_address>:4242

  2. Read the web API documentation public/weyland.conf with Swagger Editor: https://editor.swagger.io/

Installing the Software on a Mac OS X machine

These steps will let you run the software on a Mac OS X machine.

  1. Install nginx
brew install nginx
  1. Launch nginx (note this will not make it auto-launch at startup)
sudo nginx -c `pwd`/config/nginx.conf
  1. Launch the print server
./bin/run_local.sh

weyland's People

Contributors

tjotala avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.