P.S. I moved all the files from /volume1/web/emoncms/Modules/emailreport/emailreport-module
to /volume1/web/emoncms/Modules/emailreport
and the module started work. But I received an error message:
Fatal error: Uncaught Error: Call to a member function get() on boolean in /volume1/web/emoncms/Modules/emailreport/emailreport_controller.php:62 Stack trace: #0 /volume1/web/emoncms/core.php(64): emailreport_controller() #1 /volume1/web/emoncms/index.php(180): controller('emailreport') #2 {main} thrown in /volume1/web/emoncms/Modules/emailreport/emailreport_controller.php on line 62
A quick note to say that I’ve fixed a number of bugs that became apparent on this weeks email out. Pushed all changes to the master branch on github.
I havent yet had a chance to make it possible to disable the uk energy stats.
@Tehnoinstyle_Aleksey I think the error your getting relates to the line requesting the uk energy stats from redis, once I’ve sorted an option to toggle that it should work for you.
I updated the version of the emoncms to 9.8.8 and, accordingly, all the modules, including the mailreport. But again errors, and the module does not work for me.
Hello @Tehnoinstyle_Aleksey I appreciate your enthusiasm but your moving too fast The errors you are getting I think are as a result of redis being missing on Synology NAS. I mentioned I hadnt yet had a chance to develop the ability to switch uk energy stats off and the primary development target is emoncms.org then followed by emonpi/emonbase installs and so redis is currently a requirement. Please wait a little longer
Following all notes, when i test php module, show error on line 70 in ‘weekly-cron.php’
pi@emonpi(rw):Modules$ php /var/www/emoncms/Modules/emailreport/weekly-cron.php >> /var/log/emoncms/emailreport.log
PHP Fatal error: Call to a member function fetch_object() on boolean in /var/www/emoncms/Modules/emailreport/weekly-cron.php on line 70
Content of Line 70 is:
$result = $mysqli->query("SELECT * FROM emailreport");
while($row = $result->fetch_object()) {
but i can not see table ‘emailreport’ on emomcms database.
The command will only work once, then if you try it again it will fail as the symlink is already there, that’s expected and most likely good news as it strongly suggests the symlink is in place.
Have you used the “Update & check” button from the admin page in emoncms since adding the symlink? The “emailreport” table needs adding to the database before it will work.
+1, just want to find out if there has been any further development towards getting email reports working on emoncms base installations (not emoncms.org)?
I dont think so, this module has not changed really in 3 years, its probably not too difficult to fix, probably needs updating to link in with update swift mailer class here emoncms/email.php at master · emoncms/emoncms · GitHub
Im not likely to get a chance to look at this for a while though unfortunately.
I am new to this community but have started to work with OEM. Thanks for the great work that is being done in this space. Before I get too far into it I am wanting to understand if anyone has / is it possible to modify the email report code to set up and email for various data feeds in emoncms?
I would like to be able to pull heat meter and electricity meter data and email it monthly.