summaryrefslogtreecommitdiffstats
path: root/apps/weather_status/appinfo
diff options
context:
space:
mode:
authorJulien Veyssier <eneiluj@posteo.net>2020-08-06 10:43:26 +0200
committerJan C. Borchardt <hey@jancborchardt.net>2020-08-20 00:21:08 +0200
commit70d1d1997af5fe8d18f2d0ed06680bdbef76e304 (patch)
tree57c8e87b0737778e9fcd86a25e7b3627430c1785 /apps/weather_status/appinfo
parentd8bdb439a4ed31bc3d13d11fef6c046118867d08 (diff)
downloadnextcloud-server-70d1d1997af5fe8d18f2d0ed06680bdbef76e304.tar.gz
nextcloud-server-70d1d1997af5fe8d18f2d0ed06680bdbef76e304.zip
new weather status used in dashboard
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'apps/weather_status/appinfo')
-rw-r--r--apps/weather_status/appinfo/info.xml21
-rw-r--r--apps/weather_status/appinfo/routes.php34
2 files changed, 55 insertions, 0 deletions
diff --git a/apps/weather_status/appinfo/info.xml b/apps/weather_status/appinfo/info.xml
new file mode 100644
index 00000000000..23f37a2a947
--- /dev/null
+++ b/apps/weather_status/appinfo/info.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
+ <id>weather_status</id>
+ <name>Weather status</name>
+ <summary>Weather status in your dashboard</summary>
+ <description><![CDATA[Weather status integrated in the dashboard app.
+ User's position can be automatically determined or manually defined. A 6 hours forecast is then displayed.
+ This status can also be integrated in other places like the Calendar app.]]></description>
+ <version>1.0.0</version>
+ <licence>agpl</licence>
+ <author mail="eneiluj@posteo.net">Julien Veyssier</author>
+ <namespace>WeatherStatus</namespace>
+ <default_enable/>
+ <category>integration</category>
+ <category>dashboard</category>
+ <bugs>https://github.com/nextcloud/server</bugs>
+ <dependencies>
+ <nextcloud min-version="20" max-version="20"/>
+ </dependencies>
+</info>
diff --git a/apps/weather_status/appinfo/routes.php b/apps/weather_status/appinfo/routes.php
new file mode 100644
index 00000000000..6218595a381
--- /dev/null
+++ b/apps/weather_status/appinfo/routes.php
@@ -0,0 +1,34 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * @copyright Copyright (c) 2020, Julien Veyssier
+ *
+ * @author Julien Veyssier <eneiluj@posteo.net>
+ *
+ * @license AGPL-3.0
+ *
+ * This code is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License, version 3,
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
+ *
+ */
+
+return [
+ 'ocs' => [
+ ['name' => 'WeatherStatus#setMode', 'url' => '/api/v1/mode', 'verb' => 'PUT'],
+ ['name' => 'WeatherStatus#usePersonalAddress', 'url' => '/api/v1/use-personal', 'verb' => 'PUT'],
+ ['name' => 'WeatherStatus#getLocation', 'url' => '/api/v1/location', 'verb' => 'GET'],
+ ['name' => 'WeatherStatus#setLocation', 'url' => '/api/v1/location', 'verb' => 'PUT'],
+ ['name' => 'WeatherStatus#getForecast', 'url' => '/api/v1/forecast', 'verb' => 'GET'],
+ ],
+];