Newbie! Emoncms login and registrantion fail; "red bar" (Windows - Pi)

Greetings from Denmark. I just received my hardware today and are looking very much forward to getting online :-) .. but now I seem seriously stuck - and out of ideas :-(  Hope some of the experts in here can help - Thank you in advance :-)

I am following the Windows setup guide for the Pi basestation,

https://github.com/emoncms/emoncms/blob/master/docs/WindowsInstall.md

,and everything seems to work fine until step 9 and I try to log in or register; Only thing that happens is a read bar appears at the bottom of the screen (tried all combinations I could think of).

I searched and looked for solutions and done the install on an other computer without much luck.

Computer: Laptop & stationary, Windows 7



WAMP: WampServer Version 2.5

All green, I can open "localhost/emoncms" (login screen) but not "http://emoncms/" from Chrome, so there may be some issue with the Host ?

phpMYadmin (PHP v. 5.5.12): The emoncms database is recognized and I can see the files (empty)

Robert Wall's picture

Re: Newbie! Emoncms login and registrantion fail; "red bar" (Windows - Pi)

"All green, I can open "localhost/emoncms" (login screen) but not "http://emoncms/" from Chrome, so there may be some issue with the Host ?"

I am not sure what you are saying there. "localhost" is the name of the WampServer that you set up as seen from inside that computer only. From anywhere else on your LAN, you will need to (a) put the WampServer "online" and (b) ask your router what IP address it's given it, probably something like 192.168.1.68. That is the address you need to put into your RPi assuming it's acting as a base node only and sending the data to the machine that has WampServer and the databases on it.

But if you're trying to get to the emonCMS hosted by OEM, that is "http://emoncms.org/"

Lykke's picture

Re: Newbie! Emoncms login and registrantion fail; "red bar" (Windows - Pi)

Thanks Robert, see what you mean; i.e. if I am going to use the emonCMS hosted by OEM I do not need a local server and hence obviously no need to worry about not being able to log into my local server! Guess I am on a pretty steep learning curve, LOL, thanks for your patience :-)

I will give the "http://emoncms.org/" a go, no problem with registration there. Next step is to figure out how to communicate with the Pi. New world to me, but it's quite entertaining - lots of nerd bonus hours ;-) 

 

 

Lykke's picture

Re: Newbie! Emoncms login and registrantion fail; "red bar" (Windows - Pi)

OK, got everything up running :-) 

I have two nodes, emonTx v3 v. AC-AC power supply, one monitoring the main supply and one monitoring the PV-unit and the EV-charger.

The issue right now is that the node monitoring the mains is reporting negative values, e.g. -187 watt in Emoncms. Values seems reasonable except for the minus. Voltage is OK'is, even though 250V seems a little high. Any thoughts?

Paul Reed's picture

Re: Newbie! Emoncms login and registrantion fail; "red bar" (Windows - Pi)

Have you got the CT clamp on the wrong way round?

If you use more power, does the value go more negative?

Paul

Robert Wall's picture

Re: Newbie! Emoncms login and registrantion fail; "red bar" (Windows - Pi)

Our convention is imported power/energy is positive, exported is negative. To change it, reverse the CT on the cable.
If you have a programmer, you can calibrate the voltage. The default sketch has the voltage calibration set for the UK adapter, the Euro adapter is slightly different and requires a different setting. Look at lines 65-67 in the sketch. Otherwise, you can multiply by a constant inside emonCMS to apply the correction there.

Lykke's picture

Re: Newbie! Emoncms login and registrantion fail; "red bar" (Windows - Pi)

Power seems correct except for a factor -1. More power => Larger negative value.

I did not realize there was a correct way to put on the clamps, how can I tell if they are the right way round? Guess the result would be the same except for the factor -1, may be easier to just multiply in emoncms, as I have only very limited space available for the clamps. Any problem in that? 

Lykke's picture

Re: Newbie! Emoncms login and registrantion fail; "red bar" (Windows - Pi)

Thanks. I have not made it any further than just applying the default sketch, so you may be correct assuming the calibration is off.

I have a programmer, so it should be possible to modify the settings. I think our normal voltage is quite stable, i.e. 230V +/-1 volt. Would the correct way of doing this be to measure the voltage and then modify the calibration constant until I get the same value in emoncms?

Robert Wall's picture

Re: Newbie! Emoncms login and registrantion fail; "red bar" (Windows - Pi)

You can change the sign in the sketch or in emonCMS, as you wish. If in the future you add a GLCD, the best place is in the sketch.
All the installation and calibration instructions are in Building Blocks, I don't intend to repeat them here.

Lykke's picture

Re: Newbie! Emoncms login and registrantion fail; "red bar" (Windows - Pi)

Robert, thank you for the advice. Actually I have a brown bag containing a Lego GLDC which I hope to get up running sometime in the future. Guess I better bite the bullet and swop the clamps or modify the sketch.

I'll search for the calibration instructions and proceed accordingly. 

Comment viewing options

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