Custom Report Generation

95 views
Skip to first unread message

aldofer

unread,
Apr 14, 2013, 5:02:10 PM4/14/13
to weewx...@googlegroups.com

My station, in addition to Weather Underground and PWS, needs to upload a simple file (data.txt) for another Weather Station Network (Linea Meteo) in Italy.
When I was using Cumulus this task was accomplished by Cumuls itself....

Now for weewx I created a new template data.txt.tmpl (in skins/Standard) and I added in skin.conf, section [File Generator]  [[ToDate]] a new file
[[[LineaMeteo]]]
template=data.txt.tmpl
and it works perfectly !!
The file is correctly generated and uploaded on my website.

Unfortunately the file is required to contain only bare data without units, so my question is : how can I skip printing units in the file ??

Thanks
Aldo :)


data.txt.tmpl

wysiwyg

unread,
Apr 14, 2013, 5:50:18 PM4/14/13
to weewx...@googlegroups.com
Hello,
You can use ".formatted" at the end of data label: ex: $current.outTemp.formatted will give for ex 21.9 instead of 21.9°C

Thomas Keffer

unread,
Apr 14, 2013, 10:15:23 PM4/14/13
to weewx-user
wysiwyg has it right.

You can find the answer to your question, plus many other formatting options, in the manual. See The dot code.

-tk





--
You received this message because you are subscribed to the Google Groups "Weewx user's group" 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/groups/opt_out.
 
 



--
Tom Keffer
kef...@threefools.org
+1 541-386-8891 (h)
+1 541-490-9507 (c)
Skype: tkeffer

aldofer

unread,
Apr 15, 2013, 9:21:27 AM4/15/13
to weewx...@googlegroups.com
Thank you very much I solved my problem.

This shows that
I should have read better the documentation:
Anyway congratulations for the "User's guide" and the "
Customizing Weewx" , which are really very clear and complete.

Hello Aldo
Reply all
Reply to author
Forward
0 new messages