Skip to content

hardwario/hio-raspbian

Repository files navigation

HARDWARIO Logo

HARDWARIO Raspbian

Travis Release License Twitter

This repository contains scripts for building customized Raspbian image for Raspberry Pi.

Prebuilt images for your Raspberry Pi are available in Releases – just pick a ZIP file from the Latest release.

Installation procedure is the same as for original Raspbian image which is described here.

Images are automatically built on Travis CI.

Modifications in this image

Our image is built with the same scripts as the “official” one, with the following modifications:

  • Hostname changed from raspberrypi to hub.

  • Added third-party repositories:

  • Similar installations, as described in the documentation

  • Ports and services:

    • 80: nginx (static contet from /var/www/html)
    • 1880: Node-RED
    • 1883: Mosquitto mqtt
    • 9001: Mosquitto websocket
  • Installed additional packages:

    • mosquitto
    • mosquitto-clients
    • nodejs
    • python3-pip
    • python3-venv
    • dfu-util
    • git
    • htop
    • mc
    • tmux
  • Installed via npm:

    • pm2
    • node-red
    • node-red-dashboard
    • node-red-contrib-ifttt
    • node-red-contrib-blynk-ws
    • ubidots-nodered (Node Red plugin)
  • Installed via pip3:

    • bcg
    • bcf
    • bch
  • Static file for web interface https://github.com/hardwario/bch-hub-web


Troubleshooting

Fix nodejs on Raspberry PI with armv6l

If you get an error: Illegal instruction

sudo apt remove nodejs
wget https://nodejs.org/dist/v11.9.0/node-v11.9.0-linux-armv6l.tar.gz
tar -xzf node-v11.9.0-linux-armv6l.tar.gz
cd node-v11.9.0-linux-armv6l/
sudo cp -R * /usr/local/

pm2 resurrect

Local build

Install dependencies

sudo apt install kpartx coreutils zip qemu-user-static binfmt-support

sudo ./build.sh

License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with ❤  by HARDWARIO a.s. in the heart of Europe.