Code Monkey home page Code Monkey logo

turtleclime's Introduction

turtleClime

Simple and slim web app to display and manage sensor data/values from one or more of your smart home devices.

turtleClime Demo

Getting Started

Clone the repository on your (local) web server or local machine. See Prerequisites and Installing for more information.

Prerequisites

  1. Raspberry Pi or local machine as web server
  2. Temperature, humidity or other sensor and/or other smart home devices
  3. MySQL Database to persist values from the sensors

Installing

If you use your local machine as web server you can jump to 3.!

  1. Install a fresh image of Raspbian or your prefer OS on the Raspberry Pi (You can also use a running Raspberry Pi)
  2. Install apache2, php5, mysql and phpmyadmin
sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install mysql-server php5-mysql mysql-client
sudo apt-get install php5-mysql libapache2-mod-auth-mysql phpmyadmin
  1. Clone the repository in your /var/www/ directory or the directory of your preferred web server
  2. Set up the MySQL Database: Database name "turtleClime" And create two tables: First name "tc_log" for logging of the app with the following rows: 'ID' (bigint), 'Action' (varchar), 'Status' (varchar), 'User' (varchar), Timestamp (timestamp). Second name "tc_data" to persist the data/values from your sensors with the following rows: 'ID' (bigint), 'Temp' (float), 'Light_On' (timestamp), 'Light_Off' (timestamp), Timestamp (timestamp). You can adjust all columns for your needs (except for 'ID' and 'Timestamp'). By default I choose 'Temp' (for temperature) and 'Light_On' and 'Light_Off' (timestamp when light goes on and off).
  3. Edit the following 2 files with the login and name of your database, and the names of your tables: /php/inc/db.php and /python-backend/logData.py
  4. Type "localhost://turtleClime/status.html" into your browser and check if all services are alive.

Note: You have to log data/values into your Database before it will displayed on the app.

Customize the front-end for your needs. And don't forget to adjust the php scripts to fit to your database columns :-)

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

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

Acknowledgments

  • In this Repository I used Pure CSS Percentage Circle by Andre Firchow

turtleclime's People

Contributors

philj0 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.