Skip to content

Commit

Permalink
Prepare release 0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstocker committed May 19, 2018
1 parent 65d3722 commit 9aa35f8
Show file tree
Hide file tree
Showing 60 changed files with 70 additions and 21 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .travis.yml
100644 → 100755
Empty file.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# SensorLogger
### (0.0.6) UNRELEASED
### (0.0.6) RELEASED
* Added SensorLogs::deleteLogById and deleteLog controller action #37'
* Added dashboard widgets column media styles
* Added timeoffset calculation for realtime charts
* Added RealTime Data widget
* Started to rebuild script.js #11, added RealTime Chart widget
* Updated insertExtendedLog and insertLog to use QueryBuilder
* Added SensorLogs::deleteLogById and deleteLog controller action #37'
Expand Down
Empty file modified CODE_OF_CONDUCT.md
100644 → 100755
Empty file.
Empty file modified CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified ISSUE_TEMPLATE.md
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Sensor Logger

### Latest Versions
- owncloud [0.0.5](https://github.com/alexstocker/sensorlogger/releases/tag/0.0.5)
- nextcloud [0.0.5nc](https://github.com/alexstocker/sensorlogger/releases/tag/0.0.5nc)
- owncloud [0.0.6](https://github.com/alexstocker/sensorlogger/releases/tag/0.0.6)
- nextcloud [0.0.6nc](https://github.com/alexstocker/sensorlogger/releases/tag/0.0.6nc)

Read more [SensorLogger WIKI](https://github.com/alexstocker/sensorlogger/wiki/)

![SensorLogger Dashboard](http://www.html5live.at/wp-content/uploads/2017/03/sensorlogger_dashboard-1.png)
![SensorLogger Dashboard](https://www.html5live.at/wp-content/uploads/2018/05/sensorlogger_oc_dashboard_widget_livedata_001.png)

![SensorLogger Chart](http://www.html5live.at/wp-content/uploads/2017/03/sensorlogger_chart_0.png)

Expand Down
Empty file modified appinfo/app.php
100644 → 100755
Empty file.
Empty file modified appinfo/autoload.php
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<description>SensorLogger for ownCloud enables users to log data provided by sensor devices</description>
<licence>AGPL</licence>
<author>Alexander Stocker</author>
<version>0.0.5</version>
<version>0.0.6</version>
<namespace>SensorLogger</namespace>
<category>tools</category>
<ocsid>174814</ocsid>
Expand All @@ -25,7 +25,7 @@
<website>https://www.html5live.at/sensorlogger/</website>
<summary>Log data from any type of sensor and visualize it</summary>

<screenshot>https://www.html5live.at/wp-content/uploads/2017/03/sensorlogger_dashboard-1.png</screenshot>
<screenshot>https://www.html5live.at/wp-content/uploads/2018/05/sensorlogger_oc_dashboard_widget_livedata_001.png</screenshot>

<screenshot>https://www.html5live.at/wp-content/uploads/2017/03/sensorlogger_chart_0.png</screenshot>

Expand All @@ -40,7 +40,7 @@
<screenshot>https://www.html5live.at/wp-content/uploads/2017/03/sensorlogger_deviceDetails_edit.png</screenshot>

<dependencies>
<owncloud min-version="9.0" max-version="10.0"/>
<owncloud min-version="9" max-version="10"/>
<database>mysql</database>
</dependencies>
</info>
Empty file modified appinfo/routes.php
100644 → 100755
Empty file.
Empty file modified controller/apisensorloggercontroller.php
100644 → 100755
Empty file.
Empty file modified controller/sensorloggercontroller.php
100644 → 100755
Empty file.
Empty file modified img/graph.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified img/graph.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified img/reset-white.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified img/reset-white.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified img/reset.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified img/reset.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified l10n/de.js
100644 → 100755
Empty file.
Empty file modified l10n/de.json
100644 → 100755
Empty file.
Empty file modified lib/App.php
100644 → 100755
Empty file.
Empty file modified lib/Application.php
100644 → 100755
Empty file.
Empty file modified lib/DataType.php
100644 → 100755
Empty file.
Empty file modified lib/DataTypes.php
100644 → 100755
Empty file.
Empty file modified lib/Device.php
100644 → 100755
Empty file.
2 changes: 0 additions & 2 deletions lib/DeviceTypes.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class DeviceTypes {
public static function getDeviceTypes($userId, IDBConnection $db) {
$query = $db->getQueryBuilder();
$query->select('sdt.user_id','sdt.id','sdt.device_type_name')
//->selectAlias('sdt.user_id','user_id')
//->selectAlias('sdt.id','id')
->from('sensorlogger_device_types','sdt')
->leftJoin('sdt', 'sensorlogger_devices', 'sd', 'sdt.id = sd.type_id')
->where('sdt.user_id = "'.$userId.'"')
Expand Down
Empty file modified lib/Error.php
100644 → 100755
Empty file.
Empty file modified lib/Group.php
100644 → 100755
Empty file.
Empty file modified lib/Log.php
100644 → 100755
Empty file.
Empty file modified lib/LogExtended.php
100644 → 100755
Empty file.
Empty file modified lib/SensorDevices.php
100644 → 100755
Empty file.
Empty file modified lib/SensorGroups.php
100644 → 100755
Empty file.
Empty file modified lib/SensorLogs.php
100644 → 100755
Empty file.
Empty file modified lib/Type.php
100644 → 100755
Empty file.
Empty file modified lib/Widget.php
100644 → 100755
Empty file.
Empty file modified lib/Widgets.php
100644 → 100755
Empty file.
Empty file modified phpunit.integration.xml
100644 → 100755
Empty file.
Empty file modified phpunit.xml
100644 → 100755
Empty file.
10 changes: 8 additions & 2 deletions templates/main.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@
<div class="systemTagsInfoView"></div>
</div>
<ul class="tabHeaders">
<li class="tabHeader selected" data-tabid="shareTabView" data-tabindex="2">
<a href="#">Teilen</a>
<li class="tabHeader selected" data-tabid="shareTabView" data-tabindex="0">
<a href="#">Share</a>
</li>
<li class="tabHeader" data-tabid="activityTabView" data-tabindex="1">
<a href="#">Activities</a>
</li>
<li class="tabHeader" data-tabid="notificationsTabView" data-tabindex="1">
<a href="#">Notifications</a>
</li>
</ul>
<div id="tabsContainer">
Expand Down
Empty file modified templates/part.chart.php
100644 → 100755
Empty file.
Empty file modified templates/part.dashboard.php
100644 → 100755
Empty file.
Empty file modified templates/part.list.php
100644 → 100755
Empty file.
Empty file modified templates/part.listDataTypes.php
100644 → 100755
Empty file.
Empty file modified templates/part.listDeviceGroups.php
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion templates/part.listDeviceTypes.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<tr>
<td class="td-data"><?php p($deviceType['id']); ?></td>
<td class="td-data"><?php p($deviceType['device_type_name']); ?></td>
<td class="td-data"></td>
<td class="td-data"><?php p($deviceType['uuid']); ?></td>
<td class="td-data">Show devices</td>
</tr>
<?php } ?>
Expand Down
Empty file modified templates/part.listDevices.php
100644 → 100755
Empty file.
Empty file modified templates/part.listSharedDevices.php
100644 → 100755
Empty file.
Empty file modified templates/part.navigation.php
100644 → 100755
Empty file.
Empty file modified templates/part.settings.php
100644 → 100755
Empty file.
Empty file modified templates/widget_dashboard.php
100644 → 100755
Empty file.
Empty file modified tests/bootstrap.php
100644 → 100755
Empty file.
Empty file modified tests/curl/getdatatypes.php
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions tests/curl/post.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
$url = 'http://owncloud10.loc/index.php/apps/sensorlogger/api/v1/createlog/';
$url = 'http://owncloud.loc/index.php/apps/sensorlogger/api/v1/createlog/';

$humidity = mt_rand (1.00*10, 99.99*10) / 10;
$temperature = mt_rand (-9.00*10, 49.99*10) / 10;
Expand All @@ -10,8 +10,8 @@
"date" => date('Y-m-d H:i:s'));
$data_json = json_encode($array);

$username = 'admin';
$token = 'RWGFF-KMZUC-NFOQD-CMXCC';
$username = 'test';
$token = 'GOETJ-QOSIY-WCIZI-ZAJTL';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
Expand Down
Empty file modified tests/curl/post_extend.php
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion tests/curl/post_extend_0.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$nh3 = mt_rand (1*10, 500*10) / 10;
$ch4 = mt_rand (1*10, 1000*10) / 10;

$array = array("deviceId" => "4aa62764-59d1-1e21-b103-7161475fce8c",
$array = array("deviceId" => "635558e7-602c-0dfd-f4db-3ee12efdf7ce",
"date" => date('Y-m-d H:i:s'),
"data" => array(
array(
Expand Down
Empty file modified tests/curl/put.php
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions tests/curl/register.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
$url = 'http://owncloud10.loc/index.php/apps/sensorlogger/api/v1/registerdevice/';
$url = 'http://owncloud.loc/index.php/apps/sensorlogger/api/v1/registerdevice/';

$registerArray = [
'_route' => 'sensorlogger.apisensorlogger.registerDevice',
Expand Down Expand Up @@ -29,8 +29,8 @@

$data_json = json_encode($registerArray);

$username = 'admin';
$token = 'RWGFF-KMZUC-NFOQD-CMXCC';
$username = 'test';
$token = 'GOETJ-QOSIY-WCIZI-ZAJTL';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
Expand Down
4 changes: 2 additions & 2 deletions tests/curl/register_extend_0.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function genUniquID() {
return $uuid;
}

$url = 'http://owncloud10.loc/index.php/apps/sensorlogger/api/v1/registerdevice/';
$url = 'http://owncloud.loc/index.php/apps/sensorlogger/api/v1/registerdevice/';

$registerArray = [
'_route' => 'sensorlogger.apisensorlogger.registerDevice',
Expand Down Expand Up @@ -56,7 +56,7 @@ function genUniquID() {
$data_json = json_encode($registerArray);

$username = 'test';
$token = 'MDBFK-CLTDQ-JUDHW-AKJLB';
$token = 'GOETJ-QOSIY-WCIZI-ZAJTL';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
Expand Down
41 changes: 41 additions & 0 deletions tests/integration/AppTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/**
* ownCloud - sensorlogger
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author ELExG <[email protected]>
* @copyright ELExG 2017
*/

use OCP\AppFramework\App;
use Test\TestCase;


/**
* This test shows how to make a small Integration Test. Query your class
* directly from the container, only pass in mocks if needed and run your tests
* against the database
*/
class AppTest extends TestCase {

private $container;

public function setUp() {
parent::setUp();
$app = new App('sensorlogger');
$this->container = $app->getContainer();
}

public function testAppInstalled() {
$appManager = $this->container->query('OCP\App\IAppManager');
$this->assertTrue($appManager->isInstalled('sensorlogger'));
}

public function testAppRemove() {
$appManager = $this->container->query('OCP\App\IAppManager');
$this->testAppRemove();
}

}

0 comments on commit 9aa35f8

Please sign in to comment.