Only PHPTIMESERIES working (not PHPFIWA nor PHPFINA)

Hello all,

I've successfully set up a hosted emoncms version on my web server (including changing directories for data). My data is being received by inputs. I'm able to create feeds. Feeds are receiveing data and increasing in size (that should mean the data is logged).

The problem is - I'm only able to see data graphs on the feed with PHPTIMESERIES engine. On ones that were created with either PHPFIWA/PHPFINA - the graphs come up empty. Realtime data also shows no data on these two methods. The same with dashboard.

Can somebody help me to sort this out?

 

ChuliaLT's picture

Re: Only PHPTIMESERIES working (not PHPFIWA nor PHPFINA)

Wow, sorry for so large printscreens, I expected forum software to resize them automatically.

Paul Reed's picture

Re: Only PHPTIMESERIES working (not PHPFIWA nor PHPFINA)

It's because you've added it as html instead of using the forum editor 'image' option. If you did, you would be able to easily resize it to 700px wide.

Paul

TrystanLea's picture

Re: Only PHPTIMESERIES working (not PHPFIWA nor PHPFINA)

ChuliaLT, can you see any files created in /var/lib/phpfina  or /var/lib/phpfiwa? did you set the permissions for these folders

sudo chown www-data:root /var/lib/phpfiwa
sudo chown www-data:root /var/lib/phpfina
sudo chown www-data:root /var/lib/phptimeseries
 

ChuliaLT's picture

Re: Only PHPTIMESERIES working (not PHPFIWA nor PHPFINA)

Yes, all permissions are set to 777.

Inside folders there are no files, although they're all created in root "emoncmsdata" folder:

ChuliaLT's picture

Re: Only PHPTIMESERIES working (not PHPFIWA nor PHPFINA)

I've just tried adding trailing slash in settings file ( '../emoncmsdata/phpfina/' instead of '../emoncmsdata/phpfina' ) - the files are now created inside the folders - although the problem remains unsolved.

TrystanLea's picture

Re: Only PHPTIMESERIES working (not PHPFIWA nor PHPFINA)

Ok sounds like progress, In your browser when your logged in try for example:

http://192.168.1.70/emoncms/feed/getmeta.json?id=5

that should return something like
{"interval":60,"start_time":1378304820}
 

or hopefully an error that we can use to debug if not.

ChuliaLT's picture

Re: Only PHPTIMESERIES working (not PHPFIWA nor PHPFINA)

I think you've forgot "Modules/" in path.

So when I check http://www.sich.lt/emoncms/Modules/feed/getmeta.json?id=57 while logged in, it spits out only this, same for all feed ids:

ChuliaLT's picture

Re: Only PHPTIMESERIES working (not PHPFIWA nor PHPFINA)

OK, this is what it returns now:

Warning: Wrong parameter count for clearstatcache() in /var/www/vhosts/sich.lt/httpdocs/emoncms/Modules/feed/engine/PHPFina.php on line 357
{"interval":15,"start_time":1423738860,"npoints":325109}

Any ideas how I should proceed from here?

ChuliaLT's picture

Re: Only PHPTIMESERIES working (not PHPFIWA nor PHPFINA)

Got it.

clearstatcache() function in php only accepts arguments from version 5.3. My server runs 5.2.19. I've changed clearstatcache($this->dir.$meta->id."_$i.dat"); to simply clearstatcache(); everywhere and hope it won't show any problems.

Dashboard, visualisations, etc - everything seems to work normaly now.

Comment viewing options

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