diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/simple_weather.xml	Tue Jul 19 11:55:14 2016 -0400
@@ -0,0 +1,74 @@
+<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>
\ No newline at end of file