Skip to content

Commit 8350ae8

Browse files
author
Dave Conway-Jones
committed
update second-flow.md to point at monthly earthquakes
to ensure there may be enough to plot to close #151
1 parent d9dc451 commit 8350ae8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/tutorials/second-flow.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ The HTTP Request node can be used to retrieve a web-page when triggered.
3939

4040
After adding one to the workspace, edit it to set the `URL` property to:
4141

42-
https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_week.csv
42+
https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_month.csv
4343

4444
Then click Done to close the dialog.
4545

46-
This URL is a feed of significant earthquakes in the last 7 days from the US Geological Survey web site. The site offers a number of [other options](https://earthquake.usgs.gov/earthquakes/feed/v1.0/csv.php)
46+
This URL is a feed of significant earthquakes in the last month from the US Geological Survey web site. The site offers a number of [other options](https://earthquake.usgs.gov/earthquakes/feed/v1.0/csv.php)
4747
that you may want to play around with after completing this tutorial.
4848

4949
### 3. Add a CSV node
@@ -101,7 +101,7 @@ messages like:
101101
msg.payload : string(6)
102102
"PANIC!"
103103

104-
You could change the switch value of `7` to a smaller one to test your programm. Remember to click on deploy after the change.
104+
You could change the switch value of `7` to a smaller one to test your program. Remember to click on deploy after the change.
105105
***
106106

107107
### Summary
@@ -118,7 +118,7 @@ modified and displayed in the Debug sidebar.
118118
The flow created in this tutorial is represented by the following json. To import
119119
it into the editor, copy it to your clipboard and then paste it into the Import dialog.
120120

121-
[{"id":"e36406f2.8ef798","type":"inject","z":"f03b57d5.e525f8","name":"","topic":"","payload":"","payloadType":"str","repeat":"300","crontab":"","once":false,"x":130,"y":900,"wires":[["c3c50023.3bbed"]]},{"id":"c3c50023.3bbed","type":"http request","z":"f03b57d5.e525f8","name":"Recent Quakes","method":"GET","url":"https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_week.csv","tls":"","x":300,"y":900,"wires":[["8afc6cac.e0812"]]},{"id":"8afc6cac.e0812","type":"csv","z":"f03b57d5.e525f8","name":"","sep":",","hdrin":true,"hdrout":"","multi":"one","ret":"\\n","temp":"","x":470,"y":900,"wires":[["44779781.4190f8","6f0eb546.9e208c"]]},{"id":"44779781.4190f8","type":"debug","z":"f03b57d5.e525f8","name":"","active":true,"complete":false,"x":630,"y":900,"wires":[]},{"id":"6f0eb546.9e208c","type":"switch","z":"f03b57d5.e525f8","name":"","property":"payload.mag","propertyType":"msg","rules":[{"t":"gte","v":"7","vt":"num"}],"checkall":"true","outputs":1,"x":510,"y":960,"wires":[["d78d4aa8.8c8208"]]},{"id":"d78d4aa8.8c8208","type":"change","z":"f03b57d5.e525f8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"PANIC!","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":1020,"wires":[["72fddece.fac0d"]]},{"id":"72fddece.fac0d","type":"debug","z":"f03b57d5.e525f8","name":"","active":true,"complete":false,"x":750,"y":960,"wires":[]}]
121+
[{"id":"e36406f2.8ef798","type":"inject","z":"f03b57d5.e525f8","name":"","topic":"","payload":"","payloadType":"str","repeat":"300","crontab":"","once":false,"x":130,"y":900,"wires":[["c3c50023.3bbed"]]},{"id":"c3c50023.3bbed","type":"http request","z":"f03b57d5.e525f8","name":"Recent Quakes","method":"GET","url":"https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_month.csv","tls":"","x":300,"y":900,"wires":[["8afc6cac.e0812"]]},{"id":"8afc6cac.e0812","type":"csv","z":"f03b57d5.e525f8","name":"","sep":",","hdrin":true,"hdrout":"","multi":"one","ret":"\\n","temp":"","x":470,"y":900,"wires":[["44779781.4190f8","6f0eb546.9e208c"]]},{"id":"44779781.4190f8","type":"debug","z":"f03b57d5.e525f8","name":"","active":true,"complete":false,"x":630,"y":900,"wires":[]},{"id":"6f0eb546.9e208c","type":"switch","z":"f03b57d5.e525f8","name":"","property":"payload.mag","propertyType":"msg","rules":[{"t":"gte","v":"7","vt":"num"}],"checkall":"true","outputs":1,"x":510,"y":960,"wires":[["d78d4aa8.8c8208"]]},{"id":"d78d4aa8.8c8208","type":"change","z":"f03b57d5.e525f8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"PANIC!","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":1020,"wires":[["72fddece.fac0d"]]},{"id":"72fddece.fac0d","type":"debug","z":"f03b57d5.e525f8","name":"","active":true,"complete":false,"x":750,"y":960,"wires":[]}]
122122

123123
### Related reading
124124

0 commit comments

Comments
 (0)