# HTTP Endpoint Examples

**URL:** <https://discourse.nodered.org/t/http-endpoint-examples/51754>\
**Category:** Share Your Projects\
**Created:** [1 October 2021 13:49 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754 "2021-10-01T13:49:15Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![rozek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rozek/32/48594_2.png) [@rozek](https://discourse.nodered.org/u/rozek)\
**Post date:** [1 October 2021 13:49 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/1 "2021-10-01T13:49:15Z")

</div>

I'm currently preparing a set of Node-RED flows and use cases for my students in order to motivate and encourage them to invent and build web sites and REST services without having to know, learn and program much.

To speed up familiarizing oneself with Node-RED HTTP endpoints, I've prepared a set of examples and published it on [GitHub](https://github.com/rozek/node-red-http-endpoint-examples).

Feel free to use them in any way you want. Feedback is welcome.

With greetings from Germany,

Andreas Rozek

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [1 October 2021 13:54 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/2 "2021-10-01T13:54:00Z")

</div>

Nice ! Thank you very much for sharing.

---

<div class="post-metadata">

**Author:** ![rozek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rozek/32/48594_2.png) [@rozek](https://discourse.nodered.org/u/rozek)\
**Post date:** [1 October 2021 13:54 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/3 "2021-10-01T13:54:37Z")

</div>

You are welcome! Thanks for liking it!

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 October 2021 12:46 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/4 "2021-10-02T12:46:18Z")

</div>

Hi Andreas,  
Just thought I should touch-base with you. I tutor a group of students (12 to 16 year old) at an after school club (two afternoons a week) here in the UK.  
I've written an extensive set of tutorials about using Wemos D1 Minis (ESP8266-based microcontrollers) with Node-RED to interface to many real world situations mainly via MQTT.

Maybe we could exchange ideas in the future??

Kind regards, David.

---

<div class="post-metadata">

**Author:** ![rozek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rozek/32/48594_2.png) [@rozek](https://discourse.nodered.org/u/rozek)\
**Post date:** [2 October 2021 13:56 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/5 "2021-10-02T13:56:39Z")

</div>

Definitely, although my students are university students of computer science and I want them to build online services or services which need some kind of internet access - perhaps even encouraging them to find some ideas and found their own startups.

However, I'm also preparing a set of Node-RED examples with [obniz](https://obniz.com/) devices as these have Wifi access built-in, are quite robust (even in case of short circuits) and can be brought into the internet within seconds - these devices are based on ESP32.

Somewhere in the internet I also already have published some information on Wemos D1 for colleagues at my former work.

Are you thinking about web pages which display information originating at a Wemos or allowing to control such a device?

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 October 2021 14:13 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/6 "2021-10-02T14:13:25Z")

</div>

Hi Andreas,  
I thought your students would be much older than mine. I only have 45-mins to an hour on each session so I needed to have tutorial sessions that could be fitted in to this time frame. Our set-up is a couple of towers of RPi-Zero-W, 6 Pi(es) in each tower, that commuicate to the Club's router and out through a hole that the IT people punched in the web-filter for us.

I've made up 24 or more breadboards that each have a Wemos D1 Mini running ESP-Easy. The students are given a breadboard and a tutorial guide and build things incorporating LEDs, push buttons, ultrasonic distance measuring devices, temp/humidity/pressure sensors, accessing weather data, writing data to MySQL dB, some of my advanced students did some aircraft tracking and displaying the position of trains on the UK British Rail network.

When I get a spare moment I'll send you a could sample tutorials.

Thanks for taking the time to read this.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [2 October 2021 14:35 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/7 "2021-10-02T14:35:21Z")

</div>

Thanks for sharing these examples.

We do have [https://cookbook.nodered.org](https://cookbook.nodered.org) that was my attempt to gather these sorts of things in and to provide a solid guide to the core nodes.

Sadly it hasn't seen the sort of contributions I had hoped my initial seeding of recipes would have led to.

If you wanted to turn some of your examples into recipes in the cookbook, that would certainly be welcomed.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 October 2021 14:41 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/8 "2021-10-02T14:41:42Z")

</div>

Hi Nick,  
I'll take a look at your format and see how much work would be needed to do this.  
I must have 24 or more tutorials, many of which I've published on 'Share Your Projects'.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [2 October 2021 15:01 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/9 "2021-10-02T15:01:16Z")

</div>

The key thing is the recipes are meant to fairly focussed solutions to specific problems. Rather than large scale examples that combine many different concepts.

The goal is to be able to give each recipe a title that helps a user find the answer to their question of "how do I do X" with Node-RED.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 October 2021 15:04 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/10 "2021-10-02T15:04:45Z")

