{"_id":"@crusaider/node-red-contrib-vattenfall-tariff","_rev":"1-da60a8a3f828d6f33e2d7d35bf55c1fc","name":"@crusaider/node-red-contrib-vattenfall-tariff","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@crusaider/node-red-contrib-vattenfall-tariff","version":"1.0.0","description":"Node-RED node to apply the current electricity tariff from Vattenfall","scripts":{"test":"jest"},"author":{"name":"Jonas Andreasson"},"license":"MIT","devDependencies":{"@types/jest":"^29.5.4","@types/luxon":"^3.3.1","@types/nock":"^11.1.0","jest":"^29.6.4","nock":"^13.3.3"},"keywords":["node-red","vattenfall","tariff","power saver"],"repository":{"type":"git","url":"git+https://github.com/crusaider/node-red-contrib-vattenfall-tariff.git"},"node-red":{"version":">=3.0.0","nodes":{"vattenfall-tariff":"./src/vattenfall-tariff/vattenfall-tariff.js"}},"dependencies":{"luxon":"^3.4.2"},"gitHead":"8375e4b7a06fa0a286f1937815df9c20d8b563da","bugs":{"url":"https://github.com/crusaider/node-red-contrib-vattenfall-tariff/issues"},"homepage":"https://github.com/crusaider/node-red-contrib-vattenfall-tariff#readme","_id":"@crusaider/node-red-contrib-vattenfall-tariff@1.0.0","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-qXC/cuo148SeMNZplFgHuzAb2by/PSe6jBLItIj1RviraQIj0roFb/gGxhdhTK+xBxxYzf/8LpmZodwPDzfoeg==","shasum":"db16e09338614b0aa40fb04fefd0f758de4222ab","tarball":"https://registry.npmjs.org/@crusaider/node-red-contrib-vattenfall-tariff/-/node-red-contrib-vattenfall-tariff-1.0.0.tgz","fileCount":9,"unpackedSize":42995,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0jc8T/ZJlQ0ks05DKzbvQ/vZpvuECV4/I357jFbXrpgIgOm8Dt8hHkEmNfGVOgdZP3Ae8EcGDU6igT9aV77Mu6nA="}]},"_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-vattenfall-tariff_1.0.0_1693266052806_0.900536368223918"},"_hasShrinkwrap":false},"1.1.0":{"name":"@crusaider/node-red-contrib-vattenfall-tariff","version":"1.1.0","description":"Node-RED node to apply the current electricity tariff from Vattenfall","scripts":{"test":"jest","lint":"eslint src/** --ext .js","prepare":"husky install"},"author":{"name":"Jonas Andreasson"},"license":"MIT","devDependencies":{"@types/jest":"^29.5.4","@types/luxon":"^3.3.1","@types/memoizee":"^0.4.8","@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":"^8.0.0","jest":"^29.6.4","lint-staged":"^14.0.1","node-red":"^3.0.2","node-red-node-test-helper":"^0.3.2","prettier":"^3.0.3"},"keywords":["node-red","vattenfall","tariff","power saver"],"repository":{"type":"git","url":"git+https://github.com/crusaider/node-red-contrib-vattenfall-tariff.git"},"node-red":{"version":">=3.0.0","nodes":{"vattenfall-tariff":"./src/vattenfall-tariff/vattenfall-tariff.js"}},"dependencies":{"luxon":"^3.4.2","memoizee":"^0.4.15","node-fetch":"^2.7.0"},"engines":{"node":">=14.0.0"},"lint-staged":{"*.js":"eslint --cache --fix","*.{js,css,md}":"prettier --write"},"bugs":{"url":"https://github.com/crusaider/node-red-contrib-vattenfall-tariff/issues"},"homepage":"https://github.com/crusaider/node-red-contrib-vattenfall-tariff#readme","_id":"@crusaider/node-red-contrib-vattenfall-tariff@1.1.0","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-CCzfQnao0Ej+wMkDPPpRFEUsV0enFus9keIrTwh8jrQSoLfYUfVkA3yO/YNJTrDwK1BEPB8601RfQpe0VP6kiw==","shasum":"5ba925d2d6085f3043c2625ea68145135ce3ac62","tarball":"https://registry.npmjs.org/@crusaider/node-red-contrib-vattenfall-tariff/-/node-red-contrib-vattenfall-tariff-1.1.0.tgz","fileCount":12,"unpackedSize":45324,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDsep12rSz22VKoPJNwX6ds+aDdsKYIT5B10cog2vRGdAiEAjRfhM9kGSIjVYZZ4N2T1X/XldSM2eFwrq2wIf7ftOYQ="}]},"_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-vattenfall-tariff_1.1.0_1694645406080_0.3852603463209989"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-28T23:40:52.743Z","1.0.0":"2023-08-28T23:40:53.034Z","modified":"2023-09-13T22:50:06.431Z","1.1.0":"2023-09-13T22:50:06.245Z"},"maintainers":[{"name":"crusaider","email":"jonas.m.andreasson@gmail.com"}],"description":"Node-RED node to apply the current electricity tariff from Vattenfall","homepage":"https://github.com/crusaider/node-red-contrib-vattenfall-tariff#readme","keywords":["node-red","vattenfall","tariff","power saver"],"repository":{"type":"git","url":"git+https://github.com/crusaider/node-red-contrib-vattenfall-tariff.git"},"author":{"name":"Jonas Andreasson"},"bugs":{"url":"https://github.com/crusaider/node-red-contrib-vattenfall-tariff/issues"},"license":"MIT","readme":"# node-red-contrib-vattenfall-tariff\n\n## Vattenfall Tariff Node Red Node\n\n![Alt text](example-flow.png \"Example flow\")\n\n## Description\n\nAdds a fixed amount to the price data based on the time of day and month of the year and if the day is a working det or not, following the Vattenfall time tariff.\n\n### Inputs\n\n: _payload.priceData_ (Array) : A array of price data objects. Each object should have a start and a value property.\n\n### Outputs\n\n: payload.priceData (Array) : The input array with the value property adjusted based on the time of day and month of the year.\n\n### Details\n\nThe node expects an array of price data objects. Each object should have a start and a value property. The start property should\nbe a Date object. The value property should be a number. The node will add a fixed amount to the value property based on the time\nof day and month of the year and if it is a working day or not, following the Vattenfall tariff. Any other properties in the input\nobjects will be passed through to the output objects.\n\nThe price data shape is combatible with the output of the `ps-receive-price` node from the `node-red-contrib-power-saver` package.\n\nThe node has three configuration properties:\n\n- Name : The name of the node.\n- High Tariff : The amount to add to the value property during the high tariff period.\n- Low Tariff : The amount to add to the value property during the low tariff period.\n\nThe node will output an array of price data objects. Each object will have a start and a value property. The start property will\nbe a Date object. The value property will be a number. Any other properties in the input objects will be passed through to the\noutput objects.\n\nWhen calculating the price data the node will use a public API to decide if the current day is a working day or not why the node will not work in a offline environment.\n\nThe high tariff period is from 06:00 to 22:00 Europe/Stockholm working days from 1 November to 31 March. All other times are low tariff.\n\n### References\n\n- [Power Saver](https://powersaver.no/)\n- [Vattenfall Tariff Price List](https://www.vattenfalleldistribution.se/kund-i-elnatet/elnatspriser/elnatspriser-och-avtalsvillkor/)\n- [Svenska Dagar API](https://api.dryg.net/)\n","readmeFilename":"README.md"}