Renamed Tibber plugin name
This commit is contained in:
parent
21a672acf4
commit
c96a00333b
9 changed files with 28 additions and 42 deletions
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"version": 0.1,
|
|
||||||
"name": "Hal-Tibber",
|
|
||||||
"description": "Plugin that connects to the Tibber API.",
|
|
||||||
"interfaces": [
|
|
||||||
{"se.hal.intf.HalAutostartController": "se.hal.plugin.tibber.TibberController"},
|
|
||||||
|
|
||||||
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.tibber.device.TibberElectricityCostSensor"},
|
|
||||||
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.tibber.device.TibberElectricityPriceSensor"},
|
|
||||||
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.tibber.device.TibberPowerConsumptionSensor"}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -22,23 +22,16 @@
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.hal.plugin.tibber;
|
package se.hal.plugin.vendor.tibber;
|
||||||
|
|
||||||
import se.hal.HalContext;
|
import se.hal.HalContext;
|
||||||
import se.hal.plugin.tibber.device.TibberElectricityCostSensor;
|
|
||||||
import se.hal.plugin.tibber.device.TibberElectricityPriceSensor;
|
|
||||||
import se.hal.plugin.tibber.device.TibberPowerConsumptionSensor;
|
|
||||||
import se.hal.struct.devicedata.PriceSensorData;
|
|
||||||
import se.hal.util.ListenerUtil;
|
|
||||||
import zutil.ObjectUtil;
|
import zutil.ObjectUtil;
|
||||||
import zutil.log.LogUtil;
|
import zutil.log.LogUtil;
|
||||||
import zutil.net.http.HttpClient;
|
import zutil.net.http.HttpClient;
|
||||||
import zutil.net.http.HttpHeader;
|
import zutil.net.http.HttpHeader;
|
||||||
import zutil.parser.DataNode;
|
import zutil.parser.DataNode;
|
||||||
import zutil.parser.json.JSONParser;
|
import zutil.parser.json.JSONParser;
|
||||||
import zutil.ui.UserMessageManager;
|
|
||||||
|
|
||||||
import javax.xml.crypto.Data;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
|
|
@ -22,25 +22,18 @@
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.hal.plugin.tibber;
|
package se.hal.plugin.vendor.tibber;
|
||||||
|
|
||||||
import se.hal.HalContext;
|
import se.hal.HalContext;
|
||||||
import se.hal.HalServer;
|
import se.hal.HalServer;
|
||||||
import se.hal.intf.*;
|
import se.hal.intf.*;
|
||||||
import se.hal.plugin.tibber.device.TibberElectricityCostSensor;
|
import se.hal.plugin.vendor.tibber.device.TibberElectricityCostSensor;
|
||||||
import se.hal.plugin.tibber.device.TibberElectricityPriceSensor;
|
import se.hal.plugin.vendor.tibber.device.TibberElectricityPriceSensor;
|
||||||
import se.hal.plugin.tibber.device.TibberPowerConsumptionSensor;
|
import se.hal.plugin.vendor.tibber.device.TibberPowerConsumptionSensor;
|
||||||
import se.hal.struct.devicedata.PriceSensorData;
|
import se.hal.struct.devicedata.PriceSensorData;
|
||||||
import se.hal.util.ListenerUtil;
|
import se.hal.util.ListenerUtil;
|
||||||
import zutil.ObjectUtil;
|
|
||||||
import zutil.log.LogUtil;
|
import zutil.log.LogUtil;
|
||||||
import zutil.net.http.HttpClient;
|
|
||||||
import zutil.net.http.HttpHeader;
|
|
||||||
import zutil.parser.DataNode;
|
|
||||||
import zutil.parser.json.JSONParser;
|
|
||||||
import zutil.ui.UserMessageManager;
|
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* The MIT License (MIT)
|
* The MIT License (MIT)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2024 Ziver Koc
|
* Copyright (c) 2024-2025 Ziver Koc
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.hal.plugin.tibber;
|
package se.hal.plugin.vendor.tibber;
|
||||||
|
|
||||||
public interface TibberDevice {
|
public interface TibberDevice {
|
||||||
}
|
}
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* The MIT License (MIT)
|
* The MIT License (MIT)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2024 Ziver Koc
|
* Copyright (c) 2024-2025 Ziver Koc
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
@ -22,12 +22,12 @@
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.hal.plugin.tibber.device;
|
package se.hal.plugin.vendor.tibber.device;
|
||||||
|
|
||||||
import se.hal.intf.HalSensorConfig;
|
import se.hal.intf.HalSensorConfig;
|
||||||
import se.hal.intf.HalSensorController;
|
import se.hal.intf.HalSensorController;
|
||||||
import se.hal.intf.HalSensorData;
|
import se.hal.intf.HalSensorData;
|
||||||
import se.hal.plugin.tibber.TibberController;
|
import se.hal.plugin.vendor.tibber.TibberController;
|
||||||
import se.hal.struct.devicedata.CostSensorData;
|
import se.hal.struct.devicedata.CostSensorData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* The MIT License (MIT)
|
* The MIT License (MIT)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2024 Ziver Koc
|
* Copyright (c) 2024-2025 Ziver Koc
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
@ -22,12 +22,12 @@
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.hal.plugin.tibber.device;
|
package se.hal.plugin.vendor.tibber.device;
|
||||||
|
|
||||||
import se.hal.intf.HalSensorConfig;
|
import se.hal.intf.HalSensorConfig;
|
||||||
import se.hal.intf.HalSensorController;
|
import se.hal.intf.HalSensorController;
|
||||||
import se.hal.intf.HalSensorData;
|
import se.hal.intf.HalSensorData;
|
||||||
import se.hal.plugin.tibber.TibberController;
|
import se.hal.plugin.vendor.tibber.TibberController;
|
||||||
import se.hal.struct.devicedata.PriceSensorData;
|
import se.hal.struct.devicedata.PriceSensorData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* The MIT License (MIT)
|
* The MIT License (MIT)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2024 Ziver Koc
|
* Copyright (c) 2024-2025 Ziver Koc
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
@ -22,13 +22,13 @@
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.hal.plugin.tibber.device;
|
package se.hal.plugin.vendor.tibber.device;
|
||||||
|
|
||||||
import se.hal.intf.HalSensorConfig;
|
import se.hal.intf.HalSensorConfig;
|
||||||
import se.hal.intf.HalSensorController;
|
import se.hal.intf.HalSensorController;
|
||||||
import se.hal.intf.HalSensorData;
|
import se.hal.intf.HalSensorData;
|
||||||
import se.hal.struct.devicedata.PowerConsumptionSensorData;
|
import se.hal.struct.devicedata.PowerConsumptionSensorData;
|
||||||
import se.hal.plugin.tibber.TibberController;
|
import se.hal.plugin.vendor.tibber.TibberController;
|
||||||
|
|
||||||
|
|
||||||
public class TibberPowerConsumptionSensor implements HalSensorConfig {
|
public class TibberPowerConsumptionSensor implements HalSensorConfig {
|
||||||
12
plugins/hal-vendor-tibber/src/se/hal/plugin/vendor/tibber/plugin.json
vendored
Normal file
12
plugins/hal-vendor-tibber/src/se/hal/plugin/vendor/tibber/plugin.json
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"version": 0.1,
|
||||||
|
"name": "Hal-Vendor-Tibber",
|
||||||
|
"description": "Plugin that connects to the Tibber API.",
|
||||||
|
"interfaces": [
|
||||||
|
{"se.hal.intf.HalAutostartController": "se.hal.plugin.vendor.tibber.TibberController"},
|
||||||
|
|
||||||
|
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.vendor.tibber.device.TibberElectricityCostSensor"},
|
||||||
|
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.vendor.tibber.device.TibberElectricityPriceSensor"},
|
||||||
|
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.vendor.tibber.device.TibberPowerConsumptionSensor"}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue