event module not working for "reduces by" or "increases by" patterns

Hi,

when i use in the event module reduces by or increases by i got the below error:

PHP Fatal error:  Call to a member function fetch_array() on a non-object in /var/www/emoncms/Modules/event/event_model.php on line 203

When i debug it shows it is querying feed_5  (SELECT * FROM feed_5 ORDER BY `time` DESC LIMIT 1,1) which is a timestore in realtime and not mysql.

When i try to set it via the GUI from timestore to mysql as an engine it is not taken into account.

Any hint as i need to get alerted ones when value changes?

appreciate your help

joe

pb66's picture

Re: event module not working for "reduces by" or "increases by" patterns

Hi Joe,

I had similar issues and wasn't able to find a solution, I'm a bit out of my depth with php, js and sql all in the mix. I tried both the "if updated" and "if equal to" and get this error when ever I tried to update the monitored feed. 

Fatal error: Call to a member function get() on a non-object in /var/www/emoncms/Modules/event/event_model.php on line 238

I was using the "master" branch, but I see you are using the "redis" branch by the line number, maybe related, maybe not?

Paul

Keen2bGreen's picture

Re: event module not working for "reduces by" or "increases by" patterns

Hi Paul & Joe... I don't mean to hijack your thread... but is there a quick tutorial on re-implementing Event module in 8.3.6? 

Mike

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.