btmon on Lubuntu installation difficulties
Posted: Wed Dec 30, 2015 9:12 pm
I have decided to try to use emoncms with Lubuntu (15.10). I thought it would be relatively straightforward, as I previously have gotten emoncms working with Windows 8.
Things went fairly straightforward, following the emoncms installation instructions
https://github.com/emoncms/emoncms/blob ... Install.md
and watching the two youtube videos from Chris Walker for Ubuntu 12.04 (a bit outdated)
https://www.youtube.com/watch?v=lmftwvb56HQ
and Ubuntu 14.04
https://www.youtube.com/watch?v=K3k_q2hRaLU
I got things installed fine, and even was able to sign in to emoncms on localhost, which is how I was setting it up.
However, getting Python 2.7.10 and the btmon.py working correctly has proven difficult.
I got Python 2.7 installed fine, and from researching on the github website that mwall just set up
https://github.com/matthewwall/mtools
I also installed the python-mysqldb add-on.
I got the btmon.py 3.1.1 saved, had a bit of confusion trying to run btmon.py instead of just btmon, but I did get it working with the btmon -h command to see the help guide. I copied the btmon config.cfg file I had set up and working with the Windows 8 installation. I also copied the btcfg.py file and saved that too in the same directory.
I then did what seemed to be the logical step which was to do the command "btmon -c config.cfg" which was just the slight variation from the Windows 8 command "btmon.py -c config.cfg" which was working fine.
Now, what is interesting is the error states that the -c is an "invalid option," and it does not show up in the help guide. I don't know why it was necessary, or how I even found out it was necessary, but somehow I used the -c option with the Windows 8 version.
I've tried it without the -c option, and get the error "Invalid command line parameters."
I'm also not sure about the config.cfg file being correct with the Lubuntu 15.10, but it seems I cant test that file until I get past the -c option problem.
As a bit of further research, I have changed the command to "python ./btmon.py" and it does run the btmon script. However, adding the config.cfg in the command doesn't seem to have any effect on the btmon values.
With more attempts, I now have the command "python ./btmon.py -h" which does show the -c option, and have run the command "python ./btmon.py -c ./config.cfg" which does seem to have some effect, but then I get the error "unknown parameter in config file: Values instance has no attribute 'reverse_polarity'"
So any help will be greatly appreciated.
Things went fairly straightforward, following the emoncms installation instructions
https://github.com/emoncms/emoncms/blob ... Install.md
and watching the two youtube videos from Chris Walker for Ubuntu 12.04 (a bit outdated)
https://www.youtube.com/watch?v=lmftwvb56HQ
and Ubuntu 14.04
https://www.youtube.com/watch?v=K3k_q2hRaLU
I got things installed fine, and even was able to sign in to emoncms on localhost, which is how I was setting it up.
However, getting Python 2.7.10 and the btmon.py working correctly has proven difficult.
I got Python 2.7 installed fine, and from researching on the github website that mwall just set up
https://github.com/matthewwall/mtools
I also installed the python-mysqldb add-on.
I got the btmon.py 3.1.1 saved, had a bit of confusion trying to run btmon.py instead of just btmon, but I did get it working with the btmon -h command to see the help guide. I copied the btmon config.cfg file I had set up and working with the Windows 8 installation. I also copied the btcfg.py file and saved that too in the same directory.
I then did what seemed to be the logical step which was to do the command "btmon -c config.cfg" which was just the slight variation from the Windows 8 command "btmon.py -c config.cfg" which was working fine.
Now, what is interesting is the error states that the -c is an "invalid option," and it does not show up in the help guide. I don't know why it was necessary, or how I even found out it was necessary, but somehow I used the -c option with the Windows 8 version.
I've tried it without the -c option, and get the error "Invalid command line parameters."
I'm also not sure about the config.cfg file being correct with the Lubuntu 15.10, but it seems I cant test that file until I get past the -c option problem.
As a bit of further research, I have changed the command to "python ./btmon.py" and it does run the btmon script. However, adding the config.cfg in the command doesn't seem to have any effect on the btmon values.
With more attempts, I now have the command "python ./btmon.py -h" which does show the -c option, and have run the command "python ./btmon.py -c ./config.cfg" which does seem to have some effect, but then I get the error "unknown parameter in config file: Values instance has no attribute 'reverse_polarity'"
So any help will be greatly appreciated.