</div>

Thanks Nick - I understand the focus.  
That will probably discount my current offerings, but I'll keep that in mind when I produce future ones.

In the meantime, I'll keep publishing new ones to 'Share Your Projects'.

---

<div class="post-metadata">

**Author:** ![rozek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rozek/32/48594_2.png) [@rozek](https://discourse.nodered.org/u/rozek)\
**Post date:** [3 October 2021 03:18 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/11 "2021-10-03T03:18:05Z")

</div>

I've always dreamed of building a "multi-node computer" based on RPi-0(-W)s and doing some parallel processing on it - but never had the time (and a good demonstrator besides calculating fractals) to realize it.

Currently, I cannot expect my students to have much affinity to electronics and have to proceed cautiously when dealing with hardware. Thus, it may even be advantageous that your students are younger than mine.

Have you published your tutorials on the internet?

---

<div class="post-metadata">

**Author:** ![rozek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rozek/32/48594_2.png) [@rozek](https://discourse.nodered.org/u/rozek)\
**Post date:** [3 October 2021 03:23 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/12 "2021-10-03T03:23:52Z")

</div>

Currently, I am under high time pressure as the whole series of examples has to be finished by end of this week in order to be useful in this semester.

But, if you come back to me, let's say, by end of this month, we may discuss which of my examples should be converted into a "recipe" and how that should be done to fit seamlessly into your cookbook.

However, please keep in mind that many of the more advanced examples heavily rely on my "reusable flows" which you probably won't like. Thus, you will have to have an alternative ready by then - and the "cookbook" may be a good motivation for me to convert my existing work.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [3 October 2021 06:45 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/13 "2021-10-03T06:45:48Z")

</div>

Yes I have and here are a few links for you.

Link to the Mini Tower of RPi-Zeros.

> [@Raspberry Pi-Zero-W Mini-Tower](https://discourse.nodered.org/t/raspberry-pi-zero-w-mini-tower/20217):
>
> Just finished building a couple of mini-towers for my IoT Club. The idea is the towers can be kept in a cupboard at school and just brought out when I run the IoT Club. All I would need to do is plug the 6-port PSU into the mains and switch-on the Club's WiFi router. Should save a lot of time as previously I had to cobble together a number of Raspberry Pi(es),of various vintages, and then at the end of the session take the whole lot apart!!! [wifi\_1\_small] [wifi\_3\_small] [wifi\_2\_small] Tues…

A previous tower I built at home using old RPi-2Bs and 3Bs.

> [@Monitoring the status of a mini-tower of Raspberry Pi(es)](https://discourse.nodered.org/t/monitoring-the-status-of-a-mini-tower-of-raspberry-pi-es/29428):
>
> I've just built a mini-tower for some of my old RPi-3s and 2s and thought I would try out SVG to overlay some LEDs (as circles) on top of a photo to show LED status, and some text to indicate the CPU temperature and IP address. With Bart's @BartButenaers and Steve's @Steve-Mcl help I've managed to get a Node-RED flow and dashboard up-and-running. Thanks guys. A word of warning... Bart/Steve's SVG node is highly ADDICTIVE and so much fun. I've just discovered the 'Event' facility. As a test I'…

Ultrasonic distance measuring  
[http://resources-area.co.uk/node-red-flows/ultrasonic\_distance\_sensor.pdf](http://resources-area.co.uk/node-red-flows/ultrasonic_distance_sensor.pdf)

Pulse Width Modulation controlling a model racing car

> [@Slot car racing - - - just pure fun](https://discourse.nodered.org/t/slot-car-racing-just-pure-fun/8782):
>
> I make no excuse at all - this is just pure fun. My students will love it !!!! I've just bought a slot car racing set from a local charity shop and have connected it to a WeMos D1 Mini on a breadboard driven from Node-RED via MQTT. On the breadboard is a PCA9685 (16-channel, 12-bit PWM module). It took some time sorting out the best PWM frequency and range settings, but eventually settled on 1500Hz with a range also of 1500. The car goes from a slow "creep" to just below "max speed", as at …

Plane Spotting - no hardware at all, just nodes in a flow.

> [@Plane spotting with Node-RED](https://discourse.nodered.org/t/plane-spotting-with-node-red/15771):
>
> Just been working on a "fun" project for my IoT students. It makes use of the 'flightradar24' and 'worldmap' nodes to display aircraft movements. It also uses an iFrame with Start and Stop actions in a simple dashboard. Here's a link to the tutorial guide and 'json' flow. [Tutorial Guide](http://resources-area.co.uk/node-red-flows/plane_spotting.pdf)[Node-RED flow](http://resources-area.co.uk/node-red-flows/plane_spotting.json)

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [3 October 2021 10:12 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/14 "2021-10-03T10:12:06Z")

</div>

> [@rozek](#):
>
> Currently, I cannot expect my students to have much affinity to electronics and have to proceed cautiously when dealing with hardware.

The school where I tutor the IoT Club has an IT/Technology bias. They have 3D printers and a laser cutting machine as well as 3D modelling programs, so some of the students are quite knowledgeable about hardware. I'm very careful at letting them wire-up things and they appreciate I need to check it before they plug things in. As everything is driven off of USB 5V power it is a fairly safe environment. Also using Wemos D1 Mini (ESP8266-based microcontrollers) are very in-expensive - probably 2 Euros each, so if a student did accidently destroy one - it's not the end of the world. Having said that - I've been running the club for nearly 4-years and the only disaster we have had is a lead/leg got broken off of an LED.

---

<div class="post-metadata">

**Author:** ![rozek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rozek/32/48594_2.png) [@rozek](https://discourse.nodered.org/u/rozek)\
**Post date:** [8 October 2021 16:56 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/15 "2021-10-08T16:56:19Z")

</div>

Well,

given the number of (positive) feedbacks it may be about time to write some Cookbook examples.

Is there a "recipe" that explains how to write (and publish) "recipes"?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [8 October 2021 16:59 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/16 "2021-10-08T16:59:44Z")

</div>

Hi @rozek

Recipes can be contributed as pull-requests against this repository: [GitHub - node-red/cookbook.nodered.org: Node-RED Cookbook](https://github.com/node-red/cookbook.nodered.org)

There is a style guide here: [cookbook.nodered.org/styleguide.md at master · node-red/cookbook.nodered.org · GitHub](https://github.com/node-red/cookbook.nodered.org/blob/master/styleguide.md)

I strongly suggest, doing one to begin with so you and I can make sure we're on the same page in terms of style/content etc.

---

<div class="post-metadata">

**Author:** ![rozek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rozek/32/48594_2.png) [@rozek](https://discourse.nodered.org/u/rozek)\
**Post date:** [8 October 2021 18:37 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/17 "2021-10-08T18:37:50Z")

</div>

> I strongly suggest, doing one to begin with so you and I can make sure we're on the same page in terms of style/content etc.

Yep, that was my intention, indeed.

Thanks for the hints - let's see if I can write s.th. by next week.

With greetings from Germany,

Andreas Rozek

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [4 March 2022 00:21 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/18 "2022-03-04T00:21:14Z")

</div>

You must have a stress free life if this is a disaster.

> [@dynamicdave](#):
>
> disaster we have had is a lead/leg got broken off of an LED

🤣 🤣 🤣

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [4 March 2022 07:49 UTC](https://discourse.nodered.org/t/http-endpoint-examples/51754/19 "2022-03-04T07:49:51Z")

</div>

Ha - ha thanks. It was meant as a bit of irony.  
The point I was trying to make was the students have been so respectful of the components.
