view simple_weather.xml @ 4:926d12797549 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/weather_app commit e7f5b5c72aa6e3bfe798e1b13dbb88a094f64003"
author iuc
date Tue, 28 Jan 2020 06:41:06 -0500
parents db98031b6691
children
line wrap: on
line source

<tool id="simple_weather" name="SimpleWeather" version="0.1.1">
    <requirements>
        <requirement type="package" version="7.65.3">curl</requirement>
        <requirement type="package" version="5.0.1">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_n_lines n="325" />
                </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>