Skip to content

Commit cc16f53

Browse files
I’ve pushed a new update to MMM-SenseHat with the following changes:
Made the module multi-instance safe: the node helper now tracks instances by identifier, keeps one polling loop per instance, and routes data/LED commands back to the correct frontend. Improved error handling: Python spawn failures, non-zero exits, invalid JSON, and helper-reported errors are now forwarded as { error: ... } to the UI so the module can render a clear error state. Added support for pythonName as an alias for pythonPath, to align with MMM-PythonPrint and make configuration more familiar. Updated the README with details on multi-instance usage, Python path options (pythonPath / pythonName), and styling via .MMM-SenseHat .mmm-sensehat.
1 parent 5236363 commit cc16f53

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ Thanks to: @Crazylegstoo, @dathbe, @m-idler, @plebcity, @khassel, @KristjanESPER
6969
- Add configuration option for `User-Agent`, used by calendar & news module (#3255)
7070
- [linter] Add prettier plugin for nunjuck templates (#3887)
7171
- [core] Add clear log for occupied port at startup (#3890)
72-
- [sensehat] Sense HAT integration module (`sensehat`) to display temperature, humidity, pressure, optional orientation, and to control the LED matrix on Raspberry Pi.
7372

7473
### Changed
7574

config/config.js.sample

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -104,32 +104,6 @@ let config = {
104104
broadcastNewsUpdates: true
105105
}
106106
},
107-
// Example MMM-SenseHat module configuration.
108-
// Uncomment this block on a Raspberry Pi with a Sense HAT installed:
109-
// {
110-
// module: "MMM-SenseHat",
111-
// position: "top_right",
112-
// config: {
113-
// updateInterval: 5000,
114-
// showTemperature: true,
115-
// showHumidity: true,
116-
// showPressure: true,
117-
// showOrientation: false,
118-
// temperatureUnit: "C",
119-
// roundValues: 1,
120-
// ledMatrixEnabled: true,
121-
// ledMode: "status", // "off" | "status" | "text"
122-
// ledText: "Hello from Sense HAT",
123-
// ledColor: [0, 255, 0],
124-
// criticalThresholds: {
125-
// temperatureHigh: 30,
126-
// temperatureLow: 10,
127-
// humidityHigh: 80,
128-
// humidityLow: 20
129-
// },
130-
// debug: false
131-
// }
132-
// },
133107
]
134108
};
135109

0 commit comments

Comments
 (0)