# Current best weather API (2023)?

**URL:** <https://discourse.nodered.org/t/current-best-weather-api-2023/82310>\
**Category:** General\
**Created:** [24 October 2023 16:54 UTC](https://discourse.nodered.org/t/current-best-weather-api-2023/82310 "2023-10-24T16:54:18Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [25 October 2023 16:37 UTC](https://discourse.nodered.org/t/current-best-weather-api-2023/82310/22 "2023-10-25T16:37:35Z")

</div>

> [@krambriw](#):
>
> Isn't it anyway always raining in UK??

No, sometimes it snows or is simply so foggy you can't see whether it is raining or snowing. 🙂

> [@Sean-McG](#):
>
> best bet is to put light sensor outside facing the sky where it will never be in the shade

Perhaps. Though the roof would mean running wires - not going to happen. I have one in my office, I need to get round to analysing the match between outside light and inside light.

Or maybe I could mount a laser pointing upwards to measure cloud thickness?  
 ![FeelMeThinkAboutItGIF](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/6/06de2f38a30c7b7a9dcdf12ea5c9295a12be270f.gif)

---

<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:** [25 October 2023 17:01 UTC](https://discourse.nodered.org/t/current-best-weather-api-2023/82310/23 "2023-10-25T17:01:41Z")

</div>

I have one on a windowsill which faces the sun, but there is a big difference in light levels at the back of the house, where its facing north.

I guess I will need to figure out some kind of offset to switch things on at the back of the house, while the front is still brighter.

Then of course I have some outside lights that shine through the front window on a night 🤨

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [25 October 2023 19:25 UTC](https://discourse.nodered.org/t/current-best-weather-api-2023/82310/24 "2023-10-25T19:25:31Z")

</div>

@TotallyInformation do you have solar panels fitted?  
I've previously used the solar generation feed to determine light levels.

(Worked ok until we got 6" snow on the panels 😂)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [25 October 2023 19:38 UTC](https://discourse.nodered.org/t/current-best-weather-api-2023/82310/25 "2023-10-25T19:38:44Z")

</div>

No, but a nice idea. Going to have to wait till the next house for that one I'm afraid. Unless the prices come down again and the number of reliable fitters goes up. But a really good idea to remember for the future.

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [26 October 2023 06:33 UTC](https://discourse.nodered.org/t/current-best-weather-api-2023/82310/26 "2023-10-26T06:33:11Z")

</div>

I have a small, cheap, wireless and nice working solution to measure the light intensity. The "thing" is an ESP32 with a dfr0026 sensor attached. See image below. In the ESP32 I run ESPHome and the current light level is reported via MQTT to Node-RED once per minute (smoothing, further calculation etc is all handled by Node-RED)

The dfr0026 sensor is a very cheap sensor and it works good

> **[DFRobot\_Ambient\_Light\_Sensor\_SKU\_DFR0026-DFRobot](https://wiki.dfrobot.com/DFRobot_Ambient_Light_Sensor_SKU_DFR0026)**
>
> wiki: This arduino light sensor help you to detect the light density and reflect the analog voltage signal back to Arduino or Raspberry Pi controller. You can set the threshold of voltage level to trig other unit on Arduino or Raspberry Pi project.

My use case is to switch the operation mode of my video cameras depending on light levels. In the graph I have 3 separate "areas", starting from bottom up; night mode, transition mode and day mode. My cameras are good day/night cameras but still not so good in bad light conditions. So I found out that I could "trim the visibility" by increasing the exposure level and change some other params when it gets darker. In this way I now have pretty good visibilty also during early & later evenings & mornings as well as during night (see result below, it is still very dark outside here right now)

Since earlier I do also have a light sensor up in my roof antenna, connected via wire (1-wire) to control my awnings based on light levels. This has also worked excellent since years, all controlled thanks to Node-RED.

I was now looking for a wireless solution, thats why I did this. If you put it in a weather proofed box you can of course install it outside on the roof, mine is currently and temporarily just placed in a window and it seems LED lamps does not "disturb" it

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/2/42d5164e8981348d177b5e7d973a892fa32ac8dd.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/9/b9d9133d3ebd3eed144e0e40f88d038a02f24a25.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/2/52401b429d8b0bf06e9c420699d6bf64c8eda756.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/5/c5a2dafcaafab614dc9680fb065843a99840ef1a.png)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 October 2023 10:45 UTC](https://discourse.nodered.org/t/current-best-weather-api-2023/82310/27 "2023-10-26T10:45:00Z")

</div>

Cool. I use BH1750 Digital Light Sensors rather than analogue sensors. Seem to work well. It is very well supported with libraries and setup in my favourite ESPHome is easy.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [26 October 2023 11:58 UTC](https://discourse.nodered.org/t/current-best-weather-api-2023/82310/28 "2023-10-26T11:58:13Z")

</div>

> [@TotallyInformation](#):
>
> BH1750 Digital Light Sensors

That's one of the easiest sensors to integrate, as you say. For nitpickers they can also be calibrated.

---

<div class="post-metadata">

**Author:** ![yoba](https://avatars.discourse-cdn.com/v4/letter/y/57b2e6/32.png) [@yoba](https://discourse.nodered.org/u/yoba)\
**Post date:** [31 October 2023 14:27 UTC](https://discourse.nodered.org/t/current-best-weather-api-2023/82310/29 "2023-10-31T14:27:20Z")

</div>

To me there is no better/simpler "API" than the Norwegian Meteorological Institute: [yr.no](https://www.yr.no/en)  
There you can just enter your city (e.g. London) and click at the bottom "Forecast as SVG" to get your URL: [yr.no/en/content/2-2643743/meteogram.svg](https://www.yr.no/en/content/2-2643743/meteogram.svg)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/d/dd512ca3efc3079005ce0af13c258caa635baea7.png)

Embed the link in your dashboard and here you go!

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [31 October 2023 16:16 UTC](https://discourse.nodered.org/t/current-best-weather-api-2023/82310/30 "2023-10-31T16:16:38Z")

</div>

There's always this if you want more weather fun:

> **[Windy as forecasted](https://www.windy.com/webcams/?53.355,-1.563,5)**
>
> Wind map and weather forecast

---

<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:** [31 October 2023 16:24 UTC](https://discourse.nodered.org/t/current-best-weather-api-2023/82310/31 "2023-10-31T16:24:10Z")

</div>

Oh that is impressive.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 December 2023 16:24 UTC](https://discourse.nodered.org/t/current-best-weather-api-2023/82310/32 "2023-12-30T16:24:28Z")

</div>

Closed on 30 December 2023 16:24 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/current-best-weather-api-2023/82310.md?page=1)
