Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

Legacy Cumulus 1 release 1.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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Minus sign of the change indicators not present for minus

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

User avatar
moppedhausi
Posts: 26
Joined: Fri 18 Jul 2014 8:23 am
Weather Station: Vantage VP2 Pro
Operating System: Windows 10
Location: Willich
Contact:

Minus sign of the change indicators not present for minus

Post by moppedhausi »

Hello,

very strange, this display is shown alternately.
Image1 is not correct here the minus sign "-" would be missing
Image2 is correct

Where can I find the error?
image1.JPG
image2.JPG
You do not have the required permissions to view the files attached to this post.
Gruß Wilfried
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: changing display

Post by HansR »

The sign is CMX generated to realtime.txt I don't know why the minus sign is not generated. @mcrossley?
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: changing display

Post by HansR »

Btw: would it be possible to save your remarks and when the lists get's too long (OK... subjective ;) ) or a certain time has passend (depending on how fast you work ;) ) you create a topic here? Of course if it is a fatal you report immediately.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
moppedhausi
Posts: 26
Joined: Fri 18 Jul 2014 8:23 am
Weather Station: Vantage VP2 Pro
Operating System: Windows 10
Location: Willich
Contact:

Re: changing display

Post by moppedhausi »

Ok I'm doing
Gruß Wilfried
User avatar
moppedhausi
Posts: 26
Joined: Fri 18 Jul 2014 8:23 am
Weather Station: Vantage VP2 Pro
Operating System: Windows 10
Location: Willich
Contact:

Re: changing display

Post by moppedhausi »

HansR wrote: Thu 19 Jan 2023 8:44 am The sign is CMX generated to realtime.txt I don't know why the minus sign is not generated. @mcrossley?
right Hans,
once Cumulus writes with "+" and once without.

19.01.23 10:03:32 1.0 100 1.0 13 7 94 1.2 2.8 1005.4 E 3 km/h C hPa mm 126.4 +0.6 81.0
19.01.23 10:02:52 1.0 100 1.0 13 12 148 1.2 2.8 1005.2 SSE 3 km/h C hPa mm 126.2 0.7 81.0
Gruß Wilfried
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Minus sign of the change indicators not present for minus

Post by mcrossley »

No idea, the code is...

Code: Select all

if (station.presstrendval > 0)
	file. Write('+' + station.presstrendval.ToString(PressFormat, InvC) + ' '); // 19
else
	file. Write(station.presstrendval.ToString(PressFormat, InvC) + ' ');
So...
1 --> "+1.0"
-1 --> "-1.0"
0 --> "0.0"
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Minus sign of the change indicators not present for minus

Post by HansR »

mcrossley wrote: Thu 19 Jan 2023 11:15 am No idea, the code is...

Code: Select all

					if (station.presstrendval > 0)
						file.Write('+' + station.presstrendval.ToString(PressFormat, InvC) + ' '); // 19
					else
						file.Write(station.presstrendval.ToString(PressFormat, InvC) + ' ');
So...
1 --> "+1.0"
-1 --> "-1.0"
0 --> "0.0"
I will wait with a comment until I will see a down trend (now it is all up on my station).
Well here it is all negative.

So I think there is an issue with the PressFormat.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Minus sign of the change indicators not present for minus

Post by mcrossley »

Positive here too, but in the debugger...

Code: Select all

(-1).ToString(PressFormat, InvC)
"-1.0"
PressFormat is just "F1" or "F2" depending on the units
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Minus sign of the change indicators not present for minus

Post by HansR »

Still the realtime does not contain the minus. Language issue?
EDIT: Nah... InvC.. Forget it.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
moppedhausi
Posts: 26
Joined: Fri 18 Jul 2014 8:23 am
Weather Station: Vantage VP2 Pro
Operating System: Windows 10
Location: Willich
Contact:

Re: Minus sign of the change indicators not present for minus

Post by moppedhausi »

When I let CumulusMX create a file with the webtags <#presstrendval rc=y>, the result is "xx" without "+" or "-" sign.
Gruß Wilfried
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Minus sign of the change indicators not present for minus

Post by mcrossley »

moppedhausi wrote: Thu 19 Jan 2023 12:47 pm When I let CumulusMX create a file with the webtags <#presstrendval rc=y>, the result is "xx" without "+" or "-" sign.
Yes, because that is a numeric value not a string. It is up to you to format it as you wish.
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Minus sign of the change indicators not present for minus

Post by mcrossley »

HansR wrote: Thu 19 Jan 2023 11:55 am Still the realtime does not contain the minus. Language issue?
EDIT: Nah... InvC.. Forget it.
Weird isn't it.

Q: The realtime.txt for that site does not contain a "-" so how does CUtilis know to show the down arrow?
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Minus sign of the change indicators not present for minus

Post by HansR »

mcrossley wrote: Thu 19 Jan 2023 1:39 pm
HansR wrote: Thu 19 Jan 2023 11:55 am Still the realtime does not contain the minus. Language issue?
EDIT: Nah... InvC.. Forget it.
Weird isn't it.

Q: The realtime.txt for that site does not contain a "-" so how does CUtilis know to show the down arrow?
It checks for the plus ? up : down :lol:

That's why I never noticed there was no minus, you see the red arrow down and it fills in automatically apparently.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
moppedhausi
Posts: 26
Joined: Fri 18 Jul 2014 8:23 am
Weather Station: Vantage VP2 Pro
Operating System: Windows 10
Location: Willich
Contact:

Re: Minus sign of the change indicators not present for minus

Post by moppedhausi »

Sorry.
Due to my mistake, I created a file under Extra Web Files, which also had the name realtimes.txt.
As a result, the original realtime.txt was repeatedly overwritten.
Gruß Wilfried
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Minus sign of the change indicators not present for minus

Post by HansR »

mcrossley wrote: Thu 19 Jan 2023 1:37 pm
moppedhausi wrote: Thu 19 Jan 2023 12:47 pm When I let CumulusMX create a file with the webtags <#presstrendval rc=y>, the result is "xx" without "+" or "-" sign.
Yes, because that is a numeric value not a string. It is up to you to format it as you wish.
That is weird as well. Even though it is numeric, I would expect the resulting string to contain ate least the minus sign.
I remember vaguely a similar issue recently was with the json value file where I believe Dador made a sign point.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Post Reply