Andrew, The hyphens and the spaces behaved the same. I added the time zone 
name to the header and the graphs today and I am happy with the display. 
Gene.

On Thursday, July 19, 2018 at 10:11:52 PM UTC-7, Andrew Milner wrote:
>
> I assume you changed the format to something else since the page you 
> linked to does not appear to have the literal hyphens in the date/time 
> strings
>
>
>
> On Friday, 20 July 2018 08:05:57 UTC+3, Andrew Milner wrote:
>>
>> Gene - no offence taken - I've a got a thick hide for a skin … glad 
>> you've got it sorted anyways. However, now I am also curious - we know that 
>> using quotes solved the problem - but out of curiosity does spaces instead 
>> of hyphens also solve it??
>>
>> On Friday, 20 July 2018 08:00:10 UTC+3, Gene Matthews wrote:
>>>
>>> Didn't mean to imply anything. No offense intended. There may be others 
>>> reading this thread that need to know. I ended up putting quotes around the 
>>> formatting strings.Thanks for your help.
>>>
>>> On Thursday, July 19, 2018 at 9:42:26 PM UTC-7, Andrew Milner wrote:
>>>>
>>>> I know that - but it's the only difference between what you typed and 
>>>> what I have had in my skin files for ages!!
>>>>
>>>>
>>>>
>>>> On Friday, 20 July 2018 07:40:07 UTC+3, Gene Matthews wrote:
>>>>>
>>>>> The hyphens are a literals like the space and print between the 
>>>>> formatted date elements. Thanks for the response.
>>>>>
>>>>> On Thursday, July 19, 2018 at 9:32:45 PM UTC-7, Andrew Milner wrote:
>>>>>>
>>>>>> Works fine on 8.0 Jessie with RPi3, but without the hyphens - I have 
>>>>>> a space where you had a hyphen
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Friday, 20 July 2018 06:54:06 UTC+3, gjr80 wrote:
>>>>>>>
>>>>>>> Sorry, left out the quotes:
>>>>>>>
>>>>>>> current    =  "%d-%b-%Y %H%M"
>>>>>>>
>>>>>>> Gary
>>>>>>>
>>>>>>> On Friday, 20 July 2018 13:51:11 UTC+10, gjr80 wrote:
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Interesting, no problems on a Debian 9.5 VM, just waiting to see 
>>>>>>>> what my Stretch RPi does. Out of interest, did you try enclosing the 
>>>>>>>> format 
>>>>>>>> string in quotes eg:
>>>>>>>>
>>>>>>>> current    =  %d-%b-%Y %H%M
>>>>>>>>
>>>>>>>>
>>>>>>>> Gary
>>>>>>>>
>>>>>>>> On Friday, 20 July 2018 13:39:57 UTC+10, Gene Matthews wrote:
>>>>>>>>>
>>>>>>>>> When I change the date time format in Standard skin.conf
>>>>>>>>>
>>>>>>>>> from: current    =  %x %X
>>>>>>>>>
>>>>>>>>> to: current    =  %d-%b-%Y %H%M 
>>>>>>>>>
>>>>>>>>> or any other legal formatting string
>>>>>>>>>
>>>>>>>>> CheetahGenerator throws a Type error for each report
>>>>>>>>>
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: cheetahgenerator: Generate 
>>>>>>>>> failed with exception '<type 'exceptions.TypeError'>'
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: cheetahgenerator: **** 
>>>>>>>>> Ignoring template /etc/weewx/skins/Standard/month.html.tmpl
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: cheetahgenerator: **** 
>>>>>>>>> Reason: must be string, not list
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****  Traceback (most 
>>>>>>>>> recent call last):
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****    File 
>>>>>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 315, in generate
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****      print >> _file, 
>>>>>>>>> text
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****    File 
>>>>>>>>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
>>>>>>>>> __str__
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****      rc = 
>>>>>>>>> getattr(self, mainMethName)()
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****    File 
>>>>>>>>> "_etc_weewx_skins_Standard_month_html_tmpl.py", line 841, in respond
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****    File 
>>>>>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 566, in filter
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****      filtered = 
>>>>>>>>> self.filter(str(val))
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****    File 
>>>>>>>>> "/usr/share/weewx/weewx/units.py", line 907, in __str__
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****      return 
>>>>>>>>> self.toString()
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****    File 
>>>>>>>>> "/usr/share/weewx/weewx/units.py", line 902, in toString
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****      
>>>>>>>>> localize=localize)
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****    File 
>>>>>>>>> "/usr/share/weewx/weewx/units.py", line 628, in toString
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****      val_str = 
>>>>>>>>> time.strftime(self.time_format_dict.get(context, "%d-%b-%Y %H:%M"), 
>>>>>>>>> time.localtime(val_t[0]))
>>>>>>>>> Jul 19 20:30:17 bristolwx1 weewx[2985]: ****  TypeError: must be 
>>>>>>>>> string, not list
>>>>>>>>>
>>>>>>>>> Also, changing the date format string 
>>>>>>>>>
>>>>>>>>> from: bottom_label_format = %x %X
>>>>>>>>>
>>>>>>>>> to: bottom_label_format = %B %d, %Y %H%M
>>>>>>>>>
>>>>>>>>> causes ImageGenerator to throw the same error.
>>>>>>>>>
>>>>>>>>> Changing them back fixes them. I have confirmed the locale as 
>>>>>>>>> en_US. I also looked at the edited skin.conf  and the distributed 
>>>>>>>>> skin.conf  in a hex editor thinking the text editor (nano) was 
>>>>>>>>> putting in 
>>>>>>>>> characters, but that is not the case.
>>>>>>>>>
>>>>>>>>> This is happening on two raspberry pi's.
>>>>>>>>>
>>>>>>>>> Jessie with Weewx 3.7.1
>>>>>>>>> Stretch with Weewx 3.8.0
>>>>>>>>>
>>>>>>>>> This started happening on working systems, possibly after an 
>>>>>>>>> automatic OS update. I can't help but think I am missing something or 
>>>>>>>>> that 
>>>>>>>>> someone else is having the same problem. Help with this is 
>>>>>>>>> appreciated.
>>>>>>>>>
>>>>>>>>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to