Possible solution in JS concerning issue #51 "PHP script that retrieves the values ??of the last measured 24 hours"