Installation Guide - mttstt/Domoticasite GitHub Wiki

Create site

The Domoticasite was created with meteor-kitchen (http://www.meteorkitchen.com) - V0.9.73

  • Download domoticasite.json for meteor-kitchen

  • Because of meteor-kitchen doesn't work on Raspberry you have compile the Domoticasite on other systems, for example on Windows:

    meteor-kitchen domoticasite.json Domoticasite --meteor-release 1.3.4.1

  • On Windows delete /Domoticasite/.meteor/local directory

  • On Windows delete /Domoticasite/.meteor/versions file

  • On Windows Uncomment rows on /Domoticasite/server/server.js

  • Copy Windows Domoticasite directory on Raspberry (e.g. /home/pi/Domoticasite)

  • On Raspberry cd in the Domoticasite dir and make:

    meteor npm install --save wiringpi-node

    meteor npm install --save git+https://github.com/HardwareProjects/node-dht-sensor.git

  • On Raspberry apply the following instructions in order to avoid root profile:

    http://wiringpi.com/wiringpi-update-to-2-29/

  • Lanch meteor on Raspbbery:

    /usr/bin/nohup /home/pi/meteor/meteor --settings ../production-settings.json &

  • Wait and wait (the first time 2,5 hours)

  • Go to http://localhost:3000

In order to use auth google module:

  • Add the following row in /env/enviroment:

    PORT=443

    MONGO_URL=mongodb://localhost/Domoticasite

    ROOT_URL=https://matteosetti.noip.me

  • Modify the URI redirection in https://console.developers.google.com

Others package

`sudo apt-get install forever`
`sudo apt-get install mongodb-server`