Adding Event Module not Working Windows & adding Highcharts

Hi Forum.

Im trying to add the events module to the emoncms, but to no avail!

I do the update database thing, but the page just stays black whenever i go under admin tab and then the update button.

Yes I have add the $updatelogin to the settings.php.

Any ideas??

Next i also want to add highcharts to my dashboard.

I have done this by inserting the html + js into the html tag within the dashboard editor, but what will be the best way to add a ajax query to the Feeds database? Where should it be located and how can i do this within the already modules?

 

Regards

Kdw

XaroRSA's picture

Re: Adding Event Module not Working Windows & adding Highcharts

Ok so make sure when adding a new module that the name is correct.

EVENT not EVENTS!!!

Paul Reed's picture

Re: Adding Event Module not Working Windows & adding Highcharts

Are you running emoncms Timestore  version?

If so, the event module has not yet been modified to be compatible, and will not work.

Paul

XaroRSA's picture

Re: Adding Event Module not Working Windows & adding Highcharts

Hi Paul, no im running timestore yet.

Email not working, looks like this module needs some revision to work properly

Paul Reed's picture

Re: Adding Event Module not Working Windows & adding Highcharts

I've not heard of Highcharts until now, but they seem pretty impressive, also distribute under the Creative Commons Attribution-NonCommercial 3.0 License.

If you get Highcharts working, please post back with details & maybe an entry under the forum 'showcase' as I am sure it will raise a lot of interest here.

Paul

Mattia Rossi's picture

Re: Adding Event Module not Working Windows & adding Highcharts

Well, it looks like highcharts understands data in the format returned by the feed controller, ran a quick test by creating a test dashboard, inserting a text widget and setting the content to:

 

<script src="http://code.highcharts.com/highcharts.js"></script>
<script type="text/javascript">
$(function () {

$.get('/emoncms/feed/data.json?&id=1&start=1376908881197&end=1377513681197&dp=1000&apikey=myapykey', function (csv) {

    $('#container').highcharts({
        chart: {
        },
        xAxis: {
            type: 'datetime'
        },

        series: [{
            data: csv
        }],
        plotOptions:{
                series:{
                    cropThreshold:1000000,
                    turboThreshold:1000000
                }
            }
    });
});
});
</script>
<div id="container" style="height: 400px; width:800px;"></div>

 

And got back a small chart ... the problem would be to write all the javascript needed to query appropriately the feed controller (with date and time selector and with the options for zooming)

 

PS: paul, Highcharts is what it is used on the library I am using to display weather data in one of my dashboards: http://www.weather-watch.com/smf/index.php/topic,46621.0.html

XaroRSA's picture

Re: Adding Event Module not Working Windows & adding Highcharts

Hi Peeps.

I have added the highcharts functionality to the VIS tab, and made a small script that injects data into a user database, will upload the code once i made it dynamic. Currently it "just working" for my settings.

Can someone please help with setting up Email and Twitter notifications?

I have set all the correct email settings(not gmail thou), and in my inspector i do get "Message sent" response from the phpmailer after enabling php-ssl in my localhost etc.

I have tested the email online and locally, both dont work for my private snmp server?

Aswell, how do i go about to enable the twitter notifications?

Thanks alot

*after notification im gonna add full google chart functionality, still need to github and merge all this code :D

Paul Reed's picture

Re: Adding Event Module not Working Windows & adding Highcharts

You might want to consider updating to the current 'Master' versions, for emoncms (which is Timestore), raspberrypi and the event module.

I have updated the 3 modules last night, and the event module now works fine sending both emails and also 'push' messages via Boxcar.

The recent updates represent a significant code change, and it may be better to use the current version as a base for Highcharts future development, instead of basing it on a now obsolete system.

Paul

modenet's picture

Re: Adding Event Module not Working Windows & adding Highcharts

still no receiving mail after upgrading event's module to my local server; today I also tried to change smtp settings to use gmail as smtp server with no results. thanks

Paul Reed's picture

Re: Adding Event Module not Working Windows & adding Highcharts

As per my last post above....

Paul

XaroRSA's picture

Re: Adding Event Module not Working Windows & adding Highcharts

Just to verify, the test function button doesnt send a mail to the destination set, but the mails back to itself? Thats what im getting

*Nevermind, found the bug.

When the event list page renders, it doesnt create the correct input box unless you change the "type" to prowl or any of the others, and then select email agian.

teo770's picture

Re: Adding Event Module not Working Windows & adding Highcharts

How do you install this version ?

git clone ... ?

emoncmsv6 + rasp + event ?

 

Thanks

DaveF's picture

Re: Adding Event Module not Working Windows & adding Highcharts

I second Theo's request for help

How do I install the most recent versions

sort of need an idiots guide to get me going have tried following the partial instruction but it has not worked for me

Suggest the starting point could be the download image post back in May

Thanks

 

Paul Reed's picture

Re: Adding Event Module not Working Windows & adding Highcharts

My advice would be to upgrade to the current version of emoncms using this guide.

Once updated, ensure that you have also updated the Raspberry Pi & event module modules;

...did you install these modules originally by using Git clone (or used a emoncms image file)? If so, then navigate to /emoncms/Modules/event and  run;

$ git pull origin master

& do the same with /emoncms/raspberrypi/ for the raspberry pi module.

Paul

teo770's picture

Re: Adding Event Module not Working Windows & adding Highcharts

Already followed this guide, last emoncms 6 + timestore,

"git pull origin master" in both event & rasp modules tells me already-up-to-date

When opening event module in emoncms:
Fatal error: Cannot use object of type Route as array in /var/www/emoncms/Modules/event/event_controller.php on line 21

Paul Reed's picture

Re: Adding Event Module not Working Windows & adding Highcharts

Well that error points to the line;

$feed = new Feed($mysqli,$timestore_adminkey);

in the event_controller.php

Are you sure that your admin key;

$ cat /var/lib/timestore/adminkey.txt

is the same as is contained in your settings.php file?
.. and you have php5-curl installed?

Paul

PS. after upgrading to Timestore, did you rename the 'new' default_settings.php to settings.php and re-added your MySQL details & Timestore key. - just an afterthought.

Comment viewing options

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