PHPFiwa delete range and edit interval

Good morning,

I'm still new in emoncms and I'm trying to build my system. I'm using phpfiwa for realtime values, and phpfina for daily values.

Everything is fine, except phpfiwa use a lot of disk space. I'm interest on a month of values for phpfiwa, but I can't delete a range with this engine. I've read the documentation and searched in forum, but without luck.

Can someone help me to delete a range of values in phpfiwa?

Another question is: i've set up a wrong interval for phpfiwa; basically, it's 30s, and I want to set this value higher. I can delete and create the feed, but, can I edit the interval if I already created the feed?

I want to keep my values if it's possible.

Thank you everyone

Paul Reed's picture

Re: PHPFiwa delete range and edit interval

I'm not aware of any tools to remove phpfiwa data by date/time, although there is a script - remove spike which enables data to be removed according to it's value. Just wondered if this script could be modified to select and delete data by date/time criteria?

Regarding changing the feed interval, no that cannot be done at this time without deleting the feed, and setting up a new one. Although I know that Trystan has this on his radar for future development.

Paul

bettinz's picture

Re: PHPFiwa delete range and edit interval

Hello Paul, thank you for the reply. I've seen the script for removing spike, and I've see it write "NAN" where the value is outside the range. This is great, but the space occupied is basically the same (i think because NAN is 3 characters, and the value is usually with 3 digits).

I've searched how to remove a value from binary file, but I haven't find anything. If you or someone else have other ideas I'm here. 

Thank you again for the help :)

Comment viewing options

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