Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.9.5 (build 3100) - 14 January 2021 (please see announcement regarding releases since 3.5.0)
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 the NOAA report and Snow Index drop-down menus to 2030)

Use this Wiki link to Download the Software (Cumulus MX / Cumulus 1 and other related items).

Console Output

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

Post Reply
Phil23
Posts: 602
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
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

User avatar
HansR
Posts: 1651
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
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
https://meteo-wagenborgen.nl / Cumulus 3.9.4 (build: 3099)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.79-v7+ armv7l
Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Sat Apr 20 05:16:08 UTC 2019)

User avatar
HansR
Posts: 1651
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
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: ;)
https://meteo-wagenborgen.nl / Cumulus 3.9.4 (build: 3099)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.79-v7+ armv7l
Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Sat Apr 20 05:16:08 UTC 2019)

Phil23
Posts: 602
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
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.

User avatar
HansR
Posts: 1651
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
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)
https://meteo-wagenborgen.nl / Cumulus 3.9.4 (build: 3099)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.79-v7+ armv7l
Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Sat Apr 20 05:16:08 UTC 2019)

User avatar
HansR
Posts: 1651
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Console Output

Post by HansR »

Time flies ...
Haven't looked at it, will do...
https://meteo-wagenborgen.nl / Cumulus 3.9.4 (build: 3099)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.79-v7+ armv7l
Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Sat Apr 20 05:16:08 UTC 2019)

Phil23
Posts: 602
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
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.

User avatar
HansR
Posts: 1651
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
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?
https://meteo-wagenborgen.nl / Cumulus 3.9.4 (build: 3099)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.79-v7+ armv7l
Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Sat Apr 20 05:16:08 UTC 2019)

User avatar
HansR
Posts: 1651
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
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.
https://meteo-wagenborgen.nl / Cumulus 3.9.4 (build: 3099)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.79-v7+ armv7l
Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Sat Apr 20 05:16:08 UTC 2019)

Post Reply