Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Console Output

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

Post Reply
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Console Output

Post by Phil23 »

Hi Hans,

Been playing with utils & my long overdue upgrade along with AirQual enhancement.

Been looking in log files quite a bit addressing the odd issue here & there.

What I'm thinking as it runs it could provide some output to the console.
Basically selected lines that are written to the log file.

On occasions seems to take too long, (when I had errors), you do wonder what is happening.

Output to the console could be either on by default, with a silent switch, or the opposite.

The sort of thing that would be good to see would be just the starting & completion of each process.
Would provide a little immediate debugging help before opening logs etc.

A few example lines from the log I just browsed below.

Cheers

Phil.

Code: Select all

2020-12-02 09:00:07.372 SystemStatus : DoingWindows
2020-12-02 09:00:14.762 Timing of SysInfo generation = 8753 ms
2020-12-02 09:00:17.434 Maps GetFTPLock : Checking for a lockfile
2020-12-02 09:00:27.716 Timing of Map generation = 12955 ms
2020-12-02 09:00:28.075 Prediction The data: <var>
2020-12-02 09:00:28.075 Timing of WeatherForecast generation = 354 ms
2020-12-02 09:00:28.075 USerReports: Start
2020-12-02 09:00:28.075 Timing of USerReports generation = 2 ms
2020-12-02 09:00:28.075 Airquality Contructor: start
2020-12-02 09:00:28.278 Timing of AirQuality generation = 208 ms
2020-12-02 09:00:28.278 CumulusUtils : Creating class dayfile -> Opening dayfile.txt
2020-12-02 09:00:28.356 Timing of Dayfile load = 65 ms
2020-12-02 09:00:28.356 PwsFWIfuncs constructor
2020-12-02 09:00:28.778 Timing of pwsFWI generation = 415 ms
2020-12-02 09:00:28.778 Main CmulusUtils: Yadr Constructor Start
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Console Output

Post by HansR »

@Phil: yes I understand your point and it would be interesting when running interactively. I already thought about something like that but the logging system is about the first thing I wrote in C# so it is not so well done and does not include errorlevel selection or other output modifications. I don't want to have to write more than one logging line when console output is wanted. But yes, I do see the advantage of having selected console output, I'll think about it.
Cheers, Hans
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Console Output

Post by HansR »

Rethinking about it: I will revise the logging system but that will take some time and will not be in the next release.
So, some patience required :roll: ;)
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Console Output

Post by Phil23 »

Not seeing any output to the console yet in 483.

From what I read, my ini should now have them enabled.

Code: Select all

[General]
IgnoreDataErrors=true
GeneratejQueryInclude=true
Language=en-GB
NormalMessageToConsole=true
TraceInfoLevel=Info
(Seems the forum gets confused with [ ] within code tags.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Console Output

Post by HansR »

Indeed that should give the basic messages to the console and logfile and leave all other (more verbose) info to the logfile.
So if it does not that is surprising. Something specific for Windows perhaps? Is the Windows definition of console different from the linux definition?
It works with my installation, did not explicitely test this one on windows. I'll look at it.

(note: you used a double nested (code) tag. I took the liberty correcting it)
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Console Output

Post by HansR »

Time flies ...
Haven't looked at it, will do...
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Console Output

Post by Phil23 »

I did question my script being an issue, but same result when I run it directly from a prompt.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Console Output

Post by HansR »

Mmm... there seems to be a difference between the Windows console and the Linux Console.
It's just a system call and for a change it works on the Unix like systems nut not on its native origin. Oh my... no idea.

Anybody? Why would the Windows console not show a line?
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Console Output

Post by HansR »

OK. Found it: I had erroneously compiled as a Windows Application iso a Console Application.
Windows did not appreciate that.
I PMed a patch, if more users are annoyed I'll make it in a release.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Post Reply