Skip to content

Commit 5372826

Browse files
committed
Upgrade for latest Artemis
1 parent 2b4c3c5 commit 5372826

8 files changed

Lines changed: 15 additions & 17 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Setup .NET
1111
uses: actions/setup-dotnet@v1
1212
with:
13-
dotnet-version: '8.0.x'
13+
dotnet-version: '10.0.x'
1414

1515
- name: Clone Plugins
1616
uses: actions/checkout@v2

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
# Artemis.Plugins.Mqtt
1+
### Installation
2+
This plugin is available on the Artemis workshop.
23

3-
[Download](https://nightly.link/Artemis-RGB/Artemis.Plugins.Mqtt/workflows/build/master/Artemis.Plugins.Mqtt.zip)
4+
**MQTT data model expansion**
5+
Provides a customisable data model based on data received by subscribing to an MQTT broker.
6+
https://workshop.artemis-rgb.com/entries/430/mqtt-data-model-expansion

src/Artemis.Plugins.Mqtt.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ EndProject
55
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BC333B86-D4D6-4D67-B713-293CAAAD0A1F}"
66
ProjectSection(SolutionItems) = preProject
77
..\.github\workflows\build.yml = ..\.github\workflows\build.yml
8+
..\README.md = ..\README.md
89
EndProjectSection
910
EndProject
1011
Global

src/Artemis.Plugins.Mqtt/Artemis.Plugins.Mqtt.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<Platforms>x64</Platforms>
55
<EnableDynamicLoading>true</EnableDynamicLoading>
66
<Nullable>enable</Nullable>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2024.315.3" />
10+
<PackageReference Include="ArtemisRGB.UI.Shared" IncludeAssets="compile;build;buildTransitive" Version="1.2025.1223.3" />
1111
<PackageReference Include="MQTTnet" Version="4.3.3.952" />
1212
<PackageReference Include="MQTTnet.Extensions.ManagedClient" Version="4.3.3.952" />
1313
</ItemGroup>

src/Artemis.Plugins.Mqtt/DataModels/MqttNodeDataModel.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
using System;
2-
using System.Collections.Concurrent;
3-
using System.Collections.Generic;
4-
using System.Diagnostics;
5-
using System.Linq;
61
using Artemis.Core.Modules;
7-
using Swan;
82

93
namespace Artemis.Plugins.Mqtt.DataModels;
104

src/Artemis.Plugins.Mqtt/ViewModels/StructureNodeViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public StructureNodeViewModel(IWindowService windowService, StructureNodeViewMod
2727
_label = model.Label;
2828
_server = model.Server;
2929
_topic = model.Topic;
30-
_type = model.Type;
30+
_type = model.Type ?? throw new InvalidOperationException("Type cannot be null in model.");
3131

3232
Children = model.IsGroup
3333
? new ObservableCollection<StructureNodeViewModel>(model.Children!.Select(c => new StructureNodeViewModel(windowService, this, c)))
@@ -91,7 +91,7 @@ public async Task EditNode()
9191
Label = r.Label;
9292
Server = r.Server;
9393
Topic = r.Topic;
94-
Type = r.Type;
94+
Type = r.Type ?? throw new InvalidOperationException();
9595
}
9696

9797
/// <summary>

src/Artemis.Plugins.Mqtt/Views/MqttPluginConfigurationView.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Artemis.Plugins.Mqtt.ViewModels;
2-
using Avalonia.ReactiveUI;
2+
using ReactiveUI.Avalonia;
33

44
namespace Artemis.Plugins.Mqtt.Views;
55

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"Guid": "26869065-4728-469e-b7d5-38e90d6dca40",
3-
"Api": "1.0",
43
"Name": "MQTT data model expansion",
54
"Author": "Wibble199 & diogotr7",
65
"Icon": "AccessPoint",
76
"Description": "Provides a customisable data model based on data received by subscribing to an MQTT broker.",
8-
"Version": "1.1.0.0",
9-
"Main": "Artemis.Plugins.Mqtt.dll"
7+
"Version": "2.0.0.0",
8+
"Main": "Artemis.Plugins.Mqtt.dll",
9+
"MinimumVersion": "1.2025.1223.3"
1010
}

0 commit comments

Comments
 (0)