Skip to content

Commit

Permalink
fix: PowerMeterRealtimeData & PowerFlowRealtimeDataData (#30)
Browse files Browse the repository at this point in the history
Rename "GetPowerMeterRealtimeData" ->  "GetMeterRealtimeData"
Rename "GetPowerFlowRealtimeDataData" -> "GetPowerFlowRealtimeDataData"

According to Fronius Solar API
  • Loading branch information
tnn85 authored May 24, 2023
1 parent a8a3818 commit 17043dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fronius/fronius.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<option value="inverter">Inverter Data</option>
<option value="powerflow">Powerflow Data</option>
<option value="storage">Storage Data</option>
<option value="powermeter">Powermeter Data</option>
<option value="meter">Meter Data</option>
</select>
</div>
<input type="hidden" id="node-input-name" placeholder="Name">
Expand Down
4 changes: 2 additions & 2 deletions fronius/fronius.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module.exports = function(RED) {
setNodeStatus('red', e);
});
} else if (node.querytype === 'powerflow') {
fronius.GetPowerFlowRealtimeDataData(node.options).then(function(json) { // eslint-disable-line
fronius.GetPowerFlowRealtimeData(node.options).then(function(json) { // eslint-disable-line
if (!node.isValidHead(json)) {
node.setNodeStatus('orange', json.Head.Status.UserMessage);
return;
Expand All @@ -102,7 +102,7 @@ module.exports = function(RED) {
node.setNodeStatus('red', e);
});
} else if (node.querytype === 'powermeter') {
fronius.GetPowerMeterRealtimeData(node.options).then(function(json) { // eslint-disable-line
fronius.GetMeterRealtimeData(node.options).then(function(json) { // eslint-disable-line
if (!node.isValidHead(json)) {
node.setNodeStatus('orange', json.Head.Status.UserMessage);
return;
Expand Down

0 comments on commit 17043dc

Please sign in to comment.