Skip to content

Commit bac2473

Browse files
fix(gen): more filters
1 parent fda97f2 commit bac2473

File tree

139 files changed

+275
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+275
-216
lines changed

tutorials/configure-netbox-managed-postgresql-database/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dates:
1010
posted: 2019-11-14
1111
validation_frequency: 12
1212
usecase:
13-
-
13+
- setup-and-test
1414
ecosystem:
1515
- third-party
1616
---

tutorials/configure-nextcloud-ubuntu/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dates:
99
posted: 2018-10-26
1010
validation_frequency: 12
1111
usecase:
12-
-
12+
- application-hosting
1313
ecosystem:
1414
- third-party
1515
---

tutorials/configure-nginx-lets-encrypt/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ dates:
99
posted: 2019-02-28
1010
validation_frequency: 12
1111
usecase:
12-
-
12+
- best-practices
1313
ecosystem:
14-
- third-party
14+
- scaleway-only
1515
---
1616
import image from './assets/scaleway-example_site.webp'
1717
import image2 from './assets/scaleway-example_https.webp'

tutorials/configure-nodemcu-iot-hub/index.mdx

Lines changed: 50 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ products:
66
dates:
77
validation: 2025-05-27
88
validation_frequency: 12
9-
9+
usecase:
10+
- iot
11+
ecosystem:
12+
- third-party
1013
tags: iot iot-hub NodeMCU Arduino-IDE
1114
hero: assets/scaleway_nodemcu.webp
1215
---
@@ -60,9 +63,9 @@ Scaleway's IoT Hub lets your connected devices share messages. In this tutorial,
6063
</Message>
6164

