Thanks for your reply, below is the error and I have attached "tags.py"
Feb 9 07:01:42 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/Testtags/testtags.php.tmpl failed with exception '<type 'exceptions.KeyError'>'
Feb 9 07:01:42 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Testtags/testtags.php.tmpl
Feb 9 07:01:42 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** Reason: 'trend'
Feb 9 07:01:42 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last):
Feb 9 07:01:42 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 344, in generate
Feb 9 07:01:42 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond()
Feb 9 07:01:42 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** File "_etc_weewx_skins_Testtags_testtags_php_tmpl.py", line 1061, in respond
Feb 9 07:01:42 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/tags.py", line 65, in trend
Feb 9 07:01:42 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** time_grace = to_int(self.option_dict['trend'].get('time_grace', 300))
Feb 9 07:01:42 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** KeyError: 'trend'
Feb 9 07:01:42 W4LCS-Server weewx[10341] INFO weewx.cheetahgenerator: Generated 0 files for report wdTesttags in 6.52 seconds
Feb 9 07:01:47 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/Clientraw/clientraw.txt.tmpl failed with exception '<type 'exceptions.KeyError'>'
Feb 9 07:01:47 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Clientraw/clientraw.txt.tmpl
Feb 9 07:01:47 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** Reason: 'trend'
Feb 9 07:01:47 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last):
Feb 9 07:01:47 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 344, in generate
Feb 9 07:01:47 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond()
Feb 9 07:01:47 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** File "_etc_weewx_skins_Clientraw_clientraw_txt_tmpl.py", line 329, in respond
Feb 9 07:01:47 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1377, in varExists
Feb 9 07:01:47 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** valueFromSearchList(self.searchList(), varName.replace('$', ''), autoCall)
Feb 9 07:01:47 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/tags.py", line 63, in trend
Feb 9 07:01:47 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** time_delta = to_int(self.option_dict['trend'].get('time_delta', 10800))
Feb 9 07:01:47 W4LCS-Server weewx[10341] ERROR weewx.cheetahgenerator: **** KeyError: 'trend'