Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
905
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.74 KB | None | 0 0
  1. [
  2. {
  3. "id": "9ce2c290.c85b6",
  4. "type": "dns",
  5. "z": "eb3f51ed.bf6b5",
  6. "name": "",
  7. "method": "lookup",
  8. "x": 820.1668853759766,
  9. "y": 1977.6670942306519,
  10. "wires": [
  11. [
  12. "f675c185.8d2cd"
  13. ]
  14. ]
  15. },
  16. {
  17. "id": "ecb53600.34a7c8",
  18. "type": "inject",
  19. "z": "eb3f51ed.bf6b5",
  20. "name": "Get IP",
  21. "topic": "ip",
  22. "payload": "eth0",
  23. "payloadType": "str",
  24. "repeat": "300",
  25. "crontab": "",
  26. "once": false,
  27. "onceDelay": "",
  28. "x": 153.00011444091797,
  29. "y": 1892.2225923538208,
  30. "wires": [
  31. [
  32. "cf91aac6.333838"
  33. ]
  34. ]
  35. },
  36. {
  37. "id": "cf91aac6.333838",
  38. "type": "exec",
  39. "z": "eb3f51ed.bf6b5",
  40. "command": "wget -qO- http://bot.whatismyipaddress.com/ ; echo",
  41. "addpay": false,
  42. "append": "",
  43. "useSpawn": "",
  44. "timer": "",
  45. "oldrc": false,
  46. "name": "Call IP - whatismyipaddress.com",
  47. "x": 403.0000877380371,
  48. "y": 1912.7224311828613,
  49. "wires": [
  50. [
  51. "537da3c4.b3950c"
  52. ],
  53. [],
  54. []
  55. ]
  56. },
  57. {
  58. "id": "537da3c4.b3950c",
  59. "type": "switch",
  60. "z": "eb3f51ed.bf6b5",
  61. "name": "Integrity check",
  62. "property": "payload",
  63. "propertyType": "msg",
  64. "rules": [
  65. {
  66. "t": "regex",
  67. "v": "\\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b",
  68. "vt": "str",
  69. "case": false
  70. },
  71. {
  72. "t": "else"
  73. }
  74. ],
  75. "checkall": "true",
  76. "repair": false,
  77. "outputs": 2,
  78. "x": 671.0001373291016,
  79. "y": 1902.7225933074951,
  80. "wires": [
  81. [
  82. "96b77044.dfc02"
  83. ],
  84. []
  85. ]
  86. },
  87. {
  88. "id": "f675c185.8d2cd",
  89. "type": "change",
  90. "z": "eb3f51ed.bf6b5",
  91. "name": "Godaddy",
  92. "rules": [
  93. {
  94. "t": "move",
  95. "p": "payload",
  96. "pt": "msg",
  97. "to": "godaddy",
  98. "tot": "msg"
  99. }
  100. ],
  101. "action": "",
  102. "property": "",
  103. "from": "",
  104. "to": "",
  105. "reg": false,
  106. "x": 973.1668510437012,
  107. "y": 1977.66676902771,
  108. "wires": [
  109. [
  110. "2195da1b.c9edd6"
  111. ]
  112. ]
  113. },
  114. {
  115. "id": "96b77044.dfc02",
  116. "type": "change",
  117. "z": "eb3f51ed.bf6b5",
  118. "name": "local",
  119. "rules": [
  120. {
  121. "t": "move",
  122. "p": "payload",
  123. "pt": "msg",
  124. "to": "local",
  125. "tot": "msg"
  126. }
  127. ],
  128. "action": "",
  129. "property": "",
  130. "from": "",
  131. "to": "",
  132. "reg": false,
  133. "x": 858.000186920166,
  134. "y": 1912.333595275879,
  135. "wires": [
  136. [
  137. "9a8a093e.52bd48"
  138. ]
  139. ]
  140. },
  141. {
  142. "id": "2195da1b.c9edd6",
  143. "type": "function",
  144. "z": "eb3f51ed.bf6b5",
  145. "name": "compare",
  146. "func": "msg.payload = msg.godaddy === msg.local.trim() ? \"yes\" : \"no\";\nreturn msg;",
  147. "outputs": 1,
  148. "noerr": 0,
  149. "x": 681.1667861938477,
  150. "y": 2036.000587463379,
  151. "wires": [
  152. [
  153. "15c0f8d.f3ff507"
  154. ]
  155. ]
  156. },
  157. {
  158. "id": "15c0f8d.f3ff507",
  159. "type": "switch",
  160. "z": "eb3f51ed.bf6b5",
  161. "name": "Not in sync",
  162. "property": "payload",
  163. "propertyType": "msg",
  164. "rules": [
  165. {
  166. "t": "eq",
  167. "v": "no",
  168. "vt": "str"
  169. },
  170. {
  171. "t": "else"
  172. }
  173. ],
  174. "checkall": "true",
  175. "repair": false,
  176. "outputs": 2,
  177. "x": 886.1667900085449,
  178. "y": 2034.0005836486816,
  179. "wires": [
  180. [
  181. "636cc25f.fe6a7c"
  182. ],
  183. []
  184. ]
  185. },
  186. {
  187. "id": "636cc25f.fe6a7c",
  188. "type": "api-call-service",
  189. "z": "eb3f51ed.bf6b5",
  190. "name": "Update Godaddy",
  191. "server": "b89bdbfd.f73988",
  192. "service_domain": "shell_command",
  193. "service": "",
  194. "data": "",
  195. "render_data": false,
  196. "mergecontext": "",
  197. "x": 1090.1667785644531,
  198. "y": 2029.3337593078613,
  199. "wires": [
  200. []
  201. ]
  202. },
  203. {
  204. "id": "9a8a093e.52bd48",
  205. "type": "change",
  206. "z": "eb3f51ed.bf6b5",
  207. "name": "Set URL",
  208. "rules": [
  209. {
  210. "t": "set",
  211. "p": "payload",
  212. "pt": "msg",
  213. "to": "subdomain.domain.com",
  214. "tot": "str"
  215. }
  216. ],
  217. "action": "",
  218. "property": "",
  219. "from": "",
  220. "to": "",
  221. "reg": false,
  222. "x": 660.1666946411133,
  223. "y": 1975.66676902771,
  224. "wires": [
  225. [
  226. "9ce2c290.c85b6"
  227. ]
  228. ]
  229. },
  230. {
  231. "id": "b89bdbfd.f73988",
  232. "type": "server",
  233. "z": "",
  234. "name": "Home Assistant",
  235. "legacy": false,
  236. "hassio": false,
  237. "rejectUnauthorizedCerts": true,
  238. "ha_boolean": "y|yes|true|on|home|open"
  239. }
  240. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement