Hi Christian, That error has me lost. I use only a heavily modified Seasons skin, which I migrated by merging my changes into the new skin folder. I have trimmed out all the references to data I do not have, mainly to make it easier to follow, and perhaps get a tiny improvement in efficiency.
I would suggest you enable only one skin, then check for it trying to use parameters not in the database - mostly the uncommon ones are tested for existence before trying to use them but maybe some aren't. If you are lucky somebody might come along who understands the issue - I am just guessing. Cameron. On Saturday, 20 June 2020 19:15:45 UTC+10, Christian Peters wrote: > > Hi Caeron, > > damn...yes....theat was obvious. It works now. Thank you very much > > But Python3 seems not as lazy as Python2, now I got this and weewx stops > generating the webpage: > > > Generate failed with exception '<class 'TypeError'>' > Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: **** > Ignoring template /etc/weewx/skins/Responsive/index.html.tmpl > Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: **** > Reason: '>' not supported between instances of 'NoneType' and 'int' > Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: **** > Traceback (most recent call last): > Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: **** > File "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate > Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: **** > unicode_string = compiled_template.respond() > Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: **** > File "_etc_weewx_skins_Responsive_index_html_tmpl.py", line 2284, in > respond > Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: **** > TypeError: '>' not supported between instances of 'NoneType' and 'int' > > > I fear some value inside the database which was queried and I want to do a > graph seems to contain 'no data' or 'NoneType'? > But the errer doen'st really help where it could happened...! :-P > > Let's see... > > Regards, > > Christian > > Am Samstag, 20. Juni 2020 10:50:42 UTC+2 schrieb Cameron D: >> >> Hi Christian, >> sorry, I forgot the bit where you also need to rename your main schema >> from "schema" to "table". >> >> Don't worry about adding columns just in case you might need them in >> future - with mysql you can add them any time you need. It is rather more >> flexible than sqlite about altering table definitions after they have been >> created. >> >> Cameron. >> > -- 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 on the web visit https://groups.google.com/d/msgid/weewx-user/151b98d9-9805-4f3b-8654-7c506718bd36o%40googlegroups.com.
