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 4019) - 03 April 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

Degrees symbol encoding

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Mapantz
Posts: 1824
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Degrees symbol encoding

Post by Mapantz »

I think I've mentioned this before?

Anyway, I'm using CMX to process a small text file to overlay on an image. The degrees symbol is not being encoded properly and causes strange characters to appear.

However, if I open the processed text file and then manually save it as ANSI, the degrees symbol is encoded correctly on the image. However, as soon as CMX does it's processing, it changes the file back to UTF8 and the encoding fails on the degrees symbol again.

I don't have UTF8 set in the extra web files processing. Is there anything I can do top stop this?
Image
cliftonweather
Posts: 26
Joined: Sat 14 Nov 2009 12:34 pm
Weather Station: Vantage pro+
Operating System: RPi3 Model 3 running Buster
Location: Clifton, Beds
Contact:

Re: Degrees symbol encoding

Post by cliftonweather »

What are you using? ansi code or literally a degree symbol as °, the latter works for me on UTF8 overlaid on a webcam image.
Mapantz
Posts: 1824
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Degrees symbol encoding

Post by Mapantz »

Using IPTimelapse to put an overlay on a webcam image.

I've tried all codes, both ANSI and UTF8, as well as the literal symbol.

It works when the text file is ANSI, but CMX changes the text file back to UTF8 when it processes it.
Image
User avatar
mcrossley
Posts: 12783
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Degrees symbol encoding

Post by mcrossley »

I've had a look at the code, and if an Extra Web File just created at the path location (rather than being uploaded), then the global UTF-8 encoding value is being used rather than the value set in the Extra Web Files screen.

(Internet Settings > Web/Upload Site > General Settings)

I'll fix that for the next release.
Mapantz
Posts: 1824
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Degrees symbol encoding

Post by Mapantz »

Great stuff!

Thanks Mark. :D
Image
User avatar
BeaumarisWX
Posts: 375
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris, Tasmania, AU
Contact:

Re: Degrees symbol encoding

Post by BeaumarisWX »

Brilliant :clap:
Tony Beaumaris, Tasmania (AUS)

CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
Image
User avatar
ConligWX
Posts: 1635
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04 LTS
Location: Bangor, NI
Contact:

Re: Degrees symbol encoding

Post by ConligWX »

Mapantz wrote: Tue 02 Apr 2024 11:09 am Using IPTimelapse to put an overlay on a webcam image.

I've tried all codes, both ANSI and UTF8, as well as the literal symbol.

It works when the text file is ANSI, but CMX changes the text file back to UTF8 when it processes it.
well looks like mark has identified some fix for you. I use UTF-8 on website and any text files and overlays to my camera images so I dont run into that issue much.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0

Image
92merc
Posts: 67
Joined: Wed 15 Feb 2017 6:07 pm
Weather Station: Davis VP2
Operating System: Windows 11 Pro
Location: Bismarck, ND USA
Contact:

Re: Degrees symbol encoding

Post by 92merc »

Mapantz, I noticed you're running into the same issue as I am. When your wind direction goes from SSW, to SW, the whole line moves around. It doesn't stay with the same spacing.

The reason that is an issue for me, is I create a nightly timelapse video I post to YouTube. When you speed up those shifts, it makes the whole text overlay look wonky.

I was really hoping there would be a way to format that TXT file out to stay with consistent spacing.
Mapantz
Posts: 1824
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Degrees symbol encoding

Post by Mapantz »

Hi 92merc.

I hadn't given that any thought before, but it doesn't cause any issues for me.
How often is your text file being updated?
Image
92merc
Posts: 67
Joined: Wed 15 Feb 2017 6:07 pm
Weather Station: Davis VP2
Operating System: Windows 11 Pro
Location: Bismarck, ND USA
Contact:

Re: Degrees symbol encoding

Post by 92merc »

I think it updates every 10 seconds or so.

Right now, the IPTL developer has his configuration for WD. But I don't care for the tenths of a MPH on Wind. And Baro pressure should be 2 points.

I was hoping to switch over to having Cumulus make the TXT file. And it did make it when I tested it on V3. But if you fast forward on this video to just past the 1 minute mark, you can see when I switched to Cumulus making data overlay vs WD.

https://www.youtube.com/watch?v=UoZstJf7jMg

If the spacing was such that wind direction was always 3 characters, it would work.
Mapantz
Posts: 1824
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Degrees symbol encoding

Post by Mapantz »

10 seconds is fast when playing it back on a time-lapsed video.

I'm guessing in the extra web files, you have 'Realtime' checked?

I don't use it for the text, as it updates too fast and you can't read it well on the time-lapsed video. Instead, the text file is updated every 5 minutes.
Image
92merc
Posts: 67
Joined: Wed 15 Feb 2017 6:07 pm
Weather Station: Davis VP2
Operating System: Windows 11 Pro
Location: Bismarck, ND USA
Contact:

Re: Degrees symbol encoding

Post by 92merc »

I think when you setup the plain text overlay, it'll add the text at every picture taking. Which I have set to 3 seconds.

But when you use WD option on the Weather tab, it caches it. You can chose 0-60 seconds. I have mine set to 5 seconds.
Mapantz
Posts: 1824
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Degrees symbol encoding

Post by Mapantz »

I meant in the Cumulus MX settings. The text file/webtags are being updated too frequently.
Image
92merc
Posts: 67
Joined: Wed 15 Feb 2017 6:07 pm
Weather Station: Davis VP2
Operating System: Windows 11 Pro
Location: Bismarck, ND USA
Contact:

Re: Degrees symbol encoding

Post by 92merc »

When I upgraded to V4, I totally removed my IPTL text file from being made. But I don't think I had it set to realtime.

Wouldn't have mattered as IPTL was looking at the file only every few seconds.

Issue was the spacing of the resulting text file made the timelapse video text look wonky as it was sliding back and forth. IPTL developer had the WD setup locked in as far as spacing goes.

The developer said he'd look at fixing my issues by altering the decimal places, when he had time. In the meantime, I was hoping there was a way to format the Cumulus file instead.
User avatar
BeaumarisWX
Posts: 375
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris, Tasmania, AU
Contact:

Re: Degrees symbol encoding

Post by BeaumarisWX »

Cheers Mark,
CU-MX (4.0.0-b4019) Fixed this Degrees Symbol issue.

https://beaumaris-weather.com/webcam/BWXLiveCam.jpg

If you click image link above, once it loads, click the image again to zoom into more detail.

View Desktop : https://beaumaris-weather.com/wxwebcamtimelapse.php

View Mobile : https://beaumaris-weather.com/BWX/webcam.php

Kindest Regards,
Tony Beaumaris, Tasmania (AUS)

CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
Image
Post Reply