Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion packages/helpermodules/update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

class UpdateConfig:

DATASTORE_VERSION = 111
DATASTORE_VERSION = 112

valid_topic = [
"^openWB/bat/config/bat_control_permitted$",
Expand Down Expand Up @@ -2839,3 +2839,23 @@ def upgrade(topic: str, payload) -> Optional[dict]:
return {topic: configuration_payload}
self._loop_all_received_topics(upgrade)
self._append_datastore_version(111)

def upgrade_datastore_112(self) -> None:
def upgrade(topic: str, payload) -> Optional[dict]:
if re.search("openWB/vehicle/[0-9]+/soc_module/config", topic) is not None:
payload = decode_payload(payload)
if payload.get("type") == "bmwbc":
pub_system_message(
{},
"Die Schnittstelle des bisherigen BMW-Moduls wurde eingestellt und in openWB entfernt. Bitte "
"beachte, dass Du ohne die Konfiguration eines anderen Fahrzeug-Moduls kein SoC-basiertes "
"Laden nutzen kannst.<br />Unsere Fahrzeug-Module werden von der Community entwickelt. Wenn du "
"also ein BMW-Fahrer bist und gerne ein neues BMW-Modul in openWB programmieren möchtest, "
"findest Du im <a href='https://forum.openwb.de/viewtopic.php?t=4870&start=960'>Forum</a> "
"weitere Informationen.",
MessageType.INFO,
Comment thread
benderl marked this conversation as resolved.
Resolved
)
return {topic: NO_MODULE}
run_command(['pip', 'uninstall', 'bimmer_connected', '-y'], process_exception=True)
self._loop_all_received_topics(upgrade)
self._append_datastore_version(112)
Comment thread
benderl marked this conversation as resolved.
Resolved
Empty file.
Loading