Skip to content

Commit 5c39b06

Browse files
Merge pull request #319 from Jopyth/develop
Release 2.5.3
2 parents 510919b + 13d1cb4 commit 5c39b06

16 files changed

+7697
-2407
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ We ask you to keep contributing, and feel free to open as many issues and PR as
99

1010
## Developer commands
1111

12+
- `npm run download_modules` - Download module list manually.
1213
- `npm run lint` - Run linting checks.
1314
- `npm run lint:fix` - Fix linting issues.
1415
- `npm run test` - Run linting and formatter checks + Run spelling check.

.github/ISSUE_TEMPLATE/Bug_report.yml renamed to .github/ISSUE_TEMPLATE/Bug_report.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ body:
1010
1111
Also, you accept that, if this issue it's invalid in any way, will be discarded without receiving any response about it.
1212
If you're not sure if it's a bug, please [ask here](https://github.com/Jopyth/MMM-Remote-Control/discussions).
13-
13+
1414
Thanks for taking the time to help Remote Control get better every day!
1515
- type: input
1616
attributes:
@@ -26,7 +26,7 @@ body:
2626
description: |
2727
example:
2828
- NodeJS: 14.17.5
29-
placeholder: '14.17.5'
29+
placeholder: "14.17.5"
3030
validations:
3131
required: true
3232
- type: input
@@ -35,7 +35,7 @@ body:
3535
description: |
3636
example:
3737
- MM: 2.16.0
38-
placeholder: '2.16.0'
38+
placeholder: "2.16.0"
3939
validations:
4040
required: true
4141
- type: input
@@ -44,15 +44,15 @@ body:
4444
description: |
4545
example:
4646
- Remote Control: 2.3.6
47-
placeholder: '2.3.6'
47+
placeholder: "2.3.6"
4848
validations:
4949
required: true
5050
- type: checkboxes
5151
attributes:
5252
label: Did you try using just Remote Control alone with MM?
5353
options:
54-
- label: I have and the error still happening
55-
required: true
54+
- label: I have and the error still happening
55+
required: true
5656
- type: textarea
5757
attributes:
5858
label: Description
@@ -115,4 +115,4 @@ body:
115115
label: Additional info
116116
description: Everything else that you think could be useful for us. ;D
117117
validations:
118-
required: false
118+
required: false

.github/ISSUE_TEMPLATE/Feature_request.yml renamed to .github/ISSUE_TEMPLATE/Feature_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ body:
2929
label: Additional info
3030
description: Everything else that you think could be useful for us. ;D
3131
validations:
32-
required: false
32+
required: false

.github/ISSUE_TEMPLATE/config.yml renamed to .github/ISSUE_TEMPLATE/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ blank_issues_enabled: false
22
contact_links:
33
- name: Discussions
44
url: https://github.com/Jopyth/MMM-Remote-Control/discussions
5-
about: Don't know how to do it? Ask the community!
5+
about: Don't know how to do it? Ask the community!

.github/workflows/automated-tests.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ permissions:
99
contents: read
1010

1111
jobs:
12-
run-lint:
12+
code-quality:
1313
runs-on: ubuntu-latest
14-
timeout-minutes: 30
14+
timeout-minutes: 10
1515
steps:
16-
- run: echo "Starting automated tests for ${{ github.repository }} on ${{ github.ref }}"
16+
- run: "echo '🚀 Starting code quality checks for ${{ github.repository }} (ref: ${{ github.ref }})'"
1717
- name: Check out repository code
1818
uses: actions/checkout@v4
1919
- name: Use Node.js
@@ -27,4 +27,4 @@ jobs:
2727
run: npm run test:spelling
2828
- name: Check linting
2929
run: npm run lint
30-
- run: echo "Test job status is ${{ job.status }}."
30+
- run: "echo '✨ Code quality checks completed with status: ${{ job.status }}.'"
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: 'Close stale issues and PRs'
1+
name: "Close stale issues and PRs"
22
on:
3-
schedule: [{cron: "0 12 * * *"},{cron: "0 0 * * *"}]
3+
schedule: [{ cron: "0 12 * * *" }, { cron: "0 0 * * *" }]
44

55
jobs:
66
stale:
@@ -9,7 +9,7 @@ jobs:
99
issues: write
1010
pull-requests: write
1111
steps:
12-
- uses: actions/stale@v4
12+
- uses: actions/stale@v9
1313
with:
1414
stale-issue-message: |
1515
This issue has been automatically marked as stale because it has not had
@@ -23,8 +23,8 @@ jobs:
2323
days-before-pr-stale: 30
2424
days-before-issue-close: 7
2525
days-before-pr-close: 7
26-
stale-issue-label: 'stale'
27-
exempt-issue-labels: 'working,help wanted,PR Welcome!'
28-
stale-pr-label: 'stale'
29-
exempt-pr-labels: 'working,help wanted'
26+
stale-issue-label: "stale"
27+
exempt-issue-labels: "working,help wanted,PR Welcome!"
28+
stale-pr-label: "stale"
29+
exempt-pr-labels: "working,help wanted"
3030
exempt-all-milestones: true

API/api.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
const path = require("path");
99
const url = require("url");
10-
const fs = require("fs");
11-
const os = require("os");
12-
const uuid = require("uuid/v4");
10+
const { v4: uuid } = require('uuid');
1311
const bodyParser = require("body-parser");
1412
const express = require("express");
1513

@@ -20,7 +18,7 @@ module.exports = {
2018
*/
2119
getApiKey() {
2220
let thisConfig = this.configOnHd.modules.find(x => x.module === "MMM-Remote-Control");
23-
if (typeof "thisConfig" !== "undefined" &&
21+
if (typeof thisConfig !== "undefined" &&
2422
"config" in thisConfig){
2523
if ("apiKey" in thisConfig.config &&
2624
thisConfig.config.apiKey !== '') {

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](https://semver.org/).
77

8+
## [2.5.3] - 2025-01-20
9+
10+
### Fixed
11+
12+
- Fix `download_modules.js` script to automatically download the modules list from the MagicMirror² wiki. This will fix #301.
13+
14+
### Changed
15+
16+
- Replace `node-fetch` by internal fetch API
17+
- Replace old python 2 script `download_modules.py` by JavaScript script, you can run it with `npm run download_modules` to download the modules list from the MagicMirror² wiki.
18+
- Update `uuid`. This will fix #318.
19+
820
## [2.5.2] - 2025-01-18
921

1022
### Fixed

installer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fi
146146

147147
# Get an UUID to use as an API key
148148
NODE_BIN=$(which node)
149-
APIKEY=$($NODE_BIN -e 'console.log(require("uuid/v4")().replace(/-/g, ""));');
149+
APIKEY=$($NODE_BIN -e 'console.log(require("uuid").v4().replace(/-/g, ""));');
150150

151151
echo ""
152152
if check_no "Do you want to view instructions on how to configure the module?"; then

0 commit comments

Comments
 (0)