--
You received this message because you are subscribed to the Google Groups "Weewx Weather Station Discussion" group.
To post to this group, send email to weewx...@googlegroups.com.
To unsubscribe from this group, send email to weewx-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/weewx-user?hl=en.
ephem.Mars(observer)
rigel = ephem.star('Rigel')
rigel.compute(observer)
--
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+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$almanac.rigel.rise
$almanac.rigel.transit
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** Traceback (most recent call last):
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 294, in generate
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** print >> _file, text
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** rc = getattr(self, mainMethName)()
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** File "_etc_weewx_skins_Standard_almanac_html_tmpl.py", line 992, in respond
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** File "_etc_weewx_skins_Standard_almanac_html_tmpl.py", line 476, in __errorCatcher59
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** File "<string>", line 1, in <module>
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** File "/usr/share/weewx/weewx/almanac.py", line 340, in __getattr__
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** ephem_body = _get_ephem_body(self.heavenly_body)
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** File "/usr/share/weewx/weewx/almanac.py", line 413, in _get_ephem_body
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** ephem_body = ephem.star(cap_name)
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** File "/usr/local/lib/python2.7/dist-packages/ephem/stars.py", line 124, in star
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** star = stars[name].copy()
Nov 20 17:53:35 unimatrix-rasp weewx[31850]: **** KeyError: 'Star'
getattr(ephem, cap_name)
ephem.Mars
ephem_body = ephem.star(cap_name)
getattr(ephem, cap_name)
ephem.Rigel
ephem_body = ephem.star(cap_name)
ephem_body = ephem.star('Rigel')
Yesterday i did the test with the new almanac.py but the the template was the old. I didn't realize that comment markers will be ignored by cheetah. Here an excerpt of my old template
<--
<tr>
<td class="celestial_label">Aufgang:</td>
<td class="celestial_data">$almanac.Star('Rigel')l.rise</td>
</tr>
-->
This code raises an exception because the generator ignores the comment markers. The code between the markers will be always processed. Then i set the right syntax in the template and it works fine. I didn't test the comment markers again so i don't realize the the old wrong code in the template was the problem. Sorry i should more thinking than writing.