-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Carrier Sense und Duty Cycle für RPI-RF-MOD,RPI-RF-MOD-PCB & HmIP-RFU…
…SB eingepflegt. Carrier Sense und Duty Cycle für RPI-RF-MOD,RPI-RF-MOD-PCB & HmIP-RFUSB eingepflegt. mapping auch angepasst. Sind zu finden unter Sender. "?seite=Sender"
- Loading branch information
1 parent
97706fe
commit afce0b0
Showing
4 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
function HmIP_RFUSB($component) { | ||
// if ($component['parent_device_interface'] == 'HmIP-RF' ) { | ||
$modalId = mt_rand(); | ||
if (!isset($component['color'])) $component['color'] = '#00CC33'; | ||
|
||
|
||
return '<div class="hh" style=\'border-left-color: '.$component['color'].'; border-left-style: solid;\'>' | ||
. '<div data-toggle="collapse" data-target="#' . $modalId . '">' | ||
. '<div class="pull-left"><img src="icon/' . $component["icon"] . '" class="icon">' . $component['name'] . '</div>' | ||
. '<div class="pull-right">' | ||
.'Belegung Funkband<span class="info" data-id="' . $component['CARRIER_SENSE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="CARRIER_SENSE_LEVEL"></span> | ' | ||
. 'Duty Cycle<span class="info" data-id="' . $component['DUTY_CYCLE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="DUTY_CYCLE_LEVEL"></span>' | ||
|
||
. '</div>' | ||
. '<div class="clearfix"></div>' | ||
. '</div>' | ||
|
||
. '</div>'; | ||
} | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
function RPI_RF_MOD_PCB($component) { | ||
// if ($component['parent_device_interface'] == 'HmIP-RF' ) { | ||
$modalId = mt_rand(); | ||
if (!isset($component['color'])) $component['color'] = '#00CC33'; | ||
|
||
|
||
return '<div class="hh" style=\'border-left-color: '.$component['color'].'; border-left-style: solid;\'>' | ||
. '<div data-toggle="collapse" data-target="#' . $modalId . '">' | ||
. '<div class="pull-left"><img src="icon/' . $component["icon"] . '" class="icon">' . $component['name'] . '</div>' | ||
. '<div class="pull-right">' | ||
.'Belegung Funkband<span class="info" data-id="' . $component['CARRIER_SENSE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="CARRIER_SENSE_LEVEL"></span> | ' | ||
. 'Duty Cycle<span class="info" data-id="' . $component['DUTY_CYCLE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="DUTY_CYCLE_LEVEL"></span>' | ||
|
||
. '</div>' | ||
. '<div class="clearfix"></div>' | ||
. '</div>' | ||
|
||
. '</div>'; | ||
} | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
function RPI_RF_MOD($component) { | ||
// if ($component['parent_device_interface'] == 'HmIP-RF' ) { | ||
$modalId = mt_rand(); | ||
if (!isset($component['color'])) $component['color'] = '#00CC33'; | ||
|
||
|
||
return '<div class="hh" style=\'border-left-color: '.$component['color'].'; border-left-style: solid;\'>' | ||
. '<div data-toggle="collapse" data-target="#' . $modalId . '">' | ||
. '<div class="pull-left"><img src="icon/' . $component["icon"] . '" class="icon">' . $component['name'] . '</div>' | ||
. '<div class="pull-right">' | ||
.'Belegung Funkband<span class="info" data-id="' . $component['CARRIER_SENSE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="CARRIER_SENSE_LEVEL"></span> | ' | ||
. 'Duty Cycle<span class="info" data-id="' . $component['DUTY_CYCLE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="DUTY_CYCLE_LEVEL"></span>' | ||
|
||
. '</div>' | ||
. '<div class="clearfix"></div>' | ||
. '</div>' | ||
|
||
. '</div>'; | ||
} | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afce0b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
funktioniert für das RPI-RF-MOD soweit. Nachkommastellen sind aber hier anders. Ein %-Zeichen ist auch keines da (aber nicht so wichtig)
das RPI-RF-MOD-PCB teste ich später
afce0b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Den Test kannst du dir sparen.
Zum Einen heißt das alte Funkmodul HM-MOD-RPI-PCB und zum Anderen wird für diese Funkmodul kein Gerät in der CCU3/RM angelegt. Man kann da also auch nichts auslesen.
Kann wieder raus.
afce0b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Baxxy13 Taucht "HM-MOD-RPI-PCB" unter "interface.php?statelist.cgi" nicht auf?
@63chris "js/script.js.php" angepasst für die korrekte Nachkommastellen und %-Zeichen.
afce0b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nein.
afce0b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfekt, Danke
afce0b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hallo,
ja, das mit der Bezeichnung des HM-MOD-RPI-PCB war ein Irrtum meinerseits - mea culpa.
Es muss aber ein Gerät angelegt werden - zumindestens sehe ich ein solches in ioBroker und der DC wird dort auch aktualisiert.
Ob das eine Option sein kann weiß ich nicht, möchte das hier auch nicht unnötig "aufblasen". Wie viele user sowohl dieses Modul als auch HH nutzen weiß ich nicht.
Ich selber kann den DC für mein Testsystem ja aus ioBroker heraus in HH anzeigen.
afce0b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HM-MOD-RPI-PCB hatte ich aufgenommen. Nach Möglichkeit könntest du es testen. Danke
afce0b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
habe ich - wird unter Sender nicht angezeigt. Auch in den anderen Kategorien nicht.
Was mir aufgefallen ist: in ioB wird der HM-MOD-RPI-PCB unter dem HM-Rega-Adapter gelistet.
Ein RPI-RF-MOD jedoch unter dem HM-RPC Adapter (HmIP, XML-RPC)
afce0b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kannst du mir deine export.json zukommen lassen. Danke
afce0b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
per Signal geschickt
afce0b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Falls einer wissen möchte wieso ihr das HM-MOD-RPI-PCB nicht als Gerät bekommt...
HomeHub läuft mittels RemoteScript.
Also kann grundsätzlich nur auf Objekte zugegriffen werden die der ReGa (Logikengine der CCU) bekannt sind.
Aber der ioBroker...
Ja, der "trickst" hier ein bisschen.
Per RemoteScript führt er system.Exec() aus um die XMLRPC-Schnittstelle abzufragen.
Siehe: dutycycle.fn
Aus der Antwort, die beispielhaft so aussieht...
{ADDRESS OEQ0309711 CONNECTED 1 DEFAULT 1 DESCRIPTION {} DUTY_CYCLE 0 FIRMWARE_VERSION 2.8.6 TYPE CCU2}
...parst er dann u.a. die Seriennummer und den DutyCycle.