GithubHelp home page GithubHelp logo

siketyan / tempra Goto Github PK

View Code? Open in Web Editor NEW
17.0 5.0 2.0 2.13 MB

Monitors the temperature, the humidity and the pressure in your room on Raspberry Pi.

License: GNU General Public License v3.0

Java 76.02% CSS 1.86% HTML 8.86% JavaScript 13.26%
raspberry-pi bme280 java temperature humidity pressure

tempra's Introduction

TempRa

Monitors the temperature, the humidity and the pressure in your room on Raspberry Pi.

Features

  • Monitors every 10 minutes and insert into MySQL database.
  • Displays a graph and realtime data on the web browser.
  • Tweets the data every hour automatically.

Requirements

  • Raspberry Pi (Tested on RPi 2 Model B)
  • Operating system on Raspberry Pi what can run Java (Tested on Raspbian)
  • Java Runtime Environment (JRE) 1.8+ (Tested on 1.8.0 Update 65)
  • BME280 temperature/humidity/pressure module

Usage

First, connect your BME280 to your Raspberry Pi with I2C.
Before running, you have to put the config files below into the same directory as the jar file.

  • monitor.properties
SQL_Type=mysql
SQL_Host=[YOUR SQL HOSTNAME HERE]
SQL_Port=[YOUR SQL PORT HERE]
SQL_Database=[YOUR SQL DATABASE NAME HERE]
SQL_User=[YOUR SQL USERNAME HERE]
SQL_Password=[YOUR SQL PASSWORD HERE]
SQL_Timeout=1

Socket_Interval=1000
Socket_Port=8888
HTTP_Port=8080

Format_Record={{STR1}}:{{STR2}}
Format_Hour={{STR1}}, {{STR2}}h
Format_Day={{STR1}}/{{STR2}}
Format_Month={{STR2}}, {{STR1}}
Format_Year={{STR1}}

Twitter_DateFormat=yyyy/M/d H:mm
Twitter_Content=Now: {{DATE}}\n \
                \n \
                Temperature: {{TEMP}} °C\n \
                Humidity: {{HUM}} %\n \
                Pressure: {{PRES}} hPa\n \
                \n \
                \#TempMonitor \#AutoTweet
  • twitter4j.properties
oauth.consumerKey=[YOUR TWITTER CONSUMER KEY HERE]
oauth.consumerSecret=[YOUR TWITTER CONSUMER SECRET HERE]
oauth.accessToken=[YOUR TWITTER ACCESS TOKEN HERE]
oauth.accessTokenSecret=[YOUR TWITTER ACCESS TOKEN SECRET HERE]

Next, import setup.sql into you database.
Finally, type the command to run:

java -jar TempMonitor-x.x-jar-with-dependencies.jar

Web Console

Type the address of your Raspberry Pi and specificed port number to access the console.
e.g.)
http://192.168.11.81:8080/ # By IP address
http://raspberry:8080/ # By hostname

Open Source Licenses

tempra's People

Contributors

ciffelia avatar dependabot[bot] avatar siketyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tempra's Issues

機能追加案

グラフの更新頻度を変えるオプションがほしい

通知を流せるように

指定した間隔でTwitterのDMとかSlackのチャンネルとかにデータ吐かせられたらいいんじゃね

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.