

The interesting part are the dynamic meters. stateBell) refer to the current color of the indicators in the widget, as decribed in Setup. License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0 Information=Displays whether IoT devices are currently connected. This constitutes the first part of the Zuijderwijk, based on illustro (poiru) A variable can then be accessed throughout the file like follows: #variablename# The first two contain general information about the skin and the third contains all variables. Without going into full detail as to how Rainmeter configuration files (skins) work ( their documentation is excellent!), such a file contains a Rainmeter / Metadata / Variables section. I also copied the folder, which contains the background image. Since I wanted my skin to look like the default skins, I started by editing the System.ini file. Which does (1) kill the current Rainmeter process, (2) creates the plugin without errors and (3) copies the plugin (.DLL) to the right Rainmeter folder. Xcopy "$(TargetDir)$(TargetFileName)" "%appdata%\Rainmeter\Plugins" /Y "$(SolutionDir)API\DllExporter.exe" "$(ConfigurationName)" "$(PlatformName)" "$(TargetDir)\" "$(TargetFileName)" To solve this I changed the Post-build event commandline setting (Properties > Build Events) to the following: taskkill /f /fi "imagename eq Rainmeter.exe" When building the plugin, I encoutered the following error: The command ""C:\Users\josjr\ownCloud\Lenovo\Documenten\Visual Studio 2019\Projects\MqttClientPlugin\API\DllExporter.exe" Debug 圆4 C:\Users\josjr\ownCloud\Lenovo\Documenten\Visual Studio 2019\Projects\MqttClientPlugin\bin\Debug\圆4\ MqttClient.dll" exited with code -532462766. I cloned the repository and then built the solution using Visual Studio 2019 (as explained in the ReadMe). For this purpose, I used the MqttClientPlugin. To show these stats, Rainmeter needs to establish a connnection to the broker.

So, if a device is connected we should receive 1, and 0 otherwise. If a device disconnects, it sends 0 using a so-called last will message. If a device is connected, it sends 1 to a certain topic. My devices are all connected to an MQTT broker. In this blogpost I'll briefly explain how I built this skin. However, there was an MQTT plugin for Rainmeter! With that it'd be easy to build something like this. After doing some Googling, I found that nothing like this was available on the internet.
