bargraph vis have buttons with / in them

so i did install emocms from ground up and got feeds ok

 

now in the processs of build dashboards i discovered that the bargraphs are not right...

 

http://energymonitor-dk.dns4e.net/emoncms/boelle/

 

i used this guide to do the install

 

https://github.com/emoncms/emoncms/blob/bufferedwrite/docs/install.md

 

my plan is to get it all setup and then switch to full master branch... i run hdd and it will spin all the time, the more writes will not wear more on the bearing but only on the stepper that moves the write heads...

boelle's picture

Re: bargraph vis have buttons with / in them

also just discovered that the graph i created for my hot water temp last night stopped about 2 hours...

today i have deleted all feeds and started over... now non of the graphs seems to work

inputs look ok... feeds also, even the feed size are going up

 

will check out a few more things

boelle's picture

Re: bargraph vis have buttons with / in them

nope the feeds does not grow... but did last night... checking that i did all the steps in the install guide

EDIT: tried to start feedwriter thou i expected it to run...

pi@raspberrypi ~ $ sudo service feedwriter start log
Log is turned on
Starting RPI
pi@raspberrypi ~ $ PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525+lfs/dio.so' - /usr/lib/php5/20100525+lfs/dio.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Notice:  Undefined offset: 0 in /var/www/emoncms/run/feedwriter.php on line 42
PHP Fatal error:  Call to a member function prepare() on a non-object in /var/www/emoncms/run/feedwriter.php on line 42

 

It did not run ok... had to hit ctrl+c 

boelle's picture

Re: bargraph vis have buttons with / in them

hmm could not see the dio.so anywhere in the install guide...

where did i screw up this time?

boelle's picture

Re: bargraph vis have buttons with / in them

could it be that i skipped pass the read-only stuff and my fstab looks like this:

 

proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults,ro          0       2
#/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1
/dev/sda1        /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, so no using swapon|off from here on, use  dphys-swapfile swap[on|off]  for that

boelle's picture

Re: bargraph vis have buttons with / in them

dooh

dio.so is not there, bummer

 

now what package is that one a part of, should be there since i "think" i did almost all steps

boelle's picture

Re: bargraph vis have buttons with / in them

install guide missed these steps:

 

sudo pecl install channel://pecl.php.net/dio-0.0.6

sudo nano /etc/php5/cli/php.ini

add extension=dio.so to file in the beginning of the ;Dynamic Extensions; section on line 843

 

but still a bit of errors left when i try to start feedwriter:

pi@raspberrypi /usr/lib/php5/20100525+lfs $ PHP Warning:  Module 'dio' already loaded in Unknown on line 0
PHP Notice:  Undefined offset: 0 in /var/www/emoncms/run/feedwriter.php on line 42
PHP Fatal error:  Call to a member function prepare() on a non-object in /var/www/emoncms/run/feedwriter.php on line 42

and of course feeds are not written to disk so size stays at 0.... but in emoncms its counted on the feeds list, just not written to disk so graphs are not working...

but the bargraph still have the extra 3 buttons with / in front of the text.

boelle's picture

Re: bargraph vis have buttons with / in them

anyone able to help out?

boelle's picture

Re: bargraph vis have buttons with / in them

no one ever encountered this before?

 

boelle's picture

Re: bargraph vis have buttons with / in them

hmm... a wild guess.... but will switching to full solve the feed write issue?

 

https://github.com/emoncms/emoncms/blob/bufferedwrite/docs/switchtofull.md

Paul Reed's picture

Re: bargraph vis have buttons with / in them

Boelle, will you please stop 'bumping' your posts!!

If someone had an answer to your question, they would post it, but this incessant bumping to the top of the Active queue is unfair to other posters - who equally want answers to their questions too.

I know it's frustrating when you don't get a speedy reply, but this thread has 9 consecutive comments, all by you, many of which add nothing constructive - except of course to return it to the top of the active queue. If you do find it necessary to bump your post, at least leave it 2 or 3 days to give chance for other members to respond.

 

Paul - Forum Moderator

boelle's picture

Re: bargraph vis have buttons with / in them

i'm desperate here yes... and i try to solve as much i can myself and posting what i'm trying....

 

even write a mail at support email too... 

 

of course i could get me a pi more and use that for emon alone... but thought i would use the same for more than one thing

 

but well it might be the end of it...

 

boelle's picture

Re: bargraph vis have buttons with / in them

problem solved... sort of..

 

i used the low write ready to go image... removed the fireall uwf as it was blocking a voice server, i dont like more than one firewall anyway.

now removing uwf somehow made the webserver unaccessible

 

boelle's picture

Re: bargraph vis have buttons with / in them

