Updated plugin files and added Upgrade post work
This commit is contained in:
parent
c50e50305f
commit
3fd3b0430f
5 changed files with 11 additions and 5 deletions
BIN
hal-default.db
BIN
hal-default.db
Binary file not shown.
|
|
@ -146,6 +146,12 @@ public class HalContext {
|
||||||
return null;
|
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
|
// Check if there is a local user
|
||||||
User localUser = User.getLocalUser(db);
|
User localUser = User.getLocalUser(db);
|
||||||
if (localUser == null){
|
if (localUser == null){
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,6 @@
|
||||||
"name": "NutUps",
|
"name": "NutUps",
|
||||||
"interfaces": [
|
"interfaces": [
|
||||||
{"se.hal.intf.HalAutoScannableController": "se.hal.plugin.nutups.NutUpsController"},
|
{"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
4
src/se/hal/plugin/raspberry/plugin.json
Normal file → Executable file
|
|
@ -2,7 +2,7 @@
|
||||||
"version": 1.1,
|
"version": 1.1,
|
||||||
"name": "Raspberry Pi Sensors",
|
"name": "Raspberry Pi Sensors",
|
||||||
"interfaces": [
|
"interfaces": [
|
||||||
{"se.hal.intf.HalSensorData": "se.hal.plugin.raspberry.RPiPowerConsumptionSensor"},
|
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.raspberry.RPiPowerConsumptionSensor"},
|
||||||
{"se.hal.intf.HalSensorData": "se.hal.plugin.raspberry.RPiTemperatureSensor"}
|
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.raspberry.RPiTemperatureSensor"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
"interfaces": [
|
"interfaces": [
|
||||||
{"se.hal.intf.HalAutoScannableController": "se.hal.plugin.tellstick.TellstickSerialComm"},
|
{"se.hal.intf.HalAutoScannableController": "se.hal.plugin.tellstick.TellstickSerialComm"},
|
||||||
|
|
||||||
{"se.hal.intf.HalSensorData": "se.hal.plugin.tellstick.device.Oregon0x1A2D"},
|
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.tellstick.device.Oregon0x1A2D"},
|
||||||
{"se.hal.intf.HalEventData": "se.hal.plugin.tellstick.device.NexaSelfLearning"}
|
{"se.hal.intf.HalEventConfig": "se.hal.plugin.tellstick.device.NexaSelfLearning"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue