view simple_weather.xml @ 2:1df8209158ed draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/weather_app commit c64126e0c691e7f4a50bf26bb92d962c4c1bd1b7
author iuc
date Wed, 20 Jun 2018 14:40:07 -0400
parents da03e96d1939
children db98031b6691
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" type="text" value="Bloomington" label="Select a place, us-zip code, airport shortcut, webpage, or moon (with optional date)" help="webpages need a '@' sign in front to run see help for more information">
            <sanitizer sanitize="False"/>
        </param>
        <param name="units" type="select" label="Units">
            <sanitizer sanitize="False"/>
            <option value="?m" selected="true">metric (SI)</option>
            <option value="?u">non-metric (USCS)</option>
        </param>
    </inputs>
    <outputs>
        <data name="out_file1" format="html" label="${tool.name}: ${place}"/>
    </outputs>
    <tests>
        <test>
            <param name="place" value="Moon@1986-Oct-06"/>
            <output name="out_file1">
                <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>