TMEP v8

application for a nice view of TME/TH2E output using HTTP GET method

Authors:
Michal "MultiTricker" Ševčík, multi@tricker.cz, http://multi.tricker.cz,
František "EFES" Ševčík, f.sevcik@seznam.cz

Sponsor:
Papouch - http://www.papouch.com, manufacturer of these great devices


TOC

  1. Introduction
  2. Installation
  3. Update to v8
  4. Changelog

Introduction

Dear users,

what you have downloaded is a small web application written in PHP, which uses database (typically MySQL) and class JpGraph or Open flash chart for generating graphs. It can nicely show ip some useful statistics from your ethernet thermometer/hydrometer.

How it works? Your TME with access to Internet (or local network) sends actual measurement to PHP script. Script writes this measurement into database for future data generating.

For new versions and future informations, please check out my blog or Papouch website and if you need some help or just want to say "thanks", you can give contact me multi@tricker.cz


Installation

Now, let´s make it work:

1) First, we need to setup TME/TH2E unit.

Setting up TH2E

Nastaveni

Connect onto TH2E website and choose settings. There is need to have correctly filled up parameters on tab "Network", most importantly IP address, mask, gateway and DNS. Next, choose tab "Sending" and fill address of web server, port (80), scripts folder on server, period for sending GET (1 - once per minute) and fill script name (index.php).

For example, if address of your app will be http://moje.mereni.cz/aplikace/, then fill:
Web server address: moje.mereni.cz
Port: 80 (standard port)
Script folder on server: aplikace/
GET sending period: 1
Script name (GET): index.php

Setting up newer TME

Nastaveni

Connect onto TME website and choose settings. There is need to have correctly filled up parameters on tab "Network", most importantly IP address, mask and gateway. Next, choose tab "Sending" and fill IP address of web server, web server name (www.someting.com), port (80), scripts folder on server, period for sending (60 sec - once per minute) and check activation of HTTP GET sending and fill Script name (index.php).

For example, if address of your app will be http://moje.mereni.cz/aplikace/, then fill:
Web server address: you will find out this from your web hosting provider or with ping utility
Web server name: moje.mereni.cz
Port: 80 (standard port)
Script folder on server: aplikace/
Script name: index.php

Setting up oldest TME (1.6, 1.7)

Nastaveni

Connect into TME via configuration utility from Papouch. (You can find configuration utility here: http://www.papouch.com/cz/shop/product/tme-ethernetovy-teplomer/). On item HTTP GET check "Send temperature on HTTP server", into URL path write full path where web application will be located and file index.php, ie.: http://www.lojzuvweb.cz/tme/index.php
Into IP address write IP address of web server, where site is located. This address can be very easily filled up when you click onto "at" symbol.

Next, set up sending period 60 sec (once every minute, application counts with this settings) and into GUID fill some random word without diacritics and spaces - you will need this on further step.

Finally save settings.

2) Configuring TMEP

In folder "app" are all needed files and there is also file "config.php", where you must fill out values for connection to database (database server, username, password, database name). You should get these values from your webhosting provider. If you are using oldest TME, then there is VERY IMPORTANT to set GUID and instead "teplota" fill your own string from first step.

3) Setting up database

There is need to create proprietary tables in database, where scripts save values from TME. Which program/web application for table create you use, is on you. SQL code for execution is located in file "mysql-db-full.sql".

4) Uploading application on web

Now, upload whole web application (everything what folder "app" contains) on it´s place on internet. Path to "index.php" must be the exact path, that you set up in first step into TME/TH2E via configuration utility.

Now, everything should be set up and saved, how it supposed to be. Application now receive measured values and generate some text statistics and graphs.

Thank you for attention and have fun


Update to v8

How to UPDATE on TMEP v5/6.5/7/8:

It´s pretty simple. You need to:

1) Update database scheme, if you have v5 or older. To do that, just execute "mysql-db-update-v5.sql" on your database. It will do the necessary changes. You can use some simple database administration for that task. I recommend Adminer - http://www.adminer.org.

2) Overwrite old files with the new ones except "config.php", located in "app" folder in archive you downloaded along with this update instructions. If you did any changes in old files, you will need to do them again (in CSS styles etc.). Rename file "nastaveni.php" to "config.php". Add line with "$vlhkomer" in "config.php" to determine if you want to show measured humidity. No need for this if you do not measure it.

3) Delete "cache" folder in application. There is no need for it now.

4) There is need to compute a lot of information about measurements from earlier days except actual day. To do so, open script "scripts/dopocitat.php" in your browser from application website. Do it as long as needed - script will write what day has just been finished. This could take some time on slow servers with huge database of measurements. These calculations are also realized when page of TMEP app is opened. For me, it took about 3 minutes to compute more than 3 years of measurements, so it should be very quick.


Changelog

verze 8.1 (2015-04-21)

version 8 (2014-10-19)

version 7.0.1 - 7.0.4 (2014-03-22)

version 7.0 (2014-01-03)

version 6.5 (2013-12-31)

version 6.4 (2013-12-29)

version 6.3 (2013-06-27)

version 6.2 (2013-02-27)

version 6.1 (2013-02-02)

version 6 (2012-12-01)

version 5 (2012-10-28)

version 4.2 (2011-08-08)

version 4.1.1 (2011-07-01)

version 4.1 (2011-03-26)

version 4 (2011-03-10)

version 3 (2011-01-14)

version 2

version 1