# Working Ambient Weather API flow

**URL:** <https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973>\
**Category:** Share Your Projects\
**Created:** [21 October 2019 18:15 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973 "2019-10-21T18:15:24Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![github768484](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/github768484/32/726_2.png) [@github768484](https://discourse.nodered.org/u/github768484)\
**Post date:** [21 October 2019 18:15 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/1 "2019-10-21T18:15:24Z")

</div>

Hey folks,

I've found where some have had issues pulling data from their Ambient Weather stations. Here's the simple http get URL to pull your data.

Get your API key here [https://dashboard.ambientweather.net/account](https://dashboard.ambientweather.net/account)

```auto
https://api.ambientweather.net/v1/devices?applicationKey=???????????????&apiKey=???????????????

```

![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/ce6c5b07d94c2af415e6b41fc859a60d83a5c332.png)

```auto
[
    {
        "id": "de72930d.400e1",
        "type": "tab",
        "label": "ambientweather",
        "disabled": false,
        "info": ""
    },
    {
        "id": "c2e3aede.aa85e8",
        "type": "http request",
        "z": "de72930d.400e1",
        "name": "",
        "method": "GET",
        "ret": "txt",
        "url": "https://api.ambientweather.net/v1/devices?applicationKey=???????????????&apiKey=???????????????",
        "tls": "",
        "x": 280,
        "y": 300,
        "wires": [
            [
                "64227587.f0bbdc"
            ]
        ]
    },
    {
        "id": "de1d339d.bf4308",
        "type": "inject",
        "z": "de72930d.400e1",
        "name": "",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 240,
        "y": 240,
        "wires": [
            [
                "c2e3aede.aa85e8"
            ]
        ]
    },
    {
        "id": "9c3ddec7.f368f",
        "type": "debug",
        "z": "de72930d.400e1",
        "name": "Temperature F",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "x": 520,
        "y": 420,
        "wires": []
    },
    {
        "id": "64227587.f0bbdc",
        "type": "json",
        "z": "de72930d.400e1",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 310,
        "y": 360,
        "wires": [
            [
                "ce2f5475.9056b",
                "5c7f7273.8f711c"
            ]
        ]
    },
    {
        "id": "ce2f5475.9056b",
        "type": "change",
        "z": "de72930d.400e1",
        "name": "AWtempf",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload[0].lastData.tempf",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "tempf",
                "pt": "flow",
                "to": "payload.AWtempf",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 300,
        "y": 420,
        "wires": [
            [
                "9c3ddec7.f368f"
            ]
        ]
    },
    {
        "id": "5c7f7273.8f711c",
        "type": "debug",
        "z": "de72930d.400e1",
        "name": "All Data",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "x": 500,
        "y": 360,
        "wires": []
    }
]

```

---

<div class="post-metadata">

**Author:** ![vlturner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vlturner/32/15211_2.png) [@vlturner](https://discourse.nodered.org/u/vlturner)\
**Post date:** [2 January 2020 19:31 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/3 "2020-01-02T19:31:18Z")

</div>

Here is one with Zabbix and MQTT hooks based on openweather API.

It also has the python reading MCP9808 Sensor, and the Pi 4 CPU Temp.

```auto
[
    {
        "id": "6acc9db.7a04264",
        "type": "tab",
        "label": "Proelian",
        "disabled": false,
        "info": ""
    },
    {
        "id": "e64e333f.e4b22",
        "type": "file in",
        "z": "6acc9db.7a04264",
        "name": "thermal_zone0_temp",
        "filename": "/sys/class/thermal/thermal_zone0/temp",
        "format": "utf8",
        "chunk": false,
        "sendError": false,
        "encoding": "none",
        "x": 340,
        "y": 280,
        "wires": [
            [
                "9d7032b3.4df9f8"
            ]
        ]
    },
    {
        "id": "41b964aa.16c99c",
        "type": "inject",
        "z": "6acc9db.7a04264",
        "name": "",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "15",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 110,
        "y": 40,
        "wires": [
            [
                "bcbb7c72.8805d",
                "90657ec7.3489"
            ]
        ]
    },
    {
        "id": "bcbb7c72.8805d",
        "type": "function",
        "z": "6acc9db.7a04264",
        "name": "",
        "func": "msg.filename=\"/sys/class/thermal/thermal_zone0/temp\";\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 150,
        "y": 280,
        "wires": [
            [
                "e64e333f.e4b22"
            ]
        ]
    },
    {
        "id": "9d7032b3.4df9f8",
        "type": "calculator",
        "z": "6acc9db.7a04264",
        "name": "",
        "inputMsgField": "payload",
        "outputMsgField": "payload",
        "operation": "div",
        "constant": "1000",
        "x": 510,
        "y": 280,
        "wires": [
            [
                "ed6ce4cb.aadb6",
                "ff9f4473.0a6e2",
                "cda8a21f.30fd3"
            ]
        ],
        "info": "msg.payload = [\n \"system.cpu.temp\",\n msg.payload\n]"
    },
    {
        "id": "df9d40fa.99fd78",
        "type": "openweathermap in",
        "z": "6acc9db.7a04264",
        "name": "Openweathermap",
        "wtype": "current",
        "lon": "",
        "lat": "",
        "city": "San Andreas",
        "country": "California",
        "language": "en",
        "x": 100,
        "y": 780,
        "wires": [
            [
                "777b03c9.e1a804",
                "58bdc1c1.c8c78"
            ]
        ]
    },
    {
        "id": "4b774407.efeda4",
        "type": "zabbix-sender",
        "z": "6acc9db.7a04264",
        "zabbixServer": "127.0.0.1",
        "zabbixPort": 10051,
        "sendTimestamps": false,
        "withNs": false,
        "timeout": 5000,
        "defaultHostname": "Zabbix server",
        "x": 1470,
        "y": 370,
        "wires": []
    },
    {
        "id": "ed6ce4cb.aadb6",
        "type": "function",
        "z": "6acc9db.7a04264",
        "name": "Zabbix Array",
        "func": "var payload=msg.payload;\nmsg.payload = ['Zabbix server', 'system.cpu.temp', payload]\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 750,
        "y": 320,
        "wires": [
            [
                "4b774407.efeda4"
            ]
        ]
    },
    {
        "id": "777b03c9.e1a804",
        "type": "function",
        "z": "6acc9db.7a04264",
        "name": "Openweather Zabbix Function",
        "func": "var payload=msg.payload;\nmsg.payload = [\n ['Zabbix server', 'openweather.tempk', payload.tempk],\n ['Zabbix server', 'openweather.maxtemp', payload.maxtemp],\n ['Zabbix server', 'openweather.mintemp', payload.mintemp],\n ['Zabbix server', 'openweather.tempc', payload.tempc],\n ['Zabbix server', 'openweather.temp_maxc', payload.temp_maxc],\n ['Zabbix server', 'openweather.temp_minc', payload.temp_minc],\n ['Zabbix server', 'openweather.humidity', payload.humidity],\n ['Zabbix server', 'openweather.pressure', payload.pressure],\n ['Zabbix server', 'openweather.windspeed', payload.windspeed],\n ['Zabbix server', 'openweather.winddirection', payload.winddirection],\n ['Zabbix server', 'openweather.sunrise', payload.sunrise],\n ['Zabbix server', 'openweather.sunset', payload.sunset],\n ['Zabbix server', 'openweather.clouds', payload.clouds]\n] \nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 500,
        "y": 370,
        "wires": [
            [
                "4b774407.efeda4"
            ]
        ]
    },
    {
        "id": "58bdc1c1.c8c78",
        "type": "function",
        "z": "6acc9db.7a04264",
        "name": "Openweather Dashboard Function",
        "func": "var msg1 = { payload:msg.payload.temp_maxc };\nmsg1.topic = \"Max\";\nvar msg2 = { payload:msg.payload.tempc };\nmsg2.topic = \"Current\";\nvar msg3 = { payload:msg.payload.temp_minc };\nmsg3.topic = \"Min\";\nvar msg4 = { payload:msg.payload.description};\nvar msg5 = { payload:msg.payload.icon};\nvar msg6 = { payload:msg.payload.pressure};\nvar msg7 = { payload:msg.payload.humidity};\nvar msg8 = { payload:msg.payload.clouds};\nvar msg9 = { payload:msg.payload.windspeed};\nvar msg10 = { payload:msg.payload.winddirection};\nvar msg11 = { payload:msg.payload.sunrise};\nvar msg12 = { payload:msg.payload.sunset};\nvar msg13 = { payload:msg.location};\nreturn [msg1, msg2, msg3, msg4, msg5, msg6, msg7, msg8, msg9, msg10, msg11, msg12, msg13];",
        "outputs": 13,
        "noerr": 0,
        "x": 500,
        "y": 780,
        "wires": [
            [
                "e08f590.57f33a8",
                "57dff58e.8ec274"
            ],
            [
                "e08f590.57f33a8",
                "c75ee5d0.8550e"
            ],
            [
                "e08f590.57f33a8",
                "e6350e56.21106"
            ],
            [
                "302cf849.6a4e58"
            ],
            [
                "fb81c77f.51b148"
            ],
            [
                "fca87095.0adfc",
                "30720f6d.cc00b"
            ],
            [
                "41070f1f.5a77e8",
                "383c6806.493288"
            ],
            [
                "e8be6823.2e7978",
                "7721052c.889044"
            ],
            [
                "583d26ff.d270e8",
                "4dc13725.0a2d28"
            ],
            [
                "8a47c24c.a5be78"
            ],
            [],
            [],
            []
        ],
        "outputLabels": [
            "Temp Max",
            "Current Temp",
            "Temp Min",
            "Description",
            "Weather icon",
            "Pressure",
            "Humidity",
            "Clouds",
            "Wind Speed",
            "Wind Direction",
            "Sunrise",
            "Sunset",
            "Location"
        ]
    },
    {
        "id": "9557f682.c2d048",
        "type": "ui_gauge",
        "z": "6acc9db.7a04264",
        "name": "Max Temp",
        "group": "c10a76da.b6e7d8",
        "order": 13,
        "width": 4,
        "height": 4,
        "gtype": "gage",
        "title": "Max Temp",
        "label": "",
        "format": "{{value | number:2}} ºF",
        "min": "-15",
        "max": "120",
        "colors": [
            "#0080ff",
            "#008080",
            "#ca3838"
        ],
        "seg1": "60",
        "seg2": "80",
        "x": 1220,
        "y": 720,
        "wires": []
    },
    {
        "id": "9d3a2b43.a1bbc8",
        "type": "ui_gauge",
        "z": "6acc9db.7a04264",
        "name": "Current Temperature",
        "group": "c10a76da.b6e7d8",
        "order": 12,
        "width": 4,
        "height": 4,
        "gtype": "gage",
        "title": "Current Temperature",
        "label": "",
        "format": "{{value | number:2}} ºF",
        "min": "-15",
        "max": "120",
        "colors": [
            "#0080ff",
            "#008040",
            "#ca3838"
        ],
        "seg1": "60",
        "seg2": "80",
        "x": 1260,
        "y": 760,
        "wires": []
    },
    {
        "id": "caca4a17.cfd48",
        "type": "ui_gauge",
        "z": "6acc9db.7a04264",
        "name": "Min Temp",
        "group": "c10a76da.b6e7d8",
        "order": 11,
        "width": 4,
        "height": 4,
        "gtype": "gage",
        "title": "Min Temp",
        "label": "",
        "format": "{{value | number:2}} ºF",
        "min": "-15",
        "max": "120",
        "colors": [
            "#0080ff",
            "#008080",
            "#ca3838"
        ],
        "seg1": "60",
        "seg2": "80",
        "x": 1220,
        "y": 800,
        "wires": []
    },
    {
        "id": "e08f590.57f33a8",
        "type": "ui_chart",
        "z": "6acc9db.7a04264",
        "name": "Temperature - Celcius",
        "group": "a3bb27b0.21c0f8",
        "order": 2,
        "width": 18,
        "height": 4,
        "label": "Temperature - Celcius",
        "chartType": "line",
        "legend": "true",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "-5",
        "ymax": "50",
        "removeOlder": "30",
        "removeOlderPoints": "",
        "removeOlderUnit": "86400",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "outputs": 1,
        "x": 1260,
        "y": 520,
        "wires": [
            []
        ]
    },
    {
        "id": "302cf849.6a4e58",
        "type": "ui_text",
        "z": "6acc9db.7a04264",
        "group": "5aa0cc20.177064",
        "order": 1,
        "width": 18,
        "height": 2,
        "name": "",
        "label": "",
        "format": "{{msg.payload}}",
        "layout": "row-left",
        "x": 1210,
        "y": 840,
        "wires": []
    },
    {
        "id": "fb81c77f.51b148",
        "type": "ui_template",
        "z": "6acc9db.7a04264",
        "group": "5aa0cc20.177064",
        "name": "Weather icon",
        "order": 2,
        "width": 12,
        "height": 2,
        "format": "<div style=\"display: flex;height: 100%;justify-content: center;align-items: center;\">\n<i class=\"fa-3x wi wi-owm-{{msg.payload}}\"></i>\n</div>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "templateScope": "local",
        "x": 1240,
        "y": 880,
        "wires": [
            []
        ]
    },
    {
        "id": "fca87095.0adfc",
        "type": "ui_gauge",
        "z": "6acc9db.7a04264",
        "name": "Pressure",
        "group": "c10a76da.b6e7d8",
        "order": 14,
        "width": 4,
        "height": 4,
        "gtype": "gage",
        "title": "Pressure",
        "label": "MBAR",
        "format": "{{value | number:2}}",
        "min": "900",
        "max": "1050",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "1015",
        "seg2": "1023",
        "x": 1220,
        "y": 920,
        "wires": []
    },
    {
        "id": "41070f1f.5a77e8",
        "type": "ui_gauge",
        "z": "6acc9db.7a04264",
        "name": "Humidity",
        "group": "c10a76da.b6e7d8",
        "order": 15,
        "width": 4,
        "height": 4,
        "gtype": "gage",
        "title": "Humidity",
        "label": "",
        "format": "{{value | number:2}}%",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "45",
        "seg2": "55",
        "x": 1220,
        "y": 960,
        "wires": []
    },
    {
        "id": "583d26ff.d270e8",
        "type": "ui_gauge",
        "z": "6acc9db.7a04264",
        "name": "Windspeed",
        "group": "c10a76da.b6e7d8",
        "order": 2,
        "width": 4,
        "height": 4,
        "gtype": "donut",
        "title": "Windspeed",
        "label": "Miles per Hour",
        "format": "{{value | number:2}}",
        "min": 0,
        "max": "110",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "5",
        "seg2": "7",
        "x": 1230,
        "y": 1040,
        "wires": []
    },
    {
        "id": "8a47c24c.a5be78",
        "type": "ui_gauge",
        "z": "6acc9db.7a04264",
        "name": "Wind Direction",
        "group": "c10a76da.b6e7d8",
        "order": 3,
        "width": 4,
        "height": 4,
        "gtype": "compass",
        "title": "Wind Direction",
        "label": "Degrees",
        "format": "{{value}}",
        "min": 0,
        "max": "359",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1240,
        "y": 1080,
        "wires": []
    },
    {
        "id": "e8be6823.2e7978",
        "type": "ui_gauge",
        "z": "6acc9db.7a04264",
        "name": "Clouds",
        "group": "c10a76da.b6e7d8",
        "order": 16,
        "width": 4,
        "height": 4,
        "gtype": "gage",
        "title": "Clouds",
        "label": "",
        "format": "{{value | number:2}}%",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1220,
        "y": 1000,
        "wires": []
    },
    {
        "id": "30720f6d.cc00b",
        "type": "ui_chart",
        "z": "6acc9db.7a04264",
        "name": "Pressure",
        "group": "f468656d.3ff56",
        "order": 1,
        "width": 18,
        "height": 4,
        "label": "Pressure",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "900",
        "ymax": "1100",
        "removeOlder": "15",
        "removeOlderPoints": "",
        "removeOlderUnit": "86400",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "outputs": 1,
        "x": 1220,
        "y": 560,
        "wires": [
            []
        ]
    },
    {
        "id": "383c6806.493288",
        "type": "ui_chart",
        "z": "6acc9db.7a04264",
        "name": "Humidity",
        "group": "9e32a364.0d0a",
        "order": 1,
        "width": 17,
        "height": 4,
        "label": "Humidity",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "0",
        "ymax": "100",
        "removeOlder": "30",
        "removeOlderPoints": "",
        "removeOlderUnit": "86400",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "outputs": 1,
        "x": 1220,
        "y": 600,
        "wires": [
            []
        ]
    },
    {
        "id": "7721052c.889044",
        "type": "ui_chart",
        "z": "6acc9db.7a04264",
        "name": "Clouds",
        "group": "f8396000.d0334",
        "order": 1,
        "width": 18,
        "height": 4,
        "label": "Clouds",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "0",
        "ymax": "100",
        "removeOlder": "30",
        "removeOlderPoints": "",
        "removeOlderUnit": "86400",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "outputs": 1,
        "x": 1220,
        "y": 680,
        "wires": [
            []
        ]
    },
    {
        "id": "cda8a21f.30fd3",
        "type": "ui_chart",
        "z": "6acc9db.7a04264",
        "name": "CPU Temperature - Celcius",
        "group": "2db625cf.759fb2",
        "order": 2,
        "width": 30,
        "height": 6,
        "label": "CPU Temperature - Celcius",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": "30",
        "removeOlderPoints": "",
        "removeOlderUnit": "86400",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "outputs": 1,
        "x": 800,
        "y": 240,
        "wires": [
            []
        ]
    },
    {
        "id": "ff9f4473.0a6e2",
        "type": "unit-converter",
        "z": "6acc9db.7a04264",
        "category": "temperature",
        "inputUnit": "C",
        "outputUnit": "F",
        "inputField": "payload",
        "outputField": "payload",
        "inputFieldType": "msg",
        "outputFieldType": "msg",
        "name": "C to F Conversion",
        "x": 770,
        "y": 280,
        "wires": [
            [
                "25d351b5.0d983e"
            ]
        ]
    },
    {
        "id": "25d351b5.0d983e",
        "type": "ui_chart",
        "z": "6acc9db.7a04264",
        "name": "CPU Temperature - Fahrenheit",
        "group": "2db625cf.759fb2",
        "order": 1,
        "width": 30,
        "height": 6,
        "label": "CPU Temperature - Fahrenheit",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": "30",
        "removeOlderPoints": "",
        "removeOlderUnit": "86400",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "outputs": 1,
        "x": 1010,
        "y": 280,
        "wires": [
            []
        ]
    },
    {
        "id": "57dff58e.8ec274",
        "type": "unit-converter",
        "z": "6acc9db.7a04264",
        "category": "temperature",
        "inputUnit": "C",
        "outputUnit": "F",
        "inputField": "payload",
        "outputField": "payload",
        "inputFieldType": "msg",
        "outputFieldType": "msg",
        "name": "",
        "x": 800,
        "y": 520,
        "wires": [
            [
                "2cec0989.5a6ade",
                "9557f682.c2d048"
            ]
        ]
    },
    {
        "id": "c75ee5d0.8550e",
        "type": "unit-converter",
        "z": "6acc9db.7a04264",
        "category": "temperature",
        "inputUnit": "C",
        "outputUnit": "F",
        "inputField": "payload",
        "outputField": "payload",
        "inputFieldType": "msg",
        "outputFieldType": "msg",
        "name": "",
        "x": 800,
        "y": 560,
        "wires": [
            [
                "2cec0989.5a6ade",
                "9d3a2b43.a1bbc8"
            ]
        ]
    },
    {
        "id": "e6350e56.21106",
        "type": "unit-converter",
        "z": "6acc9db.7a04264",
        "category": "temperature",
        "inputUnit": "C",
        "outputUnit": "F",
        "inputField": "payload",
        "outputField": "payload",
        "inputFieldType": "msg",
        "outputFieldType": "msg",
        "name": "",
        "x": 800,
        "y": 600,
        "wires": [
            [
                "2cec0989.5a6ade",
                "caca4a17.cfd48"
            ]
        ]
    },
    {
        "id": "2cec0989.5a6ade",
        "type": "ui_chart",
        "z": "6acc9db.7a04264",
        "name": "Temperature - Fahrenheit",
        "group": "a3bb27b0.21c0f8",
        "order": 1,
        "width": 18,
        "height": 4,
        "label": "Temperature - Fahrenheit",
        "chartType": "line",
        "legend": "true",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": "30",
        "removeOlderPoints": "",
        "removeOlderUnit": "86400",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "outputs": 1,
        "x": 1270,
        "y": 480,
        "wires": [
            []
        ]
    },
    {
        "id": "90657ec7.3489",
        "type": "python-function",
        "z": "6acc9db.7a04264",
        "name": "MCP9808 I2C Inquiry",
        "func": "import time\nimport Adafruit_MCP9808.MCP9808 as MCP9808\nimport os\n\nfrom unittest import TestCase, skipIf\nfrom time import time as now\n\n# Define a function to convert celsius to fahrenheit.\ndef c_to_f(c):\n\treturn c * 9.0 / 5.0 + 32.0\n\n# Default constructor will use the default I2C address (0x18) and pick a default I2C bus.\n#\n# For the Raspberry Pi this means you should hook up to the only exposed I2C bus\n# from the main GPIO header and the library will figure out the bus number based\n# on the Pi's revision.\n#\n# For the Beaglebone Black the library will assume bus 1 by default, which is\n# exposed with SCL = P9_19 and SDA = P9_20.\nsensor = MCP9808.MCP9808()\n\n# Optionally you can override the address and/or bus number:\n#sensor = MCP9808.MCP9808(address=0x20, busnum=2)\n\n# Initialize communication with the sensor.\nsensor.begin()\ntemp = sensor.readTempC()\n\ntempc = ('{0:0.3F}'.format(temp))\n\nmsg['topic'] = \"tempc\"\nmsg['payload'] = tempc\n\nreturn msg",
        "outputs": 1,
        "x": 440,
        "y": 40,
        "wires": [
            [
                "7936895.3f49978",
                "dc74645d.897bd"
            ]
        ]
    },
    {
        "id": "7936895.3f49978",
        "type": "unit-converter",
        "z": "6acc9db.7a04264",
        "category": "temperature",
        "inputUnit": "C",
        "outputUnit": "F",
        "inputField": "payload",
        "outputField": "payload",
        "inputFieldType": "msg",
        "outputFieldType": "msg",
        "name": "",
        "x": 660,
        "y": 40,
        "wires": [
            [
                "eaa16911.5598d"
            ]
        ]
    },
    {
        "id": "eaa16911.5598d",
        "type": "function",
        "z": "6acc9db.7a04264",
        "name": "Change Topic",
        "func": "msg.topic = \"tempf\";\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 860,
        "y": 40,
        "wires": [
            [
                "c18a2e43.512fb8",
                "40bc6f9e.188838"
            ]
        ]
    },
    {
        "id": "dc74645d.897bd",
        "type": "function",
        "z": "6acc9db.7a04264",
        "name": "Zabbix local.MCP9808.tempc",
        "func": "var payload=msg.payload;\nmsg.payload = ['Zabbix server', 'local.MCP9808.tempc', payload]\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 700,
        "y": 100,
        "wires": [
            [
                "4b774407.efeda4"
            ]
        ]
    },
    {
        "id": "c18a2e43.512fb8",
        "type": "function",
        "z": "6acc9db.7a04264",
        "name": "Zabbix local.MCP9808.tempf",
        "func": "var payload=msg.payload;\nmsg.payload = ['Zabbix server', 'local.MCP9808.tempf', payload]\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 1100,
        "y": 40,
        "wires": [
            [
                "4b774407.efeda4",
                "f39f77a8.56a948"
            ]
        ]
    },
    {
        "id": "b69c3b7b.da49a8",
        "type": "iot-datasource",
        "z": "6acc9db.7a04264",
        "name": "local.MCP9808.tempf",
        "tstampField": "",
        "dataField": "data",
        "disableDiscover": false,
        "x": 1820,
        "y": 40,
        "wires": [
            []
        ]
    },
    {
        "id": "f39f77a8.56a948",
        "type": "function",
        "z": "6acc9db.7a04264",
        "name": "",
        "func": "var now = ( new Date() ).getTime();\nvar value=msg.payload[2];\nmsg.payload = {\n tstamp: now,\n data: value\n};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 1350,
        "y": 40,
        "wires": [
            [
                "1b3ce317.6536a5"
            ]
        ]
    },
    {
        "id": "1b3ce317.6536a5",
        "type": "change",
        "z": "6acc9db.7a04264",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "topic",
                "pt": "msg",
                "from": "tempf",
                "fromt": "str",
                "to": "",
                "tot": "str"
            },
            {
                "t": "delete",
                "p": "_msgid",
                "pt": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1560,
        "y": 40,
        "wires": [
            [
                "b69c3b7b.da49a8"
            ]
        ]
    },
    {
        "id": "40bc6f9e.188838",
        "type": "mqtt out",
        "z": "6acc9db.7a04264",
        "name": "MCP9808 Temperature",
        "topic": "home/temperature",
        "qos": "",
        "retain": "",
        "broker": "6b8f56d7.82af78",
        "x": 1100,
        "y": 90,
        "wires": []
    },
    {
        "id": "fa3f6c4a.f43d58",
        "type": "ui_chart",
        "z": "6acc9db.7a04264",
        "name": "Windspeed",
        "group": "23419a7a.82931e",
        "order": 1,
        "width": 18,
        "height": 4,
        "label": "Windspeed",
        "chartType": "line",
        "legend": "true",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": "30",
        "removeOlderPoints": "",
        "removeOlderUnit": "86400",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "outputs": 1,
        "x": 1230,
        "y": 640,
        "wires": [
            []
        ]
    },
    {
        "id": "4dc13725.0a2d28",
        "type": "unit-converter",
        "z": "6acc9db.7a04264",
        "category": "speed",
        "inputUnit": "m/s",
        "outputUnit": "m/h",
        "inputField": "payload",
        "outputField": "payload",
        "inputFieldType": "msg",
        "outputFieldType": "msg",
        "name": "Windspeed",
        "x": 870,
        "y": 1040,
        "wires": [
            [
                "583d26ff.d270e8",
                "fa3f6c4a.f43d58"
            ]
        ]
    },
    {
        "id": "c10a76da.b6e7d8",
        "type": "ui_group",
        "z": "",
        "name": "Gauges",
        "tab": "b0e039c7.776c88",
        "order": 2,
        "disp": true,
        "width": "12",
        "collapse": false
    },
    {
        "id": "a3bb27b0.21c0f8",
        "type": "ui_group",
        "z": "",
        "name": "Temperature",
        "tab": "b0e039c7.776c88",
        "order": 3,
        "disp": true,
        "width": 18,
        "collapse": true
    },
    {
        "id": "5aa0cc20.177064",
        "type": "ui_group",
        "z": "",
        "name": "Description",
        "tab": "b0e039c7.776c88",
        "order": 1,
        "disp": true,
        "width": 30,
        "collapse": false
    },
    {
        "id": "f468656d.3ff56",
        "type": "ui_group",
        "z": "",
        "name": "Pressure",
        "tab": "b0e039c7.776c88",
        "order": 4,
        "disp": true,
        "width": 18,
        "collapse": true
    },
    {
        "id": "9e32a364.0d0a",
        "type": "ui_group",
        "z": "",
        "name": "Humidity",
        "tab": "b0e039c7.776c88",
        "order": 5,
        "disp": true,
        "width": 18,
        "collapse": true
    },
    {
        "id": "f8396000.d0334",
        "type": "ui_group",
        "z": "",
        "name": "Cloud Cover",
        "tab": "b0e039c7.776c88",
        "order": 6,
        "disp": true,
        "width": "18",
        "collapse": true
    },
    {
        "id": "2db625cf.759fb2",
        "type": "ui_group",
        "z": "",
        "name": "CPU Temperature",
        "tab": "4802b223.98b354",
        "order": 1,
        "disp": true,
        "width": 30,
        "collapse": false
    },
    {
        "id": "6b8f56d7.82af78",
        "type": "mqtt-broker",
        "z": "",
        "name": "PI",
        "broker": "127.0.0.1",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "compatmode": false,
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "home/temperature",
        "birthQos": "0",
        "birthPayload": "",
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "willTopic": "",
        "willQos": "0",
        "willPayload": ""
    },
    {
        "id": "23419a7a.82931e",
        "type": "ui_group",
        "z": "",
        "name": "Windspeed",
        "tab": "b0e039c7.776c88",
        "order": 7,
        "disp": true,
        "width": "18",
        "collapse": true
    },
    {
        "id": "b0e039c7.776c88",
        "type": "ui_tab",
        "z": "",
        "name": "Weather",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    },
    {
        "id": "4802b223.98b354",
        "type": "ui_tab",
        "z": "",
        "name": "Proelian Server",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

```

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [2 January 2020 19:35 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/4 "2020-01-02T19:35:19Z")

</div>

Your flow currently can't be imported, take a look at [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506) and try again.

---

<div class="post-metadata">

**Author:** ![vlturner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vlturner/32/15211_2.png) [@vlturner](https://discourse.nodered.org/u/vlturner)\
**Post date:** [2 January 2020 21:29 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/5 "2020-01-02T21:29:33Z")

</div>

Check it now.

---

<div class="post-metadata">

**Author:** ![vlturner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vlturner/32/15211_2.png) [@vlturner](https://discourse.nodered.org/u/vlturner)\
**Post date:** [9 January 2020 06:59 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/6 "2020-01-09T06:59:33Z")

</div>

Try this.

> [@vlturner](#):
>
> ```auto
> [{ "id": "6acc9db.7a04264", "type": "tab", "label": "Proelian", "disabled": false, "info": "" }, { "id": "e64e333f.e4b22", "type": "file in", "z": "6acc9db.7a04264", "name": "thermal_zone0_temp", "filename": "/sys/class/thermal/thermal_zone0/temp", "format": "utf8", "chunk": false, "sendError": false, "encoding": "none", "x": 340, "y": 280, "wires": [[ "9d7032b3.4df9f8"] ] }, { "id": "41b964aa.16c99c", "type": "inject", "z": "6acc9db.7a04264", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "15", "crontab": "", "once": false, "onceDelay": 0.1, "x": 110, "y": 40, "wires": [["bcbb7c72.8805d", "90657ec7.3489"] ] }, { "id": "bcbb7c72.8805d", "type": "function", "z": "6acc9db.7a04264", "name": "", "func": "msg.filename=\"/sys/class/thermal/thermal_zone0/temp\";\nreturn msg;", "outputs": 1, "noerr": 0, "x": 150, "y": 280, "wires": [["e64e333f.e4b22"] ] }, { "id": "9d7032b3.4df9f8", "type": "calculator", "z": "6acc9db.7a04264", "name": "", "inputMsgField": "payload", "outputMsgField": "payload", "operation": "div", "constant": "1000", "x": 510, "y": 280, "wires": [["ed6ce4cb.aadb6", "ff9f4473.0a6e2", "cda8a21f.30fd3"] ], "info": "msg.payload = [\n \"system.cpu.temp\",\n msg.payload\n]" }, { "id": "df9d40fa.99fd78", "type": "openweathermap in", "z": "6acc9db.7a04264", "name": "Openweathermap", "wtype": "current", "lon": "", "lat": "", "city": "San Andreas", "country": "California", "language": "en", "x": 100, "y": 780, "wires": [["777b03c9.e1a804", "58bdc1c1.c8c78"] ] }, { "id": "4b774407.efeda4", "type": "zabbix-sender", "z": "6acc9db.7a04264", "zabbixServer": "127.0.0.1", "zabbixPort": 10051, "sendTimestamps": false, "withNs": false, "timeout": 5000, "defaultHostname": "Zabbix server", "x": 1470, "y": 370, "wires": [] }, { "id": "ed6ce4cb.aadb6", "type": "function", "z": "6acc9db.7a04264", "name": "Zabbix Array", "func": "var payload=msg.payload;\nmsg.payload = ['Zabbix server', 'system.cpu.temp', payload]\nreturn msg;", "outputs": 1, "noerr": 0, "x": 750, "y": 320, "wires": [["4b774407.efeda4"] ] }, { "id": "777b03c9.e1a804", "type": "function", "z": "6acc9db.7a04264", "name": "Openweather Zabbix Function", "func": "var payload=msg.payload;\nmsg.payload = [\n ['Zabbix server', 'openweather.tempk', payload.tempk],\n ['Zabbix server', 'openweather.maxtemp', payload.maxtemp],\n ['Zabbix server', 'openweather.mintemp', payload.mintemp],\n ['Zabbix server', 'openweather.tempc', payload.tempc],\n ['Zabbix server', 'openweather.temp_maxc', payload.temp_maxc],\n ['Zabbix server', 'openweather.temp_minc', payload.temp_minc],\n ['Zabbix server', 'openweather.humidity', payload.humidity],\n ['Zabbix server', 'openweather.pressure', payload.pressure],\n ['Zabbix server', 'openweather.windspeed', payload.windspeed],\n ['Zabbix server', 'openweather.winddirection', payload.winddirection],\n ['Zabbix server', 'openweather.sunrise', payload.sunrise],\n ['Zabbix server', 'openweather.sunset', payload.sunset],\n ['Zabbix server', 'openweather.clouds', payload.clouds]\n] \nreturn msg;", "outputs": 1, "noerr": 0, "x": 500, "y": 370, "wires": [["4b774407.efeda4"] ] }, { "id": "58bdc1c1.c8c78", "type": "function", "z": "6acc9db.7a04264", "name": "Openweather Dashboard Function", "func": "var msg1 = { payload:msg.payload.temp_maxc };\nmsg1.topic = \"Max\";\nvar msg2 = { payload:msg.payload.tempc };\nmsg2.topic = \"Current\";\nvar msg3 = { payload:msg.payload.temp_minc };\nmsg3.topic = \"Min\";\nvar msg4 = { payload:msg.payload.description};\nvar msg5 = { payload:msg.payload.icon};\nvar msg6 = { payload:msg.payload.pressure};\nvar msg7 = { payload:msg.payload.humidity};\nvar msg8 = { payload:msg.payload.clouds};\nvar msg9 = { payload:msg.payload.windspeed};\nvar msg10 = { payload:msg.payload.winddirection};\nvar msg11 = { payload:msg.payload.sunrise};\nvar msg12 = { payload:msg.payload.sunset};\nvar msg13 = { payload:msg.location};\nreturn [msg1, msg2, msg3, msg4, msg5, msg6, msg7, msg8, msg9, msg10, msg11, msg12, msg13];", "outputs": 13, "noerr": 0, "x": 500, "y": 780, "wires": [["e08f590.57f33a8", "57dff58e.8ec274"], ["e08f590.57f33a8", "c75ee5d0.8550e"], ["e08f590.57f33a8", "e6350e56.21106"], ["302cf849.6a4e58"], ["fb81c77f.51b148"], ["fca87095.0adfc", "30720f6d.cc00b"], ["41070f1f.5a77e8", "383c6806.493288"], ["e8be6823.2e7978", "7721052c.889044"], ["583d26ff.d270e8", "4dc13725.0a2d28"], ["8a47c24c.a5be78"], [], [], [] ], "outputLabels": ["Temp Max", "Current Temp", "Temp Min", "Description", "Weather icon", "Pressure", "Humidity", "Clouds", "Wind Speed", "Wind Direction", "Sunrise", "Sunset", "Location"] }, { "id": "9557f682.c2d048", "type": "ui_gauge", "z": "6acc9db.7a04264", "name": "Max Temp", "group": "c10a76da.b6e7d8", "order": 13, "width": 4, "height": 4, "gtype": "gage", "title": "Max Temp", "label": "", "format": "{{value | number:2}} ºF", "min": "-15", "max": "120", "colors": ["#0080ff", "#008080", "#ca3838"], "seg1": "60", "seg2": "80", "x": 1220, "y": 720, "wires": [] }, { "id": "9d3a2b43.a1bbc8", "type": "ui_gauge", "z": "6acc9db.7a04264", "name": "Current Temperature", "group": "c10a76da.b6e7d8", "order": 12, "width": 4, "height": 4, "gtype": "gage", "title": "Current Temperature", "label": "", "format": "{{value | number:2}} ºF", "min": "-15", "max": "120", "colors": ["#0080ff", "#008040", "#ca3838"], "seg1": "60", "seg2": "80", "x": 1260, "y": 760, "wires": [] }, { "id": "caca4a17.cfd48", "type": "ui_gauge", "z": "6acc9db.7a04264", "name": "Min Temp", "group": "c10a76da.b6e7d8", "order": 11, "width": 4, "height": 4, "gtype": "gage", "title": "Min Temp", "label": "", "format": "{{value | number:2}} ºF", "min": "-15", "max": "120", "colors": ["#0080ff", "#008080", "#ca3838"], "seg1": "60", "seg2": "80", "x": 1220, "y": 800, "wires": [] }, { "id": "e08f590.57f33a8", "type": "ui_chart", "z": "6acc9db.7a04264", "name": "Temperature - Celcius", "group": "a3bb27b0.21c0f8", "order": 2, "width": 18, "height": 4, "label": "Temperature - Celcius", "chartType": "line", "legend": "true", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "-5", "ymax": "50", "removeOlder": "30", "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": ["#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5"], "useOldStyle": false, "outputs": 1, "x": 1260, "y": 520, "wires": [[] ] }, { "id": "302cf849.6a4e58", "type": "ui_text", "z": "6acc9db.7a04264", "group": "5aa0cc20.177064", "order": 1, "width": 18, "height": 2, "name": "", "label": "", "format": "{{msg.payload}}", "layout": "row-left", "x": 1210, "y": 840, "wires": [] }, { "id": "fb81c77f.51b148", "type": "ui_template", "z": "6acc9db.7a04264", "group": "5aa0cc20.177064", "name": "Weather icon", "order": 2, "width": 12, "height": 2, "format": "<div style=\"display: flex;height: 100%;justify-content: center;align-items: center;\">\n<i class=\"fa-3x wi wi-owm-{{msg.payload}}\"></i>\n</div>", "storeOutMessages": true, "fwdInMessages": true, "templateScope": "local", "x": 1240, "y": 880, "wires": [[] ] }, { "id": "fca87095.0adfc", "type": "ui_gauge", "z": "6acc9db.7a04264", "name": "Pressure", "group": "c10a76da.b6e7d8", "order": 14, "width": 4, "height": 4, "gtype": "gage", "title": "Pressure", "label": "MBAR", "format": "{{value | number:2}}", "min": "900", "max": "1050", "colors": ["#00b500", "#e6e600", "#ca3838"], "seg1": "1015", "seg2": "1023", "x": 1220, "y": 920, "wires": [] }, { "id": "41070f1f.5a77e8", "type": "ui_gauge", "z": "6acc9db.7a04264", "name": "Humidity", "group": "c10a76da.b6e7d8", "order": 15, "width": 4, "height": 4, "gtype": "gage", "title": "Humidity", "label": "", "format": "{{value | number:2}}%", "min": 0, "max": "100", "colors": ["#00b500", "#e6e600", "#ca3838"], "seg1": "45", "seg2": "55", "x": 1220, "y": 960, "wires": [] }, { "id": "583d26ff.d270e8", "type": "ui_gauge", "z": "6acc9db.7a04264", "name": "Windspeed", "group": "c10a76da.b6e7d8", "order": 2, "width": 4, "height": 4, "gtype": "donut", "title": "Windspeed", "label": "Miles per Hour", "format": "{{value | number:2}}", "min": 0, "max": "110", "colors": ["#00b500", "#e6e600", "#ca3838"], "seg1": "5", "seg2": "7", "x": 1230, "y": 1040, "wires": [] }, { "id": "8a47c24c.a5be78", "type": "ui_gauge", "z": "6acc9db.7a04264", "name": "Wind Direction", "group": "c10a76da.b6e7d8", "order": 3, "width": 4, "height": 4, "gtype": "compass", "title": "Wind Direction", "label": "Degrees", "format": "{{value}}", "min": 0, "max": "359", "colors": ["#00b500", "#e6e600", "#ca3838"], "seg1": "", "seg2": "", "x": 1240, "y": 1080, "wires": [] }, { "id": "e8be6823.2e7978", "type": "ui_gauge", "z": "6acc9db.7a04264", "name": "Clouds", "group": "c10a76da.b6e7d8", "order": 16, "width": 4, "height": 4, "gtype": "gage", "title": "Clouds", "label": "", "format": "{{value | number:2}}%", "min": 0, "max": "100", "colors": ["#00b500", "#e6e600", "#ca3838"], "seg1": "", "seg2": "", "x": 1220, "y": 1000, "wires": [] }, { "id": "30720f6d.cc00b", "type": "ui_chart", "z": "6acc9db.7a04264", "name": "Pressure", "group": "f468656d.3ff56", "order": 1, "width": 18, "height": 4, "label": "Pressure", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "900", "ymax": "1100", "removeOlder": "15", "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": ["#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5"], "useOldStyle": false, "outputs": 1, "x": 1220, "y": 560, "wires": [[] ] }, { "id": "383c6806.493288", "type": "ui_chart", "z": "6acc9db.7a04264", "name": "Humidity", "group": "9e32a364.0d0a", "order": 1, "width": 17, "height": 4, "label": "Humidity", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "0", "ymax": "100", "removeOlder": "30", "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": ["#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5"], "useOldStyle": false, "outputs": 1, "x": 1220, "y": 600, "wires": [[] ] }, { "id": "7721052c.889044", "type": "ui_chart", "z": "6acc9db.7a04264", "name": "Clouds", "group": "f8396000.d0334", "order": 1, "width": 18, "height": 4, "label": "Clouds", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "0", "ymax": "100", "removeOlder": "30", "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": ["#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5"], "useOldStyle": false, "outputs": 1, "x": 1220, "y": 680, "wires": [[] ] }, { "id": "cda8a21f.30fd3", "type": "ui_chart", "z": "6acc9db.7a04264", "name": "CPU Temperature - Celcius", "group": "2db625cf.759fb2", "order": 2, "width": 30, "height": 6, "label": "CPU Temperature - Celcius", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "30", "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": ["#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5"], "useOldStyle": false, "outputs": 1, "x": 800, "y": 240, "wires": [[] ] }, { "id": "ff9f4473.0a6e2", "type": "unit-converter", "z": "6acc9db.7a04264", "category": "temperature", "inputUnit": "C", "outputUnit": "F", "inputField": "payload", "outputField": "payload", "inputFieldType": "msg", "outputFieldType": "msg", "name": "C to F Conversion", "x": 770, "y": 280, "wires": [["25d351b5.0d983e"] ] }, { "id": "25d351b5.0d983e", "type": "ui_chart", "z": "6acc9db.7a04264", "name": "CPU Temperature - Fahrenheit", "group": "2db625cf.759fb2", "order": 1, "width": 30, "height": 6, "label": "CPU Temperature - Fahrenheit", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "30", "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": ["#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5"], "useOldStyle": false, "outputs": 1, "x": 1010, "y": 280, "wires": [[] ] }, { "id": "57dff58e.8ec274", "type": "unit-converter", "z": "6acc9db.7a04264", "category": "temperature", "inputUnit": "C", "outputUnit": "F", "inputField": "payload", "outputField": "payload", "inputFieldType": "msg", "outputFieldType": "msg", "name": "", "x": 800, "y": 520, "wires": [["2cec0989.5a6ade", "9557f682.c2d048"] ] }, { "id": "c75ee5d0.8550e", "type": "unit-converter", "z": "6acc9db.7a04264", "category": "temperature", "inputUnit": "C", "outputUnit": "F", "inputField": "payload", "outputField": "payload", "inputFieldType": "msg", "outputFieldType": "msg", "name": "", "x": 800, "y": 560, "wires": [["2cec0989.5a6ade", "9d3a2b43.a1bbc8"] ] }, { "id": "e6350e56.21106", "type": "unit-converter", "z": "6acc9db.7a04264", "category": "temperature", "inputUnit": "C", "outputUnit": "F", "inputField": "payload", "outputField": "payload", "inputFieldType": "msg", "outputFieldType": "msg", "name": "", "x": 800, "y": 600, "wires": [["2cec0989.5a6ade", "caca4a17.cfd48"] ] }, { "id": "2cec0989.5a6ade", "type": "ui_chart", "z": "6acc9db.7a04264", "name": "Temperature - Fahrenheit", "group": "a3bb27b0.21c0f8", "order": 1, "width": 18, "height": 4, "label": "Temperature - Fahrenheit", "chartType": "line", "legend": "true", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "30", "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": ["#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5"], "useOldStyle": false, "outputs": 1, "x": 1270, "y": 480, "wires": [[] ] }, { "id": "90657ec7.3489", "type": "python-function", "z": "6acc9db.7a04264", "name": "MCP9808 I2C Inquiry", "func": "import time\nimport Adafruit_MCP9808.MCP9808 as MCP9808\nimport os\n\nfrom unittest import TestCase, skipIf\nfrom time import time as now\n\n# Define a function to convert celsius to fahrenheit.\ndef c_to_f(c):\n\treturn c * 9.0 / 5.0 + 32.0\n\n# Default constructor will use the default I2C address (0x18) and pick a default I2C bus.\n#\n# For the Raspberry Pi this means you should hook up to the only exposed I2C bus\n# from the main GPIO header and the library will figure out the bus number based\n# on the Pi's revision.\n#\n# For the Beaglebone Black the library will assume bus 1 by default, which is\n# exposed with SCL = P9_19 and SDA = P9_20.\nsensor = MCP9808.MCP9808()\n\n# Optionally you can override the address and/or bus number:\n#sensor = MCP9808.MCP9808(address=0x20, busnum=2)\n\n# Initialize communication with the sensor.\nsensor.begin()\ntemp = sensor.readTempC()\n\ntempc = ('{0:0.3F}'.format(temp))\n\nmsg['topic'] = \"tempc\"\nmsg['payload'] = tempc\n\nreturn msg", "outputs": 1, "x": 440, "y": 40, "wires": [["7936895.3f49978", "dc74645d.897bd"] ] }, { "id": "7936895.3f49978", "type": "unit-converter", "z": "6acc9db.7a04264", "category": "temperature", "inputUnit": "C", "outputUnit": "F", "inputField": "payload", "outputField": "payload", "inputFieldType": "msg", "outputFieldType": "msg", "name": "", "x": 660, "y": 40, "wires": [["eaa16911.5598d"] ] }, { "id": "eaa16911.5598d", "type": "function", "z": "6acc9db.7a04264", "name": "Change Topic", "func": "msg.topic = \"tempf\";\nreturn msg;\n", "outputs": 1, "noerr": 0, "x": 860, "y": 40, "wires": [["c18a2e43.512fb8", "40bc6f9e.188838"] ] }, { "id": "dc74645d.897bd", "type": "function", "z": "6acc9db.7a04264", "name": "Zabbix local.MCP9808.tempc", "func": "var payload=msg.payload;\nmsg.payload = ['Zabbix server', 'local.MCP9808.tempc', payload]\nreturn msg;\n", "outputs": 1, "noerr": 0, "x": 700, "y": 100, "wires": [["4b774407.efeda4"] ] }, { "id": "c18a2e43.512fb8", "type": "function", "z": "6acc9db.7a04264", "name": "Zabbix local.MCP9808.tempf", "func": "var payload=msg.payload;\nmsg.payload = ['Zabbix server', 'local.MCP9808.tempf', payload]\nreturn msg;", "outputs": 1, "noerr": 0, "x": 1100, "y": 40, "wires": [["4b774407.efeda4", "f39f77a8.56a948"] ] }, { "id": "b69c3b7b.da49a8", "type": "iot-datasource", "z": "6acc9db.7a04264", "name": "local.MCP9808.tempf", "tstampField": "", "dataField": "data", "disableDiscover": false, "x": 1820, "y": 40, "wires": [[] ] }, { "id": "f39f77a8.56a948", "type": "function", "z": "6acc9db.7a04264", "name": "", "func": "var now = ( new Date() ).getTime();\nvar value=msg.payload[2];\nmsg.payload = {\n tstamp: now,\n data: value\n};\nreturn msg;", "outputs": 1, "noerr": 0, "x": 1350, "y": 40, "wires": [["1b3ce317.6536a5"] ] }, { "id": "1b3ce317.6536a5", "type": "change", "z": "6acc9db.7a04264", "name": "", "rules": [{ "t": "change", "p": "topic", "pt": "msg", "from": "tempf", "fromt": "str", "to": "", "tot": "str" }, { "t": "delete", "p": "_msgid", "pt": "msg" }], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1560, "y": 40, "wires": [["b69c3b7b.da49a8"] ] }, { "id": "40bc6f9e.188838", "type": "mqtt out", "z": "6acc9db.7a04264", "name": "MCP9808 Temperature", "topic": "home/temperature", "qos": "", "retain": "", "broker": "6b8f56d7.82af78", "x": 1100, "y": 90, "wires": [] }, { "id": "fa3f6c4a.f43d58", "type": "ui_chart", "z": "6acc9db.7a04264", "name": "Windspeed", "group": "23419a7a.82931e", "order": 1, "width": 18, "height": 4, "label": "Windspeed", "chartType": "line", "legend": "true", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "30", "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": ["#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5"], "useOldStyle": false, "outputs": 1, "x": 1230, "y": 640, "wires": [[] ] }, { "id": "4dc13725.0a2d28", "type": "unit-converter", "z": "6acc9db.7a04264", "category": "speed", "inputUnit": "m/s", "outputUnit": "m/h", "inputField": "payload", "outputField": "payload", "inputFieldType": "msg", "outputFieldType": "msg", "name": "Windspeed", "x": 870, "y": 1040, "wires": [["583d26ff.d270e8", "fa3f6c4a.f43d58"] ] }, { "id": "c10a76da.b6e7d8", "type": "ui_group", "z": "", "name": "Gauges", "tab": "b0e039c7.776c88", "order": 2, "disp": true, "width": "12", "collapse": false }, { "id": "a3bb27b0.21c0f8", "type": "ui_group", "z": "", "name": "Temperature", "tab": "b0e039c7.776c88", "order": 3, "disp": true, "width": 18, "collapse": true }, { "id": "5aa0cc20.177064", "type": "ui_group", "z": "", "name": "Description", "tab": "b0e039c7.776c88", "order": 1, "disp": true, "width": 30, "collapse": false }, { "id": "f468656d.3ff56", "type": "ui_group", "z": "", "name": "Pressure", "tab": "b0e039c7.776c88", "order": 4, "disp": true, "width": 18, "collapse": true }, { "id": "9e32a364.0d0a", "type": "ui_group", "z": "", "name": "Humidity", "tab": "b0e039c7.776c88", "order": 5, "disp": true, "width": 18, "collapse": true }, { "id": "f8396000.d0334", "type": "ui_group", "z": "", "name": "Cloud Cover", "tab": "b0e039c7.776c88", "order": 6, "disp": true, "width": "18", "collapse": true }, { "id": "2db625cf.759fb2", "type": "ui_group", "z": "", "name": "CPU Temperature", "tab": "4802b223.98b354", "order": 1, "disp": true, "width": 30, "collapse": false }, { "id": "6b8f56d7.82af78", "type": "mqtt-broker", "z": "", "name": "PI", "broker": "127.0.0.1", "port": "1883", "clientid": "", "usetls": false, "compatmode": false, "keepalive": "60", "cleansession": true, "birthTopic": "home/temperature", "birthQos": "0", "birthPayload": "", "closeTopic": "", "closeQos": "0", "closePayload": "", "willTopic": "", "willQos": "0", "willPayload": "" }, { "id": "23419a7a.82931e", "type": "ui_group", "z": "", "name": "Windspeed", "tab": "b0e039c7.776c88", "order": 7, "disp": true, "width": "18", "collapse": true }, { "id": "b0e039c7.776c88", "type": "ui_tab", "z": "", "name": "Weather", "icon": "dashboard", "disabled": false, "hidden": false }, { "id": "4802b223.98b354", "type": "ui_tab", "z": "", "name": "Proelian Server", "icon": "dashboard", "disabled": false, "hidden": false } ]
> 
> ```

```auto

```

---

<div class="post-metadata">

**Author:** ![CAG](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@CAG](https://discourse.nodered.org/u/CAG)\
**Post date:** [23 March 2022 03:08 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/7 "2022-03-23T03:08:24Z")

</div>

Hoping that someone can help me. I have tried this flow and I get nothing back.  
I tried pasting the URL into Chrome and I get data back... What am I missing?

---

<div class="post-metadata">

**Author:** ![NRdiscrs9393](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nrdiscrs9393/32/726_2.png) [@NRdiscrs9393](https://discourse.nodered.org/u/NRdiscrs9393)\
**Post date:** [23 March 2022 12:29 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/8 "2022-03-23T12:29:35Z")

</div>

Which flow did you import? @vlturner or mine?

---

<div class="post-metadata">

**Author:** ![CAG](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@CAG](https://discourse.nodered.org/u/CAG)\
**Post date:** [23 March 2022 13:36 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/9 "2022-03-23T13:36:27Z")

</div>

I did the first one. I have an Ambient Weather station. I tried catching errors and putting in a debug but I am not seeing anything.

I get this back in the browser -  
[{"macAddress":"E8:DB:84:9A:EB:89","lastData":{"dateutc":1648004640000,"tempinf":73.6,"humidityin":51,"baromrelin":29.947,"baromabsin":30.136,"tempf":53.4,"battout":1,"humidity":97,"winddir":357,"windspeedmph":0,"windgustmph":0,"maxdailygust":10.3,"hourlyrainin":0,"eventrainin":0,"dailyrainin":0.02,"weeklyrainin":0.421,"monthlyrainin":3.26,"totalrainin":28.996,"solarradiation":0,"uv":0,"batt\_co2":1,"feelsLike":53.4,"dewPoint":52.57,"feelsLikein":73.1,"dewPointin":54.3,"lastRain":"2022-03-22T11:16:00.000Z","tz":"America/Los\_Angeles","date":"2022-03-23T03:04:00.000Z"},"info":{"name":"South Bay","coords":{"coords":{"lon":-122.8537212,"lat":47.1061404},"address":"5220 Lemon Rd NE, Olympia, WA 98506, USA","location":"Olympia","elevation":34.92913818359375,"geo":{"type":"Point","coordinates":[-122.8537212,47.1061404]}}}}]

---

<div class="post-metadata">

**Author:** ![CAG](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@CAG](https://discourse.nodered.org/u/CAG)\
**Post date:** [23 March 2022 13:50 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/10 "2022-03-23T13:50:00Z")

</div>

Here is the flow -

```auto
[
    {
        "id": "8a27452390de3769",
        "type": "tab",
        "label": "ambientweather",
        "disabled": false,
        "info": ""
    },
    {
        "id": "d7eaa19c8a55d3cd",
        "type": "http request",
        "z": "8a27452390de3769",
        "name": "",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "https://api.ambientweather.net/v1/devices?applicationKey=??&apiKey=??",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "x": 280,
        "y": 300,
        "wires": [
            [
                "8d6d15df08e5b293"
            ]
        ]
    },
    {
        "id": "233acf340d5d29f5",
        "type": "inject",
        "z": "8a27452390de3769",
        "name": "",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 240,
        "y": 240,
        "wires": [
            [
                "d7eaa19c8a55d3cd"
            ]
        ]
    },
    {
        "id": "2df333acfba589e0",
        "type": "debug",
        "z": "8a27452390de3769",
        "name": "Temperature F",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "x": 520,
        "y": 420,
        "wires": []
    },
    {
        "id": "8d6d15df08e5b293",
        "type": "json",
        "z": "8a27452390de3769",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 310,
        "y": 360,
        "wires": [
            [
                "a1c764976daa9687",
                "a860e199460bc2c8"
            ]
        ]
    },
    {
        "id": "a1c764976daa9687",
        "type": "change",
        "z": "8a27452390de3769",
        "name": "AWtempf",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload[0].lastData.tempf",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "tempf",
                "pt": "flow",
                "to": "payload.AWtempf",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 300,
        "y": 420,
        "wires": [
            [
                "2df333acfba589e0",
                "cf32ecaaea6ad4de"
            ]
        ]
    },
    {
        "id": "a860e199460bc2c8",
        "type": "debug",
        "z": "8a27452390de3769",
        "name": "All Data",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "x": 500,
        "y": 360,
        "wires": []
    },
    {
        "id": "cf32ecaaea6ad4de",
        "type": "ui_gauge",
        "z": "8a27452390de3769",
        "name": "",
        "group": "e921b4fb49bd73fd",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "gauge",
        "label": "units",
        "format": "{{value}}",
        "min": 0,
        "max": 10,
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 440,
        "y": 540,
        "wires": []
    },
    {
        "id": "e921b4fb49bd73fd",
        "type": "ui_group",
        "name": "Outdoors",
        "tab": "9eeddfdf15437bc2",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "9eeddfdf15437bc2",
        "type": "ui_tab",
        "name": "Weather",
        "icon": "dashboard",
        "order": 3,
        "disabled": false,
        "hidden": false
    }
]

```

---

<div class="post-metadata">

**Author:** ![NRdiscrs9393](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nrdiscrs9393/32/726_2.png) [@NRdiscrs9393](https://discourse.nodered.org/u/NRdiscrs9393)\
**Post date:** [23 March 2022 13:59 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/11 "2022-03-23T13:59:15Z")

</div>

> [@CAG](#):
>
> ```auto
> "onceDelay": 0.1,
> 
> ```

Pull your key out of the code real quick...I'll look at it.

---

<div class="post-metadata">

**Author:** ![NRdiscrs9393](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nrdiscrs9393/32/726_2.png) [@NRdiscrs9393](https://discourse.nodered.org/u/NRdiscrs9393)\
**Post date:** [23 March 2022 14:07 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/12 "2022-03-23T14:07:12Z")

</div>

It's working just fine for me. See capture. What does your debug say? Are you getting a connection error?

 ![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/b/7bc6c45d35909a66b2e9e02bc494817c48fda79e.png)

---

<div class="post-metadata">

**Author:** ![NRdiscrs9393](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nrdiscrs9393/32/726_2.png) [@NRdiscrs9393](https://discourse.nodered.org/u/NRdiscrs9393)\
**Post date:** [23 March 2022 14:12 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/13 "2022-03-23T14:12:09Z")

</div>

Forgive me for asking... Are you clicking the button left of the timestamp node?

![click](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/1/e1adc3fbe3d392b1a6fce1a421322fcd2d946a65.png)

---

<div class="post-metadata">

**Author:** ![CAG](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@CAG](https://discourse.nodered.org/u/CAG)\
**Post date:** [23 March 2022 14:38 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/14 "2022-03-23T14:38:21Z")

</div>

Thanks, done on the key

ok that was a duh moment. I forgot to do that. it is working now. I knew it had to be something dumb 🙂 Now I just need to loop it and combine with my other temp sensors.

![Screenshot 2022-03-23 074124](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/9/e9de2416d7d1944c691b06c4a0d499673eba856b.jpeg)

---

<div class="post-metadata">

**Author:** ![vlturner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vlturner/32/15211_2.png) [@vlturner](https://discourse.nodered.org/u/vlturner)\
**Post date:** [23 March 2022 15:09 UTC](https://discourse.nodered.org/t/working-ambient-weather-api-flow/16973/15 "2022-03-23T15:09:04Z")

</div>

Have been busy elsewhere. What is the question for me?

Vance L. Turner

1540 Mountain Ranch Rd.

San Andreas, CA 95249

Cell 408-431-5595

 ![C82D45461FF54112801D0774CE94DFA7.png](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/a/2ad4c25f471d2cfc2782215e9bb5a535b2545175.png)
