Alrighty gentlemen, thanks much for sticking with me on this journey.
While I still plan to check out your script @Jon , I’ve answered my original question by doing the following (thanks for all the tips and hints). I’m writing this long and detailed description so that other folks like myself won’t have the same problem finding the solution to enabling more than 8928 data points.
< optional >
Re-imaged the SD card using the latest build (May, 2016) and booted the system to that newest version.
After first boot, updated the system from http://emonpi.local/emoncms/admin/view > Update emonPi
After reboot, restored my backup data from http://emonpi.local/emoncms/backup > Import
Checked that feeds existed, they did, although my inputs (and their unique names) were not there any longer. Bug? No biggy, I can configure those again later.
< /optional >
Accessed the system with SSH:
$ SSH [email protected] (pwd: emonpi2016)
Put the filesystem in read-write mode:
Change to the directory:
$ cd /var/www/emoncms/Modules/feed/engine
Backup the file:
$ cp PHPFina.php PHPFina.bkp
Open the file in a text editor:
$ nano PHPFina.php
scroll down to this line:
if ($req_dp>8928) return array('success'=>false, 'message'=>"Request datapoint limit reached (8928), increase request interval or time range, requested datapoints = $req_dp");
if ($req_dp>100000) return array('success'=>false, 'message'=>"Request datapoint limit reached (100000), increase request interval or time range, requested datapoints = $req_dp");
Optionally, you could add a variable and edit that variable as needed:
$dp_max = 100000
if ($req_dp>$dp_max) return array('success'=>false, 'message'=>"Request datapoint limit reached ($dp_max), increase request interval or time range, requested datapoints = $req_dp");
Control + X, save the file, exit nano.
Put the filesystem into read only mode:
$ sudo service apache2 restart
Open a data viewer for a feed, load lots of datapoints. No issues.
Was able to view CSV output with 100s of thousands of datapoints AND no gaps in the data!
I have no idea what was causing the cycled reboots at this point. I could very well have been that I’d pinched the button when installing the end cap. If that is the case, then, D’oh!
And now for the kudos…
This new version 9.7.2 and it’s graphing and data output are the bomb!!! Excellent work all of you hard working, open-source-dedicated, making me have hope in humanity, programmers and geeks and experimenters involved in this project. Good on ya!
Let me just tell you how happy it makes me to see these options for data output:
Time format: Three choices! and Null values: Three choices! This is exactly what I needed. You guys rock!
Some observations… this might be a bug. If I export to CSV from http://emonpi.local/emoncms/graph/ using the same start/end time as I would using the download/export popup listed for the same feed, the quantity of records is not the same. Perhaps I should move this question to another thread?
Feature request: enable mouse hover over options to popup a description of the option. i.e., when I hover over the text “scale” in the data viewer, it would sure be nice to know what the heck that option means.
I learned a lot from this three day adventure. I’m really hoping to retain a bit of this new knowledge too
Thank you @pb66, @Jon, @TrystanLea, and @glyn.hudson for being responsive and creating such a useful tool for my business. I’ve developed a rather nice niche market here in the southwest US because of the openenergymonitor project. Cheers, all.