emonPi - Locked out of emonCMS

Hello!
I am a noob user to the OEM project, having recently taken delivery of my (Kickstarter) emonPi.

I have successfully installed the hardware in my home (Grid and Solar CTs), and have now tried to start using the emonCMS environment.  The road has become rather rocky before I expected it to, and I would appreciate some advice in return for my initial feedback please.

Feedback from the noob perspective:

  • I installed the HW without any problem, but didn't find the installation notes very clear about the need to polarise the CT sensors to make sure that the values were represented correctly +ve / -ve.  Some additional documentation would be ideal here please.
  • The emonPi connected to my network without any trouble, but the IP address which is shown on line 2 of the display does not have enough digits to correctly display all forms of IP addresses.  In my case the DHCP server assigned my emonPi the address of 192.168.10.107, but the display did not have enough characters to display the final "7", thus leaving me confused as to which address to use in my browser.  Naturally I dug around in the DCHP assignment tables of my router and found the solution, but the formatting of line 2 of the display would benefit from an update please.  If you change the "IP:" prefix to "I:", then the display would have sufficient characters to display any IP address with three digits in each of the IP four address fields xxx.xxx.xxx.xxx.

Questions and problems:

  • I seem to have managed to lock myself out of the emonCMS interface.  When I initially registered my first username, I allowed my password manager to generate and store a secure password for my local user account, which was 20 digits in length comprised of upper and lower alpha, numeric, and symbols.  Having logged out and tried to log back in again, I now can't get back in and the register button is no longer available.  The username and password is definately correct, becuase it was automatically stored by the password manager.
    • I suspect that there might be a limitation in the password length and/or accepted character set.  Is this so, and how do I now get myself either logged in, or re-registered as a user on emonCMS please?  Please don't tell me that I have to take the case apart to re-image the SD card; that would be very disappointing.
  • When I was installing the CT sensors, I noticed a metallic buzzing coming from the sensor coils before the CT sensors had been plugged into the emonPi.  Having knowledge of electronics I was careful not to touch the exposed contacts on the 3.5mm plugs.  Are the supplied sensors fitted with suitable protection resistors to protect the user while handling the unplugged CTs?  A current is obviously induced in the transformers even when they are unplugged, and the noise I heard worries me for the safety of those who might not be so wary of the potential dangers.
  • As a new user it took me quite a few attempts to set up the nodes / feeds correctly, before I understood sufficiently to get things how I wanted them.  After a few experiments where I could generate graphs etc, I decided to delete all of the feeds and nodes and start again with fresh data.  I also had to reverse the polarity of some of the CTs to get the figures reported correctly.
    • I re-created the feeds but the graphs didn't appear in the vis, even after I had waited a good long while for the data to accumulate.  Concerned that the graph rendering might have simply got itself in a knot, I decided to log out of CMS and back in again to see if the graphs came back to life.  That's when I got locked out.
    • There's a good chance that I used identical names for the feeds on my second and third attempts.  Is this OK to do, because I certainly wasn't having any luck.   A testing issue perhaps?

I hope that someone with more experience can guide me, and I hope that the feedback from a new user is valuable in some way.  I'm looking forward to some good experiences when I can get it up and running properly, but I suspect there are still some early gremlins which need to be ironed out.

Kind regards,
Rich

Title edited by Moderator - Paul

TrystanLea's picture

Re: emonPi - Locked out of emonCMS

Hello Rich,

Thankyou for the feedback

Perhaps the easiest way if you havent yet logged a lot of data and dont mind starting a fresh is to do a "factory reset". If you can login to the raspberrypi with SSH (using putty on windows or from terminal on linux):

ssh pi@192.168.10.107

(default password: raspberry)

Then:

sudo emonpi/factoryreset

will restore the pi to a clean install, removes the user account and deletes all feed data. I can see that a password reset feature via SSH could be useful if even to give a temporary password for a one time login. Il have a think about how to do that.

 

Q-Branch's picture

Re: emonPi - Locked out of emonCMS

Hello Trystan,
Thank you for your quick reply.  A factory reset has gotten me back up and running so thank you for that.

