Giter Club home page Giter Club logo

dtgraph's Introduction

DTGraph

Digitemp Graph - PHP graphing and data query framework for digitemp-style temperature readings

This project is free open source software (especially since it's written in PHP) and you should have received a copy of the Gnu Public License (GPL) under which this software is licensed.

What is DTGraph?

Stands for DigiTemp Graph(ing tool).

Digitemp is an application for reading temperature from 1-wire sensors and is just one way of sensing/recording temperature. It is not written by me, nor is it a part of this project.

The purpose of this project is to provide a number of ways of monitoring temperature that is already stored somewhere and even provide alerts for when things go astray.

PROJECT STATUS: The Application works and (I think) is fairly useable.

INSTALLATION: Please see the INSTALL file.

UPGRADING: Please see the UPGRADING file.

TODO: change the mydigitemp.pl to be php, using same backend? create alarm definitions table reflecting by class name per alarm type?

dtgraph's People

Contributors

akomakom avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dtgraph's Issues

Great tool!!

I really love this program! Good job!

I have a few tweaks for you. Please forgive the format/manner in which I'm submitting these. I'm not a programmer, nor, do I really have the skill set to properly participate in open source projects. LOL But, I try really hard to help as much as I can!!

On my particular system, timezone setting is largely ignored. This causes the log files to fill up as it complains everytime the 'date' function is called in php. Apparently, the work around is to put a one-line .htaccess in the dtgraph folder containing this:

php_value date.timezone America/Denver

Obviously, change that for your locale. I don't really this is a bug in your code. I think this is a problem somewhere in php itself, but, I figure it might be a handy tip for your users. (found here: http://php.net/manual/en/function.date-default-timezone-set.php ...look at "Taylor"'s post).

I was also getting an error from line 13 of admin.php:

Undefined variable: PHP_SELF

I found that changing line 13 to the following cleared up the error:

I found that fix here: http://stackoverflow.com/questions/12710803/undefined-variable-php-self
Although, if you read the most highly ranked solution on that page, it recommends not using PHP_SELF at all. I'll leave that bit to you if you decide to change it. ;-)

The last thing I found was that Line colors were being ignored. It turns out that you have to set line properties after putting them on the graph.....which is a bit weird, but, the fix is easy enough. In graph.php at approximately line 266, I added the bits to change the line and mark colors etc (although the marks settings actually seem to work where they were?)

            $graph->Add($plots[$serial]);
            $plots[$serial]->SetColor($color);
            if (isOptionOn($options, 'showMarks')) {
                $plots[$serial]->mark->SetType(MARK_DIAMOND);
                $plots[$serial]->mark->Show();
                $plots[$serial]->mark->SetColor($color);
            }

Then I removed those same bits from the makePlot function as well.

I hope this helps!! Thanks for the great tool!

-Joe

php 7.0 compatibility

Hello,

i use it for home monitoring some temps, as php 7.0 is now available, it tried it and the following error is thrown:

Parse error: syntax error, unexpected '[', expecting ',' or ';' in dtgraph/utils.php on line 504

Text::Pos undefined

Git version have another problem.

Fatal error: Call to undefined method Text::Pos() in /var/www/freelom.net/htdocs/dtgraph/graph.php on line 412

fix also in PR

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.