application for a nice view of TME 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
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 usefull statistics from your ethernet thermometer.
How it works? Your TME with access to internet (or local network) sends actual temperatur into PHP script. Script writes this temperature into database for future data generating.
For new versions and future informations, please check out http://multi.tricker.cz and if you need some help or just say "thanks", you can give contact me multi@tricker.cz
Now, let´s make it work:
1) First, we need to setup TME unit. Software for configuration is for all-inclusive service included in this package under folder "tme-utilita" (actual version is on manufacturer website over here: http://www.papouch.com/cz/shop/product/tme-ethernetovy-teplomer/).
Connect up to TME in configuration software and select "HTTP GET" method from
thermomether settings.
Check "Sending to HTTP server", into "URL path" type in the whole address to
script location, where application will send measurements. For example:
http://www.lojzuvweb.cz/tme/index.php
In "Server IP address" fill out IP address of web server, where are pages
located. You can easilly determine this IP, when you click on "@" button next to
URL path.
As next, set "Sending period" on 60 sec (every minute, application count with this settings). Into GUID fill some one continuosly word without special characters. You will need this in next step.
Now save settings.
2) In folder "app" are all needed files and there is also file "nastaveni.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.
Also, there is VERY IMPORTANT to set GUID and instead "teplota" fill your own string from first step.
3) There is need to create propriet 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) 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 via configuration utility.
Now, everything should be set up and saved, how it supposed to be. Application now recieve measured values and generate some text statistics and graphs.
Thank you for attention and have fun
How to UPDATE on TMEP v3:
It´s pretty simple. You need to:
1) Update database scheme. To do that, just execute "mysql-db-update-z-verze-2.sql" on your database. It will do the necessary changes. You can use some simple database administration fot that. I recommend Adminer - http://www.adminer.org.
2) Overwrite old files with the new ones except "nastaveni.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.).
3) Delete "cache" folder in application. There is no need for it now.
4) There is need to compute a lot of information about measuremets from earlier days except actual day. To do so, open script "skripty/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.