Skip to content

A Vagrant box with ansible provisioning that installs node-red and the freeboard.io dashboard. Includes a small websocket demo.

License

Notifications You must be signed in to change notification settings

terxw/vagrant-nodered-freeboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant Node Red with Freeboard on Ubuntu 16.04 box

This is a Vagrant/Ansible setup for running node red in conjunction with the freeboard dashboard.

Inspired by this Gist.

Installation / Usage

Install virtualbox

wget https://www.virtualbox.org/download/oracle_vbox_2016.asc
sudo apt-key add -y oracle_vbox_2016.asc
#ubuntu 16.04/LM 18
sudo echo " deb http://download.virtualbox.org/virtualbox/debian xenial contrib" | sudo tee -a /etc/apt/sources.list    
sudo apt-get update
sudo apt-get install dkms virtualbox-5.1

Install Vagrant

wget https://releases.hashicorp.com/vagrant/1.9.3/vagrant_1.9.3_x86_64.deb
sudo dpkg -i vagrant*.deb

Install Ansible and git on your platform.

    sudo apt install ansible  git

Test ansible playbook syntax

ansible-playbook ./provisioning/playbook.yml --syntax-check

bootstrap.sh is to install python or other required packages if not installed in vm boc

Run

vagrant up

run vagrant after error

vagrant reload --provision

manual install check vm log

vagrant ssh

Point your browser to freeboard dashboard to see the plain dashboard, to freeboard websocket demo to see the websocket counter demo and to Node Red to access the Node Red configuration interface.

Uses upstart to start node red application.

Modify the vars http_port, install_path and run_as in the ansible playbook, if you want to use the playbook for installation on a non-vagrant machine.

Installation on Beaglebone Black

The Ansible playbook can be used to install Node Red / Freeboard on a Beaglebone Black. Comment the variables for the Vagrant setup and uncomment the BBB settings. Hook up your BBB via USB as described in the Getting Started Section of the BBB website.

Append your ssh pubkey to the .ssh/authorized_keys file of the debian user on the BBB and test the login.

Create an inventory file with only the IP address 192.168.7.2 in it.

Run

ansible-playbook -i ../inventory provisioning/playbook.yml

This takes a while. If everything went ok Node Red should be available here. This setup was tested with a BBB that had already been in use. If you run into any problems please leave a description in the issues.

About

A Vagrant box with ansible provisioning that installs node-red and the freeboard.io dashboard. Includes a small websocket demo.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 96.8%
  • Shell 3.2%