Menu

#2 Skip bad values when logging

Unstable (example)
open
Akom
None
5
2015-05-26
2015-05-25
tonis
No

Update to www/admin/logger.php to skip logging of invalid values

180 or <-80.

Like in /bin/digitemp_mysql.pl
if ($temperature < -80 || $temperature > 180) {

Discussion

  • Akom

    Akom - 2015-05-25
     
    • tonis

      tonis - 2015-05-25

      Using version dtgraph-0.4m I was getting 185deg values into the db.
      Didn't update to 0.4n because this wasn't mentioned in the changelog.

      Good to see a github of this. There's no links here to it here.

      Is the version there newer than 0.4n?

       
  • Akom

    Akom - 2015-05-25

    I think my first reply got lost.

    Yes I believe you're right, I must have added that feature after 0.4m. It's in the trunk, and I think I screwed up the CHANGELOG so now I'm not sure what was in 0.4n.

    github is now linked from sourceforge.

     
    • tonis

      tonis - 2015-05-26

      Thanks for the quick reply, I'll upgrade to trunk I guess.

      Guess this patch can be marked closed as well.

      I've been wanting to do some changes of my own. Using a python graphing liberty or something to regularly generate some graphs from the data.
      Average temp/month, displaying different scales of the data on a single page etc.

      If you could point me to the file that contains the code that requests the data from the DB within the selected range, that would be great. :)

       

      Last edit: tonis 2015-05-26
  • Akom

    Akom - 2015-05-26

    I think you want to use this line as a starting point:
    https://github.com/akomakom/dtgraph/blob/master/www/graph.php#L49

    At some point my plan was to rewrite this using something like D3 with pure front-end graphing and expose an api for getting the data.

    Averages and side-by-side comparisons were also an idea I was considering.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.