* Mon May 12 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme

- Adding SM2 panel [SME: 13004]
- Upgrade to phpsysinfo 3.4.4
- Add code to delete inline styles and add css to make it look better.
- version saved / built uses the static version, which means no drops downs and choices.
This commit is contained in:
2025-05-14 16:14:01 +01:00
parent 80b1da5fa5
commit c8ce77259d
952 changed files with 51341 additions and 28699 deletions

View File

@@ -8,7 +8,7 @@
* @package PSI_TO
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
* @copyright 2009 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
* @version SVN: $Id: class.UPSDevice.inc.php 262 2009-06-22 10:48:33Z bigmichi1 $
* @link http://phpsysinfo.sourceforge.net
*/
@@ -19,7 +19,7 @@
* @package PSI_TO
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
* @copyright 2009 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
* @version Release: 3.0
* @link http://phpsysinfo.sourceforge.net
*/
@@ -28,121 +28,128 @@ class UPSDevice
/**
* name of the ups
*
* @var String
* @var string
*/
private $_name = "";
/**
* model of the ups
*
* @var String
* @var string
*/
private $_model = "";
/**
* mode of the ups
*
* @var String
* @var string
*/
private $_mode = "";
/**
* last start time
*
* @var String
* @var string
*/
private $_startTime = "";
/**
* status of the ups
*
* @var String
* @var string
*/
private $_status = "";
/**
* temperature of the ups
*
* @var Integer
* @var string
*/
private $_temperatur = null;
/**
* outages count
*
* @var Integer
* @var int
*/
private $_outages = null;
/**
* date of last outtage
*
* @var String
* @var string
*/
private $_lastOutage = null;
/**
* date of last outage finish
*
* @var String
* @var string
*/
private $_lastOutageFinish = null;
/**
* line volt
*
* @var Integer
* @var float
*/
private $_lineVoltage = null;
/**
* line freq
*
* @var Integer
* @var int
*/
private $_lineFrequency = null;
/**
* current load of the ups in percent
*
* @var Integer
* @var float
*/
private $_load = null;
/**
* battery installation date
*
* @var String
* @var string
*/
private $_batteryDate = null;
/**
* current battery volt
*
* @var Integer
* @var float
*/
private $_batteryVoltage = null;
/**
* current charge in percent of the battery
*
* @var Integer
* @var float
*/
private $_batterCharge = null;
/**
* time left
*
* @var String
* @var string
*/
private $_timeLeft = null;
/**
* beeper enabled or disabled
*
* @var string
*/
private $_beeperStatus = null;
/**
* Returns $_batterCharge.
*
* @see UPSDevice::$_batterCharge
*
* @return integer
* @return float
*/
public function getBatterCharge()
{
@@ -152,7 +159,7 @@ class UPSDevice
/**
* Sets $_batterCharge.
*
* @param Integer $batterCharge battery charge
* @param float $batterCharge battery charge
*
* @see UPSDevice::$_batterCharge
*
@@ -182,7 +189,7 @@ class UPSDevice
*
* @see UPSDevice::$_batteryDate
*
* @return Void
* @return void
*/
public function setBatteryDate($batteryDate)
{
@@ -194,7 +201,7 @@ class UPSDevice
*
* @see UPSDevice::$_batteryVoltage
*
* @return Integer
* @return float
*/
public function getBatteryVoltage()
{
@@ -204,11 +211,11 @@ class UPSDevice
/**
* Sets $_batteryVoltage.
*
* @param object $batteryVoltage battery volt
* @param float $batteryVoltage battery volt
*
* @see UPSDevice::$_batteryVoltage
*
* @return Void
* @return void
*/
public function setBatteryVoltage($batteryVoltage)
{
@@ -234,7 +241,7 @@ class UPSDevice
*
* @see UPSDevice::$lastOutage
*
* @return Void
* @return void
*/
public function setLastOutage($lastOutage)
{
@@ -260,7 +267,7 @@ class UPSDevice
*
* @see UPSDevice::$_lastOutageFinish
*
* @return Void
* @return void
*/
public function setLastOutageFinish($lastOutageFinish)
{
@@ -272,7 +279,7 @@ class UPSDevice
*
* @see UPSDevice::$_lineVoltage
*
* @return Integer
* @return float
*/
public function getLineVoltage()
{
@@ -282,11 +289,11 @@ class UPSDevice
/**
* Sets $_lineVoltage.
*
* @param Integer $lineVoltage line voltage
* @param float $lineVoltage line voltage
*
* @see UPSDevice::$_lineVoltage
*
* @return Void
* @return void
*/
public function setLineVoltage($lineVoltage)
{
@@ -298,7 +305,7 @@ class UPSDevice
*
* @see UPSDevice::$_lineFrequency
*
* @return Integer
* @return int
*/
public function getLineFrequency()
{
@@ -308,11 +315,11 @@ class UPSDevice
/**
* Sets $_lineFrequency.
*
* @param Integer $lineFrequency line frequency
* @param int $lineFrequency line frequency
*
* @see UPSDevice::$_lineFrequency
*
* @return Void
* @return void
*/
public function setLineFrequency($lineFrequency)
{
@@ -324,7 +331,7 @@ class UPSDevice
*
* @see UPSDevice::$_load
*
* @return Integer
* @return float
*/
public function getLoad()
{
@@ -334,11 +341,11 @@ class UPSDevice
/**
* Sets $_load.
*
* @param Integer $load current load
* @param float $load current load
*
* @see UPSDevice::$_load
*
* @return Void
* @return void
*/
public function setLoad($load)
{
@@ -364,7 +371,7 @@ class UPSDevice
*
* @see UPSDevice::$_mode
*
* @return Void
* @return void
*/
public function setMode($mode)
{
@@ -390,7 +397,7 @@ class UPSDevice
*
* @see UPSDevice::$_model
*
* @return Void
* @return void
*/
public function setModel($model)
{
@@ -416,7 +423,7 @@ class UPSDevice
*
* @see UPSDevice::$_name
*
* @return Void
* @return void
*/
public function setName($name)
{
@@ -428,7 +435,7 @@ class UPSDevice
*
* @see UPSDevice::$_outages
*
* @return Integer
* @return int
*/
public function getOutages()
{
@@ -438,11 +445,11 @@ class UPSDevice
/**
* Sets $_outages.
*
* @param Integer $outages outages count
* @param int $outages outages count
*
* @see UPSDevice::$_outages
*
* @return Void
* @return void
*/
public function setOutages($outages)
{
@@ -468,7 +475,7 @@ class UPSDevice
*
* @see UPSDevice::$_startTime
*
* @return Void
* @return void
*/
public function setStartTime($startTime)
{
@@ -494,7 +501,7 @@ class UPSDevice
*
* @see UPSDevice::$_status
*
* @return Void
* @return void
*/
public function setStatus($status)
{
@@ -506,7 +513,7 @@ class UPSDevice
*
* @see UPSDevice::$_temperatur
*
* @return Integer
* @return string
*/
public function getTemperatur()
{
@@ -516,11 +523,11 @@ class UPSDevice
/**
* Sets $_temperatur.
*
* @param Integer $temperatur temperature
* @param string $temperatur temperature
*
* @see UPSDevice::$_temperatur
*
* @return Void
* @return void
*/
public function setTemperatur($temperatur)
{
@@ -546,10 +553,36 @@ class UPSDevice
*
* @see UPSDevice::$_timeLeft
*
* @return Void
* @return void
*/
public function setTimeLeft($timeLeft)
{
$this->_timeLeft = $timeLeft;
}
/**
* Returns $_beeperStatus.
*
* @see UPSDevice::$_beeperStatus
*
* @return String
*/
public function getBeeperStatus()
{
return $this->_beeperStatus;
}
/**
* Sets $_beeperStatus.
*
* @param String $beeperStatus beeper status
*
* @see UPSDevice::$_beeperStatus
*
* @return void
*/
public function setBeeperStatus($beeperStatus)
{
$this->_beeperStatus = $beeperStatus;
}
}