WDConsole and Saratoga templates

Hi Guys

I am trying to deploy wdconsole over my current windows version. I want to save some power! Yes Brian, when I get it working I will donate! I am sorting the graphing via RRD with Pablo’s scripts.

I did try a test move yesterday after many hours reading what has been written on the forum and doing the config. I thought I had everything covered!

It would appear I have missed something. As soon as the wdconsole session went live, the whole website disappeared! Nothing! The page files were there but they appeared to be empty. I assume that the data provided from wdconsole was not sufficient for the webpage to be generated. I think I have all the permissions sorted, I have the testtags.txt sorted. As soon as I restarted the windows version, the website was there. I changed nothing!

Has anyone who has done this got any idea where I should look? Has anyone else had this problem?

Any hints, clues or suggestions would be greatly appreciated!

Cheers

Jon

Jon

I had the same problem. The fix was to update the /etc/php.ini and set display_errors = on;

Next, restart the http server (service httpd restart). Now point the browser to the same page.

For me, I found that the console did not like the $currentrainratehr variable. Commented that out, and the page “appeared”

Hope that helps

Renato

Thanks Renato

Good clue. It looks as if the data is corrupted somewhere along the line, I am getting both in and mm measurements when it should be just mm. More to look into…going to be a long week!

@Pablo, if you are watching…any thoughts?

Cheers

Jon

Hi Jon,

How about you post your `config.txt’ file as an attachment? It may be the first clue.

Cheers,
-pablo

Hi pablo

config.txt with the usual removed!

Jon


config.txt (3.02 KB)

Hi Jon,

Sorry for the delay in responding, I was on vacation.

Looking at your config file, it appears there may be extra carriage returns. I’m wondering how you transferred the files from Windows to Linux.

For text files, NTFS/DOS have a different format than on Linux. ftp' will transparently convert the file formats between the two. Have you tried ftp’?

Cheers!
-pablo

Jon,

Another option that I use all the time is to use the great “old” fashion editor vi. Open the config.txt with vi and use the following commands.

Type

:s/^M//g 

To get the ^M hit the control and V key followed by the control and M key. Once you hit return this will take out the ^Ms. Now just type ZZ to save and exit.

Another option:

 perl -pi'orig' -e 's/^M//g' config.txt  

again to get the ^M hit control and V key followed by the control and M key. This will create a backup file called config.orig and take all the ^Ms out of the config.txt file. You may want to backup the config.txt file to something like ‘config.txt.date’ where date is today’s date as a safety precaution.

Mike - N7DQ

Howdy,

You may also see if the `dos2unix’ command exists. On openSUSE it’s installed by default.

Cheers!
-pablo

Hey Guys

Sorry for the delay, just got back home after a few days away on business! Pablo hope you had a great vacation.

Looking at everything that is wrong with my system, I am looking at specifying a new system just to run wdconsole and rrd. Lets give up on the main server as that does too much to rebuild!

I have found a PC from a british company called Viglen, the MPC-L which uses xubuntu and runs using an AMD Geode GX533 running at 400mhz with 512Mb ram. I will be switching off the x windows completely to save horsepower.

Any thoughts as to whether this will be enough CPU? The box uses such a small amount of electricity I can justify buying it now with something like a 2 year payback on the existing Dell windows machine!

This will also allow me to play with a fresh system that is not critical to other bits of my lan! Plus it is easy to restore!

Thoughts?

Cheers

Jon

Hi Jon,

No worries on the delay. :slight_smile:

My vacation, as always, was too short. But such is life.

As for the appliance you’re reviewing, it should be sufficient horsepower. WD Console requires very little CPU. My weather `server’ is a P3 600MHz laptop with 512MB of RAM. It can be pokey but it works.

Cheers!
-pablo

Hi Jon,

One other thought … I suspect your existing box is just fine … so if you want to save some $'s, you can start over on that machine. I’m not sure if you need to re-install the distribution but it should be okay.

Also, I usually install X and switch it off if the machine is memory-starved.

Cheers!
-pablo

Hi pablo

Main issue is that the existing box is my firewall, mailserver, webserver and media server all in one! Not easy to take down for a reinstall. The existing weather box is a big dell running windows which I would like to use elsewhere and not 24/7. The small box will save power and therefore money!

Jon

Hi Jon,

Ohhhhhhhhhhhh! Well then, yes, it totally makes sense what you’re planning on doing. :slight_smile:

You also may elect to go with an old laptop. Its battery serves as a nice UPS. :wink:

Take care!
-pablo

Except that (AFAIK) there’s no way to restart it when the power comes back if it has shutdown due to the battery being exhausted.

Hi Niko,

It’s a BIOS setting which controls what to do upon power interruption.

Cheers,
-pablo

I use that on desktops to auto restart them, but I don’t believe I have ever seen that in a laptop bios.

Hi Niko,

I have three Dell laptops and they all have that setting. I don’t think it’s unique to Dell.

Cheers,
-pablo

Interesting, all mine are Sony and I just checked this one, it doesn’t have that option :frowning:

Isn’t that interesting. Hmmm, any chance your BIOS is an old revision?

I think it’s a Sony thing. I’ve thought of using my older castoff laptops as servers etc but they haven’t had any way to restart. Others on here have had the same experience so I was surprised by your post about Dells.