However, a few more notes for you:

  • The factory reset didn't quite get rid of everything.  I noticed that the old feeds were still listed when I clicked the "spanner" icon next to the emonPi node.  They seemed to have broken links to the feed data (sorry, I didn't think to capture the precise wording of what was reported or take a screenshot before I deleted them), so I had to manually remove them and re-create the feeds I wanted.
    • Should the factory reset get rid of the old feeds?  A bug fix required here perhaps?
    • These broken links / references to the old feed data was what I saw before when I tried to tidy things up after my initial experimentation.  I am not yet familiar enough with the CMS environment to be 100% clear about what I am describing.  Apologies for that - I'm learning rapidly.
  • I used a more simple password for my user account this time, rather than letting the password manager generate something complicated.  What is the limitation, if any, about CMS password length and character set?  Are the passwords hashed?  If so, then it shouldn't matter what a user entered because it'd all end up as a hashed value of a fixed length.  I'd need to understand more about the coding implementation of the un/password database before I could suggest anything here.  I've not yet trawled through the code.

I've set up a few basic feeds and I shall leave it running for a week or so to see what data I get.  Should be interesting!

Thanks and kind regards,
Rich

Robert Wall's picture

Re: emonPi - Locked out of emonCMS

CT orientation and voltages:

You obviously missed this in the installation and calibration instructions. These do state that you should connect the CT before installing it on its cable, but there is a pair of zener diodes in the recommended CT that should protect you (but might not protect the input circuits). They also tell you our convention and which way round to install the CT:

"(a) Single phase supply: Plug the lead from the CT into the EmonTx and then clip the CT around one cable that runs from the meter to the consumer unit. If you use the line cable (normally the outside one of the four coming out of the meter, red or brown insulation might be visible where the cable enters the meter terminal block), the face of the CT marked “ SCT-013-000” should point towards the meter. It is possible to install the CT on the supply side of the meter, in that case the face of the CT marked “SCT-013-000” should point away from the meter. This will ensure that imported power is shown as positive. If you use the neutral cable (normally the inner), then the face of the CT marked “SCT-013-000” should point the opposite way: away from the meter on the load side or towards the meter on the supply side. Do not put both cables through the CT."

The paragraph but one after that tells you how to orientate the PV CT.

Q-Branch's picture

Re: emonPi - Locked out of emonCMS

Hello Robert,

Yes, I definitely missed that. After a good degree of searching I have now found the page that you're quoting from. When I installed the product I was using the get started -->  emon pi setup guide (which seemed logical! <smile>),  so perhaps a good modification to the setup guide would be to link to this excellent CT information so that new users know where to find it. 

I appreciate your feedback though, thank you, and I'm sure that together we can make the out-of-the-box experience better for future users.  I've found with my own product development and documentation, that as things become less modular and more of a single purchase product, then it is necessary to adjust the style of documentation and guidance.  

Thanks again, kind regards,

Rich

Rich.T.'s picture

Re: emonPi - Locked out of emonCMS

The emonPi connected to my network without any trouble, but the IP address which is shown on line 2 of the display does not have enough digits to correctly display all forms of IP addresses.  In my case the DHCP server assigned my emonPi the address of 192.168.10.107, but the display did not have enough characters to display the final "7", thus leaving me confused as to which address to use in my browser.  Naturally I dug around in the DCHP assignment tables of my router and found the solution, but the formatting of line 2 of the display would benefit from an update please.  If you change the "IP:" prefix to "I:", then the display would have sufficient characters to display any IP address with three digits in each of the IP four address fields xxx.xxx.xxx.xxx.

That just got fixed in the latest update; go to Admin -> Update emonPi in emonCMS.

I used a more simple password for my user account this time, rather than letting the password manager generate something complicated.  What is the limitation, if any, about CMS password length and character set?  Are the passwords hashed?  If so, then it shouldn't matter what a user entered because it'd all end up as a hashed value of a fixed length.  I'd need to understand more about the coding implementation of the un/password database before I could suggest anything here.  I've not yet trawled through the code.

I managed to get away with a lastpass-generated 30 character random password with special characters. I too, however, would like to know what the length limit is.

 

A loosely related issue I'm currently having is that the emonCMS.org website is not letting me log in, even when I request a new password and use the new one that was emailed to me.

Comment viewing options

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