all problems but one sorted...

input does not show anything...

tested with minicom that the data is getting in. led blinks

emonhub.conf also set with the right decode stuff, i saved that bit from last, checked that the api write key in conf is the same as in emoncms.

no errors when i restart the emonhub service

pi@raspberrypi ~/emonhub/conf $ tail -f /var/log/emonhub/emonhub.log
1970-01-01 01:00:56,080 INFO EmonHub Pre-Release Development Version (rc1.0)
1970-01-01 01:00:56,083 INFO Opening hub...
1970-01-01 01:00:59,128 WARNING 1 Discarded RX frame 'non-numerical content' : ['>\x00', '4b']
1970-01-01 01:00:59,538 WARNING 3 Discard RX frame 'information' : ['>', '210g']
1970-01-01 01:00:59,948 WARNING 5 Discard RX frame 'information' : ['>', '15i']
2014-11-08 22:02:31,430 INFO EmonHub Pre-Release Development Version (rc1.0)
2014-11-08 22:02:31,433 INFO Opening hub...
2014-11-08 22:02:34,472 WARNING 1 Discard RX frame 'information' : ['>', '4b']
2014-11-08 22:02:35,349 WARNING 5 Discard RX frame 'information' : ['>', '210g']
2014-11-08 22:02:35,769 WARNING 7 Discard RX frame 'information' : ['>', '15i']

 

the other logs does not exist

will this time patient wait until someone can help me witj pointers for why input page is not building up as normal 

pb66's picture

Re: bargraph vis have buttons with / in them

"i used the low write ready to go image... "

Have you configured emonhub.conf correctly? on the ready to go image emonhub.conf was moved to /boot/emonhub.conf, but your prompt location in the 1st line of your log file suggests you may of edited the original copy in the ~/emonhub/conf directory

"pi@raspberrypi ~/emonhub/conf $ tail -f /var/log/emonhub/emonhub.log"

Otherwise if you set the logfile setting to debug in emonhub.conf you can see more of what's happening (or not as the case maybe) 

boelle's picture

Re: bargraph vis have buttons with / in them

bingo... :-D

now i just need to move 2 of the partitions to hdd and then switch to master branch,,,,

boelle's picture

Re: bargraph vis have buttons with / in them

again with  the risk of a butt kick....

i got all feeds setup like i want

then i looked at https://github.com/emoncms/emoncms/blob/bufferedwrite/docs/switchtofull.md

did excatly as it said... but now the webpages are gone.... when i enter my local ip it goes to the emoncms folder but no pages are shown, nor any error

EDIT: not total true... 

Already on 'master'
Your branch is behind 'origin/master' by 15 commits, and can be fast-forwarded.

EDIT2: tried to switch back to the bufferedwrite branch and emonhub.log now says:

2014-11-09 00:43:59,900 WARNING Couldn't send to server, HTTPError: 500
2014-11-09 00:43:59,908 WARNING Send failure: wanted 'ok' but got

 

and they are filling up fast

EDIT3:

after switch to master branch of course you have to do a git pull to do the fast forward. But pages are still not up and the emonhub are filled fast with errors

EDIT4:

last odd thing spotted before i head out in the real world:

pi@raspberrypi ~ $ sudo service feedwriter stop
Log is turned off
ERROR: file not found : '/var/www/emoncms/run/feedwriter.php'

EDIT5: sucess..... 
'phpfiwa'=>array( 'datadir'=>'/home/trystan/Data/19July/phpfiwa/' )

guide says to add that--- but says not where in the section... so missing out a comma is easy...

complete section should look like this thou:

 $feed_settings = array(

        'phpfina'=>array(
            'datadir'=>'/home/pi/data/phpfina/'
        ),

        'phptimeseries'=>array(
            'datadir'=>'/home/pi/data/phptimeseries/'
        ),
        'phpfiwa'=>array(
            'datadir'=>'/home/pi/data/phpfiwa/'
        )
    );

 

EDIT6: baah.. now building the dashboard again and the bargraph vis is not right... still / and 3 buttons not there in bufferedwrite version.. and the frame in that vis is not there... 

 

EDIT7: after a nights sleep the bargraphs are almost "normal", frame is there and the bars are like they should, but what are the 3 extra buttons with / in them for?

EDIT8: Think there might be a small error in the bargraph vis, today after i got all the dashboards etc like i want i decided to reset the data, graphs that does not have any data yet, ie graphs data is et to display daily usage does not have the frame in them, but if i set same graph to an interval of say 15mins will have the frames as soon the 15 mins have happened, nomattter if the data is 0 or not. and still 3 extra buttons not found in the low write version

Comment viewing options

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