On Thu, 20 Nov 2025 at 05:34, 'Ron Walker' via weewx-user < [email protected]> wrote:
> John, > > I deleted the max_cache_age line and retyped it, in case there was any > text I couldn't see. > > Here is the line you requested: > File "/etc/weewx/bin/user/rtgd.py", line 2893 > log.info(\u201cts: %s (%s), self.cache[obs][\u2018ts\u2019]: %s (%s), > max_age: %s (%s)\u201d % (ts, ts, self.cache[obs][\u2018ts\u2019], > self.cache[obs][\u2018ts\u2019], max_age, max_age)) > ^ > SyntaxError: invalid character '\u201c' (U+201C) > That syntax error is the result of non-ascii characters in your log.info string. Specifically - smart quotes. They are showing up as \u201c and \201d instead. Where you see *" or **”* ie :- 'double quotes' delete them and replace them with the plain* " *character from your keyboard. Use a plain text editor to do it and it will have no choice but to insert the correct character. Use nano, vim or whatever is your favourite editor There is a subtle difference in their appearance and while they appear the same, they are most definitely not. Cheers Glenn (VK3GLN) Various WeeWx addons at https://github.com/glennmckechnie -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CAAraAzh-rLu4cp56PsxEzM53Mbd6jG9S%3D6mNN08563%2BJ44G%3DHg%40mail.gmail.com.
