Updated plugin files and added Upgrade post work

This commit is contained in:
Ziver Koc 2016-08-24 17:27:16 +02:00
parent c50e50305f
commit 3fd3b0430f
5 changed files with 11 additions and 5 deletions

Binary file not shown.

View file

@ -146,6 +146,12 @@ public class HalContext {
return null;
}
});
if (dbVersion < 9) { // tellstick code has changed package
db.exec("UPDATE sensor SET type = 'se.hal.plugin.tellstick.device.Oregon0x1A2D' WHERE type = 'se.hal.plugin.tellstick.protocols.Oregon0x1A2D'");
db.exec("UPDATE event SET type = 'se.hal.plugin.tellstick.device.NexaSelfLearning' WHERE type = 'se.hal.plugin.tellstick.protocols.NexaSelfLearning'");
}
// Check if there is a local user
User localUser = User.getLocalUser(db);
if (localUser == null){

View file

@ -3,6 +3,6 @@
"name": "NutUps",
"interfaces": [
{"se.hal.intf.HalAutoScannableController": "se.hal.plugin.nutups.NutUpsController"},
{"se.hal.intf.HalSensorData": "se.hal.plugin.nutups.NutUpsDevice"}
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.nutups.NutUpsDevice"}
]
}

4
src/se/hal/plugin/raspberry/plugin.json Normal file → Executable file
View file

@ -2,7 +2,7 @@
"version": 1.1,
"name": "Raspberry Pi Sensors",
"interfaces": [
{"se.hal.intf.HalSensorData": "se.hal.plugin.raspberry.RPiPowerConsumptionSensor"},
{"se.hal.intf.HalSensorData": "se.hal.plugin.raspberry.RPiTemperatureSensor"}
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.raspberry.RPiPowerConsumptionSensor"},
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.raspberry.RPiTemperatureSensor"}
]
}

View file

@ -4,7 +4,7 @@
"interfaces": [
{"se.hal.intf.HalAutoScannableController": "se.hal.plugin.tellstick.TellstickSerialComm"},
{"se.hal.intf.HalSensorData": "se.hal.plugin.tellstick.device.Oregon0x1A2D"},
{"se.hal.intf.HalEventData": "se.hal.plugin.tellstick.device.NexaSelfLearning"}
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.tellstick.device.Oregon0x1A2D"},
{"se.hal.intf.HalEventConfig": "se.hal.plugin.tellstick.device.NexaSelfLearning"}
]
}