siketyan / TempRa

Monitors the temperature, the humidity and the pressure in your room on Raspberry Pi.
GNU General Public License v3.0
17 stars 2 forks source link
bme280 humidity java pressure raspberry-pi temperature

TempRa

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

Features

Requirements

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.

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
```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