6265
1. Start the Arduino IDE application on your local computer.
63-
2. Go to **Arduino** menu and click **Preferences**:
66+
2. Go to **Arduino** menu and click **Preferences**:
6467
<Lightbox image={image} alt="" />
65-
3. Add the following link in the Additional Boards Manager URLs: `http://arduino.esp8266.com/stable/package_esp8266com_index.json` and click **OK** to validate:
68+
3. Add the following link in the Additional Boards Manager URLs: `http://arduino.esp8266.com/stable/package_esp8266com_index.json` and click **OK** to validate:
6669
<Lightbox image={image2} alt="" />
6770
4. Go to **Tools** > **Board** > **Board Manager**
6871
<Lightbox image={image3} alt="" />
@@ -78,14 +81,14 @@ Your Arduino IDE is now ready to communicate with the NodeMCU device.
7881
1. Log into your [Scaleway console](https://conole.scaleway.com/) and click on **IoT Hub** in the side menu:
7982
<Lightbox image={image6} alt="" />
8083
2. Click **Create a Hub** and create your new IoT Hub.
81-
3. Enter a name for your hub (here we use iot-hub-esp8266) and choose a plan. For this tutorial, we use the Free plan. If your Project needs more resources you can choose one of the larger hubs. Click **Create a hub** to deploy it.
84+
3. Enter a name for your hub (here we use iot-hub-esp8266) and choose a plan. For this tutorial, we use the Free plan. If your Project needs more resources you can choose one of the larger hubs. Click **Create a hub** to deploy it.
8285
4. Once your hub is ready, click on it. You will see the following page:
8386
<Lightbox image={image7} alt="" />
84-
5. Navigate to the **Devices** tab and click **Add device** to add a new device to the hub:
87+
5. Navigate to the **Devices** tab and click **Add device** to add a new device to the hub:
8588
<Lightbox image={image8} alt="" />
8689

8790
<Message type="note">
88-
Make sure to enable insecure connections to be able to communicate with the IoT Hub, as we are not using certificates in this tutorial.
91+
Make sure to enable insecure connections to be able to communicate with the IoT Hub, as we are not using certificates in this tutorial.
8992
</Message>
9093
6. Click **Add device to your hub** to add the device.
9194
7. Once added, click on the device name to display some statistics about the device.
@@ -107,14 +110,14 @@ MQTT Explorer is a MQTT client that provides a structured overview of your MQTT
107110
</Message>
108111

109112
<Lightbox image={image10} alt="" />
110-
3. Click **Connect** to establish the connection to your IoT Hub. The following screen displays:
113+
3. Click **Connect** to establish the connection to your IoT Hub. The following screen displays:
111114
<Lightbox image={image11} alt="" />
112115

113116
Your MQTT Explorer is now successfully connected to your IoT Hub.
114117

115118
## Connecting your ESP8266 to Scaleway IoT Hub
116119

117-
We now connect the ESP8266 device to our IoT Hub. To do so, some additional libraries are required. Download them on your local computer and add them to the Arduino IDE by clicking on **Sketch** > **Include Library** > **Add .ZIP library**. We use the following libraries:
120+
We now connect the ESP8266 device to our IoT Hub. To do so, some additional libraries are required. Download them on your local computer and add them to the Arduino IDE by clicking on **Sketch** > **Include Library** > **Add .ZIP library**. We use the following libraries:
118121

119122
* [PubSubClient library](https://github.com/knolleary/pubsubclient/archive/master.zip): The PubSubClient library provides a client for doing simple publish/subscribe messaging with a server that supports MQTT (basically allows your ESP8266 to talk with your MQTT Broker).
120123

@@ -141,7 +144,7 @@ We now connect the ESP8266 device to our IoT Hub. To do so, some additional libr
141144
WiFiClient espClient;
142145
PubSubClient client(espClient);
143146
```
144-
4. We use the setup function to check the connection to our WiFi network and print a message in the Serial Monitor to confirm whether the device is connected or not:
147+
4. We use the setup function to check the connection to our WiFi network and print a message in the Serial Monitor to confirm whether the device is connected or not:
145148
```
146149
void setup() {
147150
Serial.begin(115200);
@@ -151,7 +154,7 @@ We now connect the ESP8266 device to our IoT Hub. To do so, some additional libr
151154
Serial.println("Connecting to WiFi..");
152155
}
153156
Serial.println("Connected to the WiFi network");
154-
157+
155158
client.setServer(mqttServer, mqttPort);
156159
client.setCallback(callback);
157160
```
@@ -160,7 +163,7 @@ We now connect the ESP8266 device to our IoT Hub. To do so, some additional libr
160163
while (!client.connected()) {
161164
Serial.println("Connecting to MQTT...");
162165
if (client.connect("ESP8266Client", mqttUser, mqttPassword )) {
163-
Serial.println("connected");
166+
Serial.println("connected");
164167
} else {
165168
166169
Serial.print("failed with state ");
@@ -169,29 +172,29 @@ We now connect the ESP8266 device to our IoT Hub. To do so, some additional libr
169172
}
170173
}
171174
```
172-
6. We test the publish/subscribe function by publishing a test message and subscribing to the topic:
175+
6. We test the publish/subscribe function by publishing a test message and subscribing to the topic:
173176
```
174177
Serial.println("Sending payload hello-world...");
175178
client.publish("esp/test", "hello-world"); //Topic name
176179
Serial.println("Payload sent!");
177180
client.subscribe("esp/test");
178-
}
181+
}
179182
```
180-
7. To print out the message we specify a call-back function and print the topic name and the received message on the Serial Monitor:
183+
7. To print out the message we specify a call-back function and print the topic name and the received message on the Serial Monitor:
181184
```
182185
void callback(char* topic, byte* payload, unsigned int length) {
183-
186+
184187
Serial.print("Message arrived in topic: ");
185188
Serial.println(topic);
186-
189+
187190
Serial.print("Message:");
188191
for (int i = 0; i < length; i++) {
189192
Serial.print((char)payload[i]);
190193
}
191-
194+
192195
Serial.println();
193196
Serial.println("-----------------------");
194-
197+
195198
}
196199
```
197200
8. Finish by adding the following lines in the loop:
@@ -201,21 +204,21 @@ We now connect the ESP8266 device to our IoT Hub. To do so, some additional libr
201204
}
202205
```
203206

204-
You should now have a sketch that begins with the following lines:
207+
You should now have a sketch that begins with the following lines:
205208

206209
```
207210
#include <ESP8266WiFi.h>
208211
#include <PubSubClient.h>
209212
```
210213

211-
and includes all the aforementioned code, ending with:
214+
and includes all the aforementioned code, ending with:
212215

213216
```
214217
void loop() {
215218
client.loop();
216219
}
217220
```
218-
9. Upload your code to your ESP8266 microcontroller. An output as in the following example displays in the Serial Monitor:
221+
9. Upload your code to your ESP8266 microcontroller. An output as in the following example displays in the Serial Monitor:
219222
<Lightbox image={image12} alt="" />
220223

221224
<Message type="note">
@@ -227,7 +230,7 @@ We now connect the ESP8266 device to our IoT Hub. To do so, some additional libr
227230

228231
## Controlling an LED and measuring temperature and humidity
229232

230-
Next, we will use our NodeMCU device to measure temperature and humidity and publish these values in a topic. Besides the NodeMCU device, you need the following hardware for this step:
233+
Next, we will use our NodeMCU device to measure temperature and humidity and publish these values in a topic. Besides the NodeMCU device, you need the following hardware for this step:
231234

232235
* A [Breadboard](https://en.wikipedia.org/wiki/Breadboard)
233236
* An [LED](https://en.wikipedia.org/wiki/Light-emitting_diode)
@@ -238,10 +241,10 @@ Next, we will use our NodeMCU device to measure temperature and humidity and pub
238241
1. Perform the following wiring on the breadboard:
239242
<Lightbox image={image14} alt="" />
240243

241-
This is the pinout table of the NodeMCU device:
244+
This is the pinout table of the NodeMCU device:
242245

243246
| Pin Names on NodeMCU Development Kit| ESP8266 Internal GPIO Pin number|
244-
| ------------- |:-------------:|
247+
| ------------- |:-------------:|
245248
|D0|GPIO16|
246249
|D1|GPIO5|
247250
|D2|GPIO4|
@@ -308,14 +311,14 @@ Next, we will use our NodeMCU device to measure temperature and humidity and pub
308311
}
309312

310313
// This function is executed when some device publishes a message to a topic that your ESP8266 is subscribed to
311-
// Change the function below to add logic to your program, so when a device publishes a message to a topic that
314+
// Change the function below to add logic to your program, so when a device publishes a message to a topic that
312315
// your ESP8266 is subscribed you can actually do something
313316
void callback(String topic, byte* message, unsigned int length) {
314317
Serial.print("Message arrived on topic: ");
315318
Serial.print(topic);
316319
Serial.print(". Message: ");
317320
String messageTemp;
318-
321+
319322
for (int i = 0; i < length; i++) {
320323
Serial.print((char)message[i]);
321324
messageTemp += (char)message[i];
@@ -340,14 +343,14 @@ Next, we will use our NodeMCU device to measure temperature and humidity and pub
340343
}
341344

342345
// This functions reconnects your ESP8266 to your MQTT broker
343-
// Change the function below if you want to subscribe to more topics with your ESP8266
346+
// Change the function below if you want to subscribe to more topics with your ESP8266
344347
void reconnect() {
345348
// Loop until we're reconnected
346349
while (!client.connected()) {
347350
Serial.print("Attempting MQTT connection...");
348351
// Attempt to connect
349352
if (client.connect("ESP8266Client", mqttUser, mqttPassword )) {
350-
Serial.println("connected");
353+
Serial.println("connected");
351354
// Subscribe or resubscribe to a topic
352355
// You can subscribe to more topics (to control more LEDs in this example)
353356
client.subscribe("room/lamp");
@@ -366,9 +369,9 @@ Next, we will use our NodeMCU device to measure temperature and humidity and pub
366369
// The callback function is what receives messages and actually controls the LEDs
367370
void setup() {
368371
pinMode(lamp, OUTPUT);
369-
372+
370373
dht.begin();
371-
374+
372375
Serial.begin(115200);
373376
setup_wifi();
374377
client.setServer(mqttServer, mqttPort);
@@ -406,19 +409,19 @@ Next, we will use our NodeMCU device to measure temperature and humidity and pub
406409
float hic = dht.computeHeatIndex(t, h, false);
407410
static char temperatureTemp[7];
408411
dtostrf(hic, 6, 2, temperatureTemp);
409-
410-
// Uncomment to compute temperature values in Fahrenheit
412+
413+
// Uncomment to compute temperature values in Fahrenheit
411414
// float hif = dht.computeHeatIndex(f, h);
412415
// static char temperatureTemp[7];
413416
// dtostrf(hic, 6, 2, temperatureTemp);
414-
417+
415418
static char humidityTemp[7];
416419
dtostrf(h, 6, 2, humidityTemp);
417420

418421
// Publishes Temperature and Humidity values
419422
client.publish("room/temperature", temperatureTemp);
420423
client.publish("room/humidity", humidityTemp);
421-
424+
422425
Serial.print("Humidity: ");
423426
Serial.print(h);
424427
Serial.print(" %\t Temperature: ");
@@ -431,35 +434,35 @@ Next, we will use our NodeMCU device to measure temperature and humidity and pub
431434
// Serial.print(hif);
432435
// Serial.println(" *F");
433436
}
434-
}
437+
}
435438
```
436439
3. Transfer the Arduino Sketch to the NodeMCU device and open the Serial Monitor.
437440
4. The following output displays, confirming the successful capture and transmission of temperature and humidity data:
438441
<Lightbox image={image15} alt="" />
439442

440443
## Flow Programming with Node-RED
441444

442-
In the following steps, we deploy a [Node-RED](https://nodered.org/) application using the IoT-Hub Kickstart feature and use it for flow programming.
445+
In the following steps, we deploy a [Node-RED](https://nodered.org/) application using the IoT-Hub Kickstart feature and use it for flow programming.
443446

444-
1. Go back to your IoT Hub in the Scaleway console and click on the [Kickstart](https://console.scaleway.com/iot-hub/kickstarts/create) tab. Click **Create a Kickstart**:
447+
1. Go back to your IoT Hub in the Scaleway console and click on the [Kickstart](https://console.scaleway.com/iot-hub/kickstarts/create) tab. Click **Create a Kickstart**:
445448
<Lightbox image={image16} alt="" />
446449
2. Select the **Flow Programming** Kickstart and choose your Hub and Device from the drop-down lists. Then select a region for your Kickstart to deploy. Click **Create** to deploy the Node-RED application on an [Instance](https://www.scaleway.com/en/virtual-instances/)
447450
<Lightbox image={image17} alt="" />
448-
3. Your IoT Kickstart application is deployed. The deployment may take some seconds, once it is ready, a green dot appears next to it. Click **Dashboard** to access the Node-RED dashboard:
451+
3. Your IoT Kickstart application is deployed. The deployment may take some seconds, once it is ready, a green dot appears next to it. Click **Dashboard** to access the Node-RED dashboard:
449452
<Lightbox image={image18} alt="" />
450-
4. Log into Node Red using the credentials you have set during the deployment:
453+
4. Log into Node Red using the credentials you have set during the deployment:
451454
* Username: `admin`
452455
* Password: `your-password`
453-
5. Open the menu and click on **Manage Palette**:
456+
5. Open the menu and click on **Manage Palette**:
454457
<Lightbox image={image19} alt="" />
455-
6. Find the `node-red-dashboard` and install it:
458+
6. Find the `node-red-dashboard` and install it:
456459
<Lightbox image={image20} alt="" />
457-
7. Create a layout as follows:
460+
7. Create a layout as follows:
458461
<Lightbox image={image21} alt="" />
459-
8. Then add the following nodes to a new flow:
462+
8. Then add the following nodes to a new flow:
460463
<Lightbox image={image22} alt="" />
461464

462-
The following elements are used:
465+
The following elements are used:
463466

464467
* `switch` – this will control the ESP8266 output
465468
* `mqtt output node` – this will publish a message to the ESP8266 according to the switch state
@@ -472,14 +475,14 @@ In the following steps, we deploy a [Node-RED](https://nodered.org/) application
472475
<Lightbox image={image24} alt="" />
473476
11. Configure the **MQTT input nodes** for `temperature` and `humidity`:
474477
<Lightbox image={image25} alt="" />
475-
12. Edit the **chart node** as follows:
478+
12. Edit the **chart node** as follows:
476479
<Lightbox image={image26} alt="" />
477480
13. Edit the **gauge node** as follows:
478481
<Lightbox image={image27} alt="" />
479-
14. Link the nodes as follows:
482+
14. Link the nodes as follows:
480483
<Lightbox image={image28} alt="" />
481484
15. Click **Deploy** to deploy the configuration.
482-
16. Open a new browser tab and go to: `http://your-ip:1880/ui/`. A Dashboard showing temperature and humidity displays. You can use the toggle switch for `Light`. If toggled, a notification displays in the Serial Monitor of the NodeMCU device:
485+
16. Open a new browser tab and go to: `http://your-ip:1880/ui/`. A Dashboard showing temperature and humidity displays. You can use the toggle switch for `Light`. If toggled, a notification displays in the Serial Monitor of the NodeMCU device:
483486
<Lightbox image={image29} alt="" />
484487

485488
## Conclusion

tutorials/configure-plex-s3/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dates:
1111
posted: 2018-09-24
1212
validation_frequency: 12
1313
usecase:
14-
-
14+
- application-hosting
1515
ecosystem:
1616
- third-party
1717
---

tutorials/configure-realtime-alerting-slack/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dates:
1010
posted: 2020-11-17
1111
validation_frequency: 12
1212
usecase:
13-
-
13+
- monitoring
1414
ecosystem:
1515
- third-party
1616
---

tutorials/configure-slack-alerting/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dates:
99
posted: 2025-02-18
1010
validation_frequency: 12
1111
usecase:
12-
-
12+
- monitoring
1313
ecosystem:
1414
- third-party
1515
---

tutorials/configure-smtp-relay-tem/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dates:
1010
posted: 2023-08-08
1111
validation_frequency: 12
1212
usecase:
13-
-
13+
- setup-and-test
1414
ecosystem:
1515
- third-party
1616
---

tutorials/configure-tem-smtp-with-wordpress-plugin/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dates:
1010
posted: 2024-04-24
1111
validation_frequency: 12
1212
usecase:
13-
-
13+
- web-hosting
1414
ecosystem:
1515
- third-party
1616
---

tutorials/configure-virtual-machine-esxi/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dates:
99
posted: 2020-01-27
1010
validation_frequency: 12
1111
usecase:
12-
-
12+
- resource-management
1313
ecosystem:
1414
- third-party
1515
---

0 commit comments

Comments
 (0)