diff --git a/README.md b/README.md index e4e4a5a..8340f01 100644 --- a/README.md +++ b/README.md @@ -73,17 +73,17 @@ Unlike previous versions of this node, this node DOES NOT perform it's own daily There are two example flows provided, one for a fixed GPS positioned injected daily and one for a stream of GPS coordinates that continually updates with your position. -Example 1: Fixed GPS position [Download](https://raw.githubusercontent.com/freakent/node-red-contrib-sunevents/v3/examples/sun-events-example-flows.json) -![Example Flow](https://raw.githubusercontent.com/freakent/node-red-contrib-sunevents/v3/docs/flow-diagram-1.png "Example Flow") +Example 1: Fixed GPS position [Download](https://raw.githubusercontent.com/freakent/node-red-contrib-sunevents/main/examples/sun-events-example-flows.json) +![Example Flow](https://raw.githubusercontent.com/freakent/node-red-contrib-sunevents/main/docs/flow-diagram-1.png "Example Flow") -Example 2: Stream of GPS positions [Download](https://raw.githubusercontent.com/freakent/node-red-contrib-sunevents/v3/examples/sun-events-gps-stream-example-flows.json) -![Example Flow](https://raw.githubusercontent.com/freakent/node-red-contrib-sunevents/v3/docs/flow-diagram-2.png "Example Flow") +Example 2: Stream of GPS positions [Download](https://raw.githubusercontent.com/freakent/node-red-contrib-sunevents/main/examples/sun-events-gps-stream-example-flows.json) +![Example Flow](https://raw.githubusercontent.com/freakent/node-red-contrib-sunevents/main/docs/flow-diagram-2.png "Example Flow") ## [Say Thanks](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R4Y63PPPD4CGG&source=url) If you find this node useful and you want to say thanks, feel free to buy me a coffee using the link below. -[![Say Thanks](https://raw.githubusercontent.com/freakent/node-red-contrib-sunevents/master/docs/thankyou.jpg "Say Thanks") +[![Say Thanks](https://raw.githubusercontent.com/freakent/node-red-contrib-sunevents/main/docs/thankyou.jpg "Say Thanks") ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R4Y63PPPD4CGG&source=url) diff --git a/lib/sun-events-node.html b/lib/sun-events-node.html index e1d902e..c8284e5 100644 --- a/lib/sun-events-node.html +++ b/lib/sun-events-node.html @@ -162,16 +162,16 @@

Example Flow

There are two example flows provided, one for a fixed GPS positioned injected daily and one for a stream of GPS coordinates that continually updates with your position. There is an example flow you can import supplied with this node.

-

Example 1: Fixed GPS position (Download) - +

Example 1: Fixed GPS position (Download) + -

Example 2: Stream of GPS positions (Download) - +

Example 2: Stream of GPS positions (Download) +

Say Thanks

If you find this node useful and you want to say thanks, feel free to buy me a coffee using the link below.

- + diff --git a/lib/sun-events-node.js b/lib/sun-events-node.js index 2152480..8f713bb 100644 --- a/lib/sun-events-node.js +++ b/lib/sun-events-node.js @@ -50,7 +50,7 @@ module.exports = function(RED) { node.status({ fill: 'red', shape: 'dot', text: "no latitude & longitude"}) return } - node.warn("calculating sunevents for lat and lng", lat, lng) + node.warn(`calculating sunevents for lat ${lat} and lng ${lng}`) node.sunevents.refresh(lat, lng) node.update_status() })