{"_id":"@crusaider/node-red-contrib-leakbot","_rev":"1-a78253ec8447a5c4df9554262b717180","name":"@crusaider/node-red-contrib-leakbot","description":"A set of nodes allowing communication with the Leakbot API","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@crusaider/node-red-contrib-leakbot","version":"1.0.0","keywords":["node-red","leakbot","api"],"author":{"name":"Jonas Andreasson"},"license":"MIT","_id":"@crusaider/node-red-contrib-leakbot@1.0.0","maintainers":[{"name":"crusaider","email":"jonas.m.andreasson@gmail.com"}],"homepage":"https://github.com/crusaider/node-red-contrib-leakbot#readme","bugs":{"url":"https://github.com/crusaider/node-red-contrib-leakbot/issues"},"dist":{"shasum":"c98e04110005f68cabff961e00e61deeabaa388c","tarball":"https://registry.npmjs.org/@crusaider/node-red-contrib-leakbot/-/node-red-contrib-leakbot-1.0.0.tgz","fileCount":16,"integrity":"sha512-aZ6WqxtsA+1Ra4L8i5DFHuLRz3Q2X1iNL1VoCyAA8iIv4BaleF+d4og57arr8ODUu51/krUCBqmckTZtArPRcQ==","signatures":[{"sig":"MEYCIQDZ4w4uMwvVx6gFkqkBYbcazjWLEW4qyRTmNnFAJXCzewIhANJ+vPBhyb5spLJs4ZEKrcihvxTTNaegsiWp1fNBK1eM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56189},"engines":{"node":">=14.0.0"},"gitHead":"693f8392e85de593025b029139058cf190cb9709","scripts":{"lint":"eslint src/** --ext .js","test":"jest --passWithNoTests","prepare":"husky"},"_npmUser":{"name":"crusaider","email":"jonas.m.andreasson@gmail.com"},"node-red":{"nodes":{"leakbot-credentials":"./src/nodes/leakbot-credentials/leakbot-credentials.js","leakbot-list-devices":"./src/nodes/leakbot-list-devices/leakbot-list-devices.js","leakbot-device-status":"./src/nodes/leakbot-device-status/leakbot-device-status.js"},"version":">=3.1.0"},"repository":{"url":"git+https://github.com/crusaider/node-red-contrib-leakbot.git","type":"git"},"_npmVersion":"10.7.0","description":"A set of nodes allowing communication with the Leakbot API","directories":{},"lint-staged":{"*.js":"eslint --cache --fix","*.{js,css,md,html}":"prettier --write"},"_nodeVersion":"20.15.0","dependencies":{"@crusaider/leakbot-api":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.4","husky":"^9.0.11","eslint":"^8.49.0","node-red":"^3.0.2","prettier":"^3.0.3","@types/jest":"^29.5.4","lint-staged":"^15.2.7","@types/node-red":"^1.3.1","eslint-plugin-n":"^16.1.0","fetch-mock-jest":"^1.5.1","eslint-plugin-jest":"^27.2.3","eslint-plugin-import":"^2.28.1","eslint-plugin-promise":"^6.1.1","eslint-config-prettier":"^9.0.0","eslint-config-standard":"^17.1.0","node-red-node-test-helper":"^0.3.2","@types/node-red-node-test-helper":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-leakbot_1.0.0_1719945951621_0.17900043966535528","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@crusaider/node-red-contrib-leakbot","version":"1.1.0","description":"A set of nodes allowing communication with the Leakbot API","scripts":{"test":"jest --passWithNoTests","lint":"eslint src/** --ext .js","prepare":"husky"},"author":{"name":"Jonas Andreasson"},"license":"MIT","devDependencies":{"@types/jest":"^29.5.4","@types/node-red":"^1.3.1","@types/node-red-node-test-helper":"^0.3.0","eslint":"^8.49.0","eslint-config-prettier":"^9.0.0","eslint-config-standard":"^17.1.0","eslint-plugin-import":"^2.28.1","eslint-plugin-jest":"^27.2.3","eslint-plugin-n":"^16.1.0","eslint-plugin-promise":"^6.1.1","fetch-mock-jest":"^1.5.1","husky":"^9.0.11","jest":"^29.6.4","lint-staged":"^15.2.7","node-red":"^3.0.2","node-red-node-test-helper":"^0.3.2","prettier":"^3.0.3"},"keywords":["node-red","leakbot","api"],"repository":{"type":"git","url":"git+https://github.com/crusaider/node-red-contrib-leakbot.git"},"node-red":{"version":">=3.1.0","nodes":{"leakbot-credentials":"./src/nodes/leakbot-credentials/leakbot-credentials.js","leakbot-list-devices":"./src/nodes/leakbot-list-devices/leakbot-list-devices.js","leakbot-device-status":"./src/nodes/leakbot-device-status/leakbot-device-status.js","leakbot-water-usage":"./src/nodes/leakbot-water-usage/leakbot-water-usage.js"}},"engines":{"node":">=14.0.0"},"dependencies":{"@crusaider/leakbot-api":"^1.0.0"},"lint-staged":{"*.js":"eslint --cache --fix","*.{js,css,md,html}":"prettier --write"},"_id":"@crusaider/node-red-contrib-leakbot@1.1.0","gitHead":"5fa6a529886757f7c432bd112a092e13a78287e5","bugs":{"url":"https://github.com/crusaider/node-red-contrib-leakbot/issues"},"homepage":"https://github.com/crusaider/node-red-contrib-leakbot#readme","_nodeVersion":"20.15.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-TzAHHBUqZKl9I/zSBrkS5q5dV6LERtb6cT/Ljo2qBQYmnvX0b/clhsOe49HfZhKTJ55r9LGFHQLf2DnxIb/fjA==","shasum":"1d6b821e5b78dc663753cf0ce288a735c2b431c2","tarball":"https://registry.npmjs.org/@crusaider/node-red-contrib-leakbot/-/node-red-contrib-leakbot-1.1.0.tgz","fileCount":17,"unpackedSize":71555,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8BLaa4FnthbYssrEAFcG2wK55dJ+yiFhNS0CRWqJqNAIgEGJtcZbmRr5vmnRYkgtB+OiqAh8GEyS3zmpsnni4rhA="}]},"_npmUser":{"name":"crusaider","email":"jonas.m.andreasson@gmail.com"},"directories":{},"maintainers":[{"name":"crusaider","email":"jonas.m.andreasson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-red-contrib-leakbot_1.1.0_1720120907253_0.0022961721309096017"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-02T18:45:51.495Z","modified":"2024-07-04T19:21:47.598Z","1.0.0":"2024-07-02T18:45:51.801Z","1.1.0":"2024-07-04T19:21:47.452Z"},"maintainers":[{"name":"crusaider","email":"jonas.m.andreasson@gmail.com"}],"author":{"name":"Jonas Andreasson"},"repository":{"type":"git","url":"git+https://github.com/crusaider/node-red-contrib-leakbot.git"},"keywords":["node-red","leakbot","api"],"license":"MIT","homepage":"https://github.com/crusaider/node-red-contrib-leakbot#readme","bugs":{"url":"https://github.com/crusaider/node-red-contrib-leakbot/issues"},"readme":"# node-red-contrib-leakbot\n\n## Leakbot Node Red Nodes\n\n![Alt text](example-flow.png \"Example flow\")\n\n## Description\n\nA set of nodes allowing communication with the [Leakbot](https://leakbot.io) API.\n\n## Nodes\n\n### List Leakbot Devices\n\nGet the devices avialble to the user.\n\n#### Inputs\n\nThe node disrespects any input. It will only serve as a trigger to get the status of the device.\n\n#### Outputs\n\nThe node will output a array of objects containing information of the avilable devices.\n\n### Leakbot Device Status\n\nGet the status of a Leakbot device. Note that the device reports it's status to the cloud about once every 24 hours.\n\n#### Inputs\n\nThe node disrespects any input. It will only serve as a trigger to get the status of the device.\n\n#### Outputs\n\nThe node will output the status of the device of witch the id have been specified in the settings as a object.\n\n#### Details\n\nThe id of the device needs to be provided. This can be found by using the List Leakbot Devices node. In the output of that node there will be a array of objects containing the devices. Each object will have a id property. This id should be used in the Device ID field of this node.\n\n### Leakbot Water Usage\n\nGet the water usage data of a Leakbot device.\n\n#### Inputs\n\nThe node disrespects any input. It will only serve as a trigger to get the status of the device.\n\n#### Outputs\n\nThe node will output the water usage stats of the device of witch the id have been specified in the settings as a object.\n\n#### Details\n\nThe id of the device needs to be provided. This can be found by using the List Leakbot Devices node. In the output of that node there will be a array of objects containing the devices. Each object will have a id property. This id should be used in the Device ID field of this node.\n\n### Leakbot Credentials\n\nStores the credentials for the Leakbot API.\n\n#### Note\n\nLeakbot Only Allows One Login: If you use theese nodes the token your mobile app is connected to becomes invalid and you get logged out. This happens also if you re-log back into the app it invalidates the token for the nodes, however the nodes should automatically re-authenticate.\n\n## Disclaimer\n\nThis is not an official Leakbot product. This is a community project and is not affiliated with Leakbot. Use at your own risk.\n","readmeFilename":"README.md"}