Wamp Server installation

How will the installation process change should I use VM? I am in the process of trying that out.

You can use our automated build script on a debian based VM (e.g ubuntu): see guide here: EmonScripts/readme.md at master · openenergymonitor/EmonScripts · GitHub

Each element of the ini file should be on a single line. If the Win machine opens it and it does not have the correct line breaks, it may be the issue.

OK, now I see what you’re saying.

The first thing that springs to mind is the text editor is going to handle the file differently
than the WAMP server. I recall running a WAMP server and seeing the same thing,
i.e. the file didn’t display correctly in Windows Notepad, yet the WAMP server had no issues with it.

Sounds like it may be a WAMP server issue vice a Windows issue.

After thinking about it for a bit, I realized that if displayed in Windows Wordpad
or Notepad++, Windows will display the file “correctly.”

Well I instead opted to get a raspberry pi v4 for the same task. I followed the instructions on how to install the emonScripts as it is discussed here. Unfortunately on rebooting, I can no longer access the pi. I keep getting the error message “Cannot open access to console, the root account is locked.” I have seen possible pathways to resolving this. Is there any explanation for this? And how easily can I resolve it.

Is that the first reboot after install? Did you wait for it to finish all the resizing etc (does take a while)? You might get that message initially while it is busy doing things.

I don’t think the scripts had been tested on a Pi4. Any reason not to use the EmonSD image?

Have you tried any of them?

I edited the the cmdline.txt by adding init=/bin/sh using a card reader. The console indicates bin/sh: can’t access tty; job control turned off. Then I followed the instructions as explained here. The OS indicates that it has panicked but sync fails. What did I miss?

I’d suggest you start again from scratch or use an EmonSD image.

Hello @borpin.
I installed the emonSD image onto a flashDrive and logged into the emonpi thereafter.
I would like to access have a user interface to use which would enable me to access my emoncms account locally from this point on. Is there a way to proceed from here? How do I transit from the terminal to the EmonCMS GUI interface? Any resources and guide from here will be appreciated.

Regards

Do you mean that or do you mean you loaded the image onto a new SD Card and inserted that into the RPi?

It is not possible to run it off a Flash Drive driectly.

We loaded the image on the new SD card and inserted it in the RPi? Does it make a difference?

OK, great - just lost in translation :grinning:.

If you know the IP Address of the Pi, just browse to that IP address from a computer on the same network. This guide should help

https://guide.openenergymonitor.org/setup/connect/

If the Pi is just Wi-Fi, the guide will help you get started.

Quite interesting. I can access the GUI page of the emoncms which then requests for my credentials. Thanks for this. This however means I have to have two systems. I am looking to create a display that is fed directly from the pi. How can I transit from the terminal to the GUI using the pi? Unfortunately I cannot access my

You have lost me. Do you have 2 physical RPis?

I mean, I need to have a PC and a Pi. I thought if i installed the EmonSD image onto the Pi, it would be possible to operate as though I had Raspian on the Pi with the emonCMS database on the same device. The whole reason of having a local EmonCMS is to customize it for the end user. I do not know if this can be done in any other way, but may be this is the best we can do it.

So EmonCMS is setup on the RPi so database etc is all on that - you can unplug the keyboard, monitor etc if you want. On your PC, you simply use a web browser to access the system on the Pi. So use the IP address of the Pi from the PC and you have what you want (I think).

I think Lewis might want to connect a monitor to the emon Rpi rather than view via the browser of another device (possibly?)

Could be - that’s what I am trying to tease out. Installing a desktop environment onto an EmonSD image is not a normal process and it may be better to start from a standard Rasbian image with the desktop installed and use the Scripts to install. As this started from a ‘WAMP’ install, I suspect this is not what is required but TBC.

1 Like

Yes @ Brian. This would mean that if have both the local installation and the the cloud EmonCMS all together.