russianryebread / house-temperature

Remote temperature dashboard & logger

Home Page:http://hoshor.me/temp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

House Temperature

Just a simple rasperry pi project to remotely monitor my house temperature, with the option to turn on a heater as needed.

This is a no-soldering-required project, for those of you who would rather just buy some off-the-shelf components, and be done. This is not an in-depth electrical engineering research project. :)

Hardware

Total: $80.00

Software

  • NodeJS
  • ExpressJS
    • Pug Templating Engine (optional)
    • CORS Middleware
    • Basic Auth Middleware
  • Temper1
  • TP-Link SmartHome API
  • SQLite3

Building

Pretty simple:

  1. Plug the probe into the extension cord.
  2. Plug the cord into the Pi
  3. Boot up the Pi
  4. Make sure the following dependencies are installed:
    # NodeJS, USB libs
    curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
    sudo apt-get install -y nodejs libudev-dev libusb-dev libusb-1.0-0-dev
  1. Run the following commands:
# Clone this repo
git clone git@github.com:russianryebread/house-temperature.git

# Install the dependencies
npm install

# Copy the environment file to .env
cp env.example .env

# Use the editor of your choice to configure it
vi .env

# You have to use sudo to read the USB device.  See the section on security for more info.
sudo node index.js

The application should be running on the port you set it to, (defaults to port 80) unless that port is already taken.

Enjoy!

Security

Not yet complete.

Warranty

None. I bear no responsibility if this causes your house to freeze, pipes to break, or spontaneous combustion to occur.

License

Copyright 2018 Ryan Hoshor

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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

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.

About

Remote temperature dashboard & logger

http://hoshor.me/temp


Languages

Language:JavaScript 56.9%Language:HTML 35.5%Language:CSS 5.3%Language:Pug 2.3%