comparison simple_weather.xml @ 0:d2dd051f072b draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/weather_app commit daa27cb2061f0d1cfd0f9bdc55e7073c2543f719
author iuc
date Tue, 19 Jul 2016 11:55:14 -0400
parents
children da03e96d1939
comparison
equal deleted inserted replaced
-1:000000000000 0:d2dd051f072b
1 <tool id="simple_weather" name="SimpleWeather" version="0.1.0">
2 <requirements>
3 <requirement type="package" version="7.45.0">curl</requirement>
4 <requirement type="package" version="4.1.3">gawk</requirement>
5 </requirements>
6 <stdio>
7 <exit_code range="1:" />
8 </stdio>
9 <command><![CDATA[
10 curl 'http://wttr.in/$place$units' 2>/dev/null | sh $__tool_directory__/ansi2html.sh >> '$out_file1';
11 ]]></command>
12 <inputs>
13 <param name="place" label="Select a place, us-zip code, airport shortcut, webpage, or moon (with optional date)" type="text" value="Bloomington" help="webpages need a '@' sign in front to run see help for more information">
14 <sanitizer sanitize="False"/>
15 </param>
16 <param name="units" label="Units" type="select" >
17 <sanitizer sanitize="False"/>
18 <option value="?m" selected="true">metric (SI)</option>
19 <option value="?u">non-metric (USCS)</option>
20 </param>
21 </inputs>
22 <outputs>
23 <data format="html" name="out_file1" label="${tool.name}: ${place}"/>
24 </outputs>
25 <tests>
26 <test>
27 <param name="place" value="Moon@1986-Oct-06"/>
28 <output name="output1">
29 <assert_contents>
30 <has_text_matching expression="N.*e.*w.* .*M.*o.*o.*n.* .*\+" />
31 <has_text_matching expression="2.* .* .*2.*:.*0.*5.*:.*5.*1" />
32 <has_text_matching expression="4.* .*1.*6.*:.*2.*9.*:.*5.*6" />
33 </assert_contents>
34 </output>
35 </test>
36 </tests>
37 <help><![CDATA[
38 HELP:
39 -----
40 Supported location types:
41 -------------------------
42 ::
43
44 "" # current location (ip adress)
45 paris # city name
46 muc # airport code (3 letters)
47 @stackoverflow.com # domain name
48 94107 # area codes (us only)
49
50 Special locations:
51 -------------------
52 ::
53
54 moon # Moon phase (add ,+US or ,+France for these cities)
55 moon@1999-Oct-02 # Moon phase on a particular date
56
57
58
59 --- wrapped by Aarif Mohamed Nazeer Batcha and Jochen Bick ---
60
61 ]]></help>
62 <citations>
63 <citation type="bibtex">
64 @misc{githubwttr.in,
65 author = {chubin},
66 year = {2015},
67 title = {wttr.in},
68 publisher = {GitHub},
69 journal = {GitHub repository},
70 url = {https://github.com/chubin/wttr.in},
71 }</citation>
72 </citations>
73
74 </tool>