Hello,
I am having some problems with V8. They are documented here:
http://openenergymonitor.org/emon/node/4268.
My question is as stated in the subject line. Can I remove Version 8 from my server, download and install whatever version is currently being used by the main emoncms.org server and install it?
I have to admit, I was a little perterbed to find out that the article for "Shared Linux Hosting" was pushing a V8.0 PRE-RELEASE!! But now, to start having problems doing with this version that I did so well with the emoncms.org version, makes it even more painful.
Help!
Tim
Re: [Solved] Is it possible to revert back from V8?
Hello Tim, try using the input interface instead of the node interface, it will allow the sending of decimals in the same way as is possible on emoncms.org
Re: [Solved] Is it possible to revert back from V8?
Here's the API call
/input/post.json?node=1&csv=100,200,300
or
/input/post.json?node=1&csv=10.5,2.4,30.45
Tested it here and it worked ok, emoncms v8 is really the best one for shared server installations, lets get it to work for you.
Re: [Solved] Is it possible to revert back from V8?
Perfect!
Thanks!!!!
Tim
Re: [Solved] Is it possible to revert back from V8?
AHHHHH! Now when I try to setup a feed, it comes back with an error "Feed could not be created. Undefined." Any thoughts?
T
Re: [Solved] Is it possible to revert back from V8?
Did you create the data folders phpfiwa, phpfina and phptimeseries? can you copy the feed_settings part of your settings file here so that I can see what youve got setup
Re: [Solved] Is it possible to revert back from V8?
Yes, the files are created. Here are the feed_settings
$redis_enabled = true;
$feed_settings = array(
'creatable_engines'=>array('MYSQL','TIMESTORE','PHPTIMESERIES','GRAPHITE','P
HPTIMESTORE'),
'timestore'=>array(
'adminkey'=>""
),
'graphite'=>array(
'port'=>0,
'host'=>0
),
// The default data directory is
/var/lib/phpfiwa,phpfina,phptimeseries on windows or shared hosting you will
likely need to specify a different data directory.
// Make sure that emoncms has write permission's to the
datadirectory folders
'phpfiwa'=>array(
//'datadir'=>'/home/username/emoncmsdata/phpfiwa/'
),
'phpfina'=>array(
//'datadir'=>'/home/username/emoncmsdata/phpfina/'
),
'phptimeseries'=>array(
//'datadir'=>'/home/username/emoncmsdata/phptimeseries/'
)
);
// (OPTIONAL) Used by password reset feature
$smtp_email_settings = array(
'host'=>"",
'username'=>"",
'password'=>"",
'from'=>array('an email address' => 'an email tag name')
);
$enable_password_reset = false;
// Checks for limiting garbage data?
$max_node_id_limit = 32;
/*
Default router settings - in absence of stated path
*/
// Default controller and action if none are specified and user is
anonymous
$default_controller = "user";
$default_action = "login";
// Default controller and action if none are specified and user is
logged in
$default_controller_auth = "user";
$default_action_auth = "view";
// Public profile functionality
$public_profile_enabled = TRUE;
$public_profile_controller = "dashboard";
$public_profile_action = "view";
/*
Other
*/
// Theme location
$theme = "basic";
// Error processing
$display_errors = TRUE;
// Allow user register in emoncms
$allowusersregister = TRUE;
// Enable remember me feature - needs more testing
$enable_rememberme = TRUE;
// Skip database setup test - set to false once database has been setup.
$dbtest = TRUE;
Let me know if you need anything else or what settings I need to change.
T
Re: [Solved] Is it possible to revert back from V8?
I think the step you need to do to get it to work is set your feed engine locations:
'phpfiwa'=>array(
//'datadir'=>'/home/username/emoncmsdata/phpfiwa/'
),
'phpfina'=>array(
//'datadir'=>'/home/username/emoncmsdata/phpfina/'
),
'phptimeseries'=>array(
//'datadir'=>'/home/username/emoncmsdata/phptimeseries/'
)
Step 3 and 4 of the shared hosting install guide
In your shared hosting /home/username folder create a folder called emoncmsdata to hold your emoncms feed data. (Note: NOT public_html as the data files should not be publicly accessible). Then create three folders within your emoncmsdata folder called: phpfiwa, phpfina and phptimeseries
In the emoncms app directory make a copy of defaultsettings.php and call it settings.php. Open settings.php and enter your mysql username, password and database. In the feedsettings section uncomment the datadir defenitions and set them to the location of each of the feed engine data folders on your system.
it will look something like this (// removed & your username)
'phpfiwa'=>array(
'datadir'=>'/home/username/emoncmsdata/phpfiwa/'
),
'phpfina'=>array(
'datadir'=>'/home/username/emoncmsdata/phpfina/'
),
'phptimeseries'=>array(
'datadir'=>'/home/username/emoncmsdata/phptimeseries/'
)
Re: [Solved] Is it possible to revert back from V8?
Awesome! That appears to have done the trick. It is allowing me to create feeds anyway. Later today I will be close to the devices, I will turn them on and make sure everything works! Thanks.
Tim
Re: [Solved] Is it possible to revert back from V8?
Trystan,
there is also a setting in each of the files PHPFina.php, PHPFiwa.php and PHPTimeSeries.php with:
(in this case taken from PHPFina.php). Is it not necessary to set these directories to the new location, too?
BR, Jörg.
PS: wouldn't it be possible to do these settings only in settings.php? At the moment after every update to a new version you have to change the settings in all these files again.
Re: [Solved] Is it possible to revert back from V8?
The $dir setting does get overwritten by the settings.php file value if it is set, just as you suggest.
Re: [Solved] Is it possible to revert back from V8?
Ahhh, I understand.
So it is not necessary to change the settings again in the individual files. Good to know. Thank you very much.
Re: [Solved] Is it possible to revert back from V8?
Okay, it is storing data and I am able to graph it and everything. The only issue now is the CSV download option. It keeps coming back with 'false' and uses this as the URL:
emoncms/feed/csvexport.json?id=8&start=NaN&end=NaN&interval=60.
I am filling out the form as pictured. See Fig 1 below.
I am thinking this might warrant a new thread though since the original problem of this thread has been solved.
Re: [Solved] Is it possible to revert back from V8?
Try putting a 0 in the timezone box, i think that will do it, Il fix it to be zero by default if no user timezone is set
Re: [Solved] Is it possible to revert back from V8?
That did it. Thanks.
Tim