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
SUMMARY = "Provides dbus control of inverters on Venus" | |
LICENSE = "MIT" | |
LIC_FILES_CHKSUM = "file://LICENSE;md5=ce8464bf9333255588d9f64d05730589" | |
inherit ve_package | |
inherit daemontools | |
inherit python-compile | |
SRC_URI = "gitsm://github.com/osaether/dbus-inverter-ctrl.git;protocol=https;tag=v${PV}" |
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
from time import sleep | |
import ssl | |
import json | |
import os | |
from paho.mqtt.client import Client | |
username = "your VRM email" | |
password = "your VRM pasword" | |
portal_id = "your VRM portal ID" |
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
from time import sleep | |
import ssl | |
import json | |
import os | |
from paho.mqtt.client import Client | |
username = "your VRM email" | |
password = "your VRM pasword" | |
portal_id = "your VRM portal ID" |
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
#!/usr/bin/env python | |
from pymodbus.constants import Defaults | |
from pymodbus.constants import Endian | |
from pymodbus.client.sync import ModbusTcpClient as ModbusClient | |
from pymodbus.payload import BinaryPayloadDecoder | |
Defaults.Timeout = 25 | |
Defaults.Retries = 5 | |
client = ModbusClient('ipaddress.of.venus', port='502') | |
result = client.read_input_registers(806, 2) |
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
#!/usr/bin/env python | |
from pymodbus.constants import Defaults | |
from pymodbus.client.sync import ModbusTcpClient as ModbusClient | |
Defaults.Timeout = 25 | |
Defaults.Retries = 5 | |
client = ModbusClient('ipaddress.of.venus', port='502') | |
client.write_register(807, 0) |
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
#!/usr/bin/env python | |
from pymodbus.constants import Defaults | |
from pymodbus.client.sync import ModbusTcpClient as ModbusClient | |
Defaults.Timeout = 25 | |
Defaults.Retries = 5 | |
client = ModbusClient('ipaddress.of.venus', port='502') | |
client.write_register(807, 1) |
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
#!/usr/bin/env python | |
from pymodbus.constants import Defaults | |
from pymodbus.client.sync import ModbusTcpClient as ModbusClient | |
Defaults.Timeout = 25 | |
Defaults.Retries = 5 | |
client = ModbusClient('ipaddress.of.venus', port='502') | |
client.write_register(806, 0) |
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
#!/usr/bin/env python | |
from pymodbus.constants import Defaults | |
from pymodbus.client.sync import ModbusTcpClient as ModbusClient | |
Defaults.Timeout = 25 | |
Defaults.Retries = 5 | |
client = ModbusClient('ipaddress.of.venus', port='502') | |
client.write_register(806, 1) |