view simple_weather.xml @ 1:da03e96d1939 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/weather_app commit d46d41c5fec10407bd6b5cb77a11d9b43b82b95e
author iuc
date Fri, 23 Sep 2016 12:12:11 -0400
parents d2dd051f072b
children 1df8209158ed
line wrap: on
line source

<tool id="simple_weather" name="SimpleWeather" version="0.1.0">
    <requirements>
        <requirement type="package" version="7.45.0">curl</requirement>
        <requirement type="package" version="4.1.3">gawk</requirement>
    </requirements>
    <stdio>
        <exit_code range="1:" />
    </stdio>
    <command><![CDATA[
        curl 'http://wttr.in/$place$units' 2>/dev/null  | sh $__tool_directory__/ansi2html.sh >> '$out_file1';
    ]]></command>
    <inputs>
        <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">
            <sanitizer sanitize="False"/>
        </param>
        <param name="units" label="Units" type="select" >
            <sanitizer sanitize="False"/>
            <option value="?m" selected="true">metric (SI)</option>
            <option value="?u">non-metric (USCS)</option>
        </param>
    </inputs>
    <outputs>
        <data format="html" name="out_file1" label="${tool.name}: ${place}"/>
    </outputs>
    <tests>
        <test>
            <param name="place" value="Moon@1986-Oct-06"/>
            <output name="output1">
                <assert_contents>
                    <has_text_matching expression="N.*e.*w.* .*M.*o.*o.*n.* .*\+" />
                    <has_text_matching expression="2.* .* .*2.*:.*0.*5.*:.*5.*1" />
                    <has_text_matching expression="4.* .*1.*6.*:.*2.*9.*:.*5.*6" />
                </assert_contents>
            </output>
        </test>
    </tests>
    <help><![CDATA[
HELP:
-----
Supported location types:
-------------------------
::
 
    ""                      # current location (ip adress)
    paris                   # city name
    muc                     # airport code (3 letters)
    @stackoverflow.com      # domain name
    94107                   # area codes (us only)
 
Special locations:
-------------------
::
 
    moon                    # Moon phase (add ,+US or ,+France for these cities)
    moon@1999-Oct-02        # Moon phase on a particular date
 

 
--- wrapped by Aarif Mohamed Nazeer Batcha and Jochen Bick ---
 
    ]]></help>
    <citations>
        <citation type="bibtex">
@misc{githubwttr.in,
  author = {chubin},
  year = {2015},
  title = {wttr.in},
  publisher = {GitHub},
  journal = {GitHub repository},
  url = {https://github.com/chubin/wttr.in},
}</citation>
    </citations>
 
</tool>