{"_id":"@alheimsins/bmw-is-connected-to-charger","_rev":"2-10f41a1d79e17983f3e35e1c185ac9c6","name":"@alheimsins/bmw-is-connected-to-charger","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@alheimsins/bmw-is-connected-to-charger","version":"1.0.0","description":"Answers the question: is my BMW connected to a charger?","main":"index.js","type":"module","publishConfig":{"access":"public"},"scripts":{"test":"standard && ava","standard-fix":"standard --fix","refresh":"rm -rf node_modules && rm package-lock.json && npm i"},"repository":{"type":"git","url":"git+https://github.com/Alheimsins/bmw-is-connected-to-charger.git"},"keywords":[],"author":{"name":"Geir Gåsodden","email":"geir.gasodden@pythonia.no","url":"https://github.com/zrrrzzt"},"license":"MIT","bugs":{"url":"https://github.com/Alheimsins/bmw-is-connected-to-charger/issues"},"homepage":"https://github.com/Alheimsins/bmw-is-connected-to-charger#readme","engines":{"node":">=16.15.0"},"devDependencies":{"ava":"4.2.0","standard":"17.0.0"},"dependencies":{"axios":"0.27.2"},"gitHead":"9b5b1ae2ecc7816afdf27291130d9a71b83755f2","_id":"@alheimsins/bmw-is-connected-to-charger@1.0.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-2pkhmNQKHkK1gMXflBQSQx0rrbYBJk303qq5QUk4iL1Q0Ha1jHZlwpQp63ReHUl9jLfdH3ee/zyhANMA+y9aWA==","shasum":"ba12dd4f73ba73f801ab9da76b24e8d001c5c5d5","tarball":"https://registry.npmjs.org/@alheimsins/bmw-is-connected-to-charger/-/bmw-is-connected-to-charger-1.0.0.tgz","fileCount":8,"unpackedSize":7399,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICqAcDydU6Lsq0RqmQuX3TLynkKylDAbRRLAI124DAwcAiAobUnD37tU7ZhBN75Zh+g0na+oFakYhja4F31+INumuw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiigV5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZKQ/+OMGZNqEok4o23q5fNGEuIffFFMo4Ag8WpGSO1DTkZTL3dk+3\r\nZ/A7/EFEI+sT1QkJi2Bfr+op8F8f+FNIVrE3RIgGhJKfURvwmDCoA+cj5dHY\r\nBeIncgfIcPLgo9Z1kSTfl4TOejFTd9HU1udKpxAIXL7J3fAfSgmF+ojRF7Cc\r\nBwGdt35am+LnvhKsXUoAP6VBmaTPtBpKgiAuaCGmIZf6mxi+cgRFQp1LjaoW\r\nye92q0DLaf2KMAY61pTEZyXCGaMDf1FGyr9jX3Y1tyTZFetluJaaEWcyca8t\r\niXiCUWp9PsnDhTYzMe566CNy9t+VBm7dQW/4ZPH5NJrnOX1rxOlJoaUYoc5n\r\nHw6my7mOcGTBWsE8i/htUYjmIYo0k3UdDDNyQ0oqtuwRRenpno8odsB5eJVv\r\nWVXOd1l/ODlAaebKnbX2jNEdx3VAVUql71XoCtsKe+shFLrwz6oRSWBU+k5i\r\nnHZ5138VLzTQudR4QYlhUev7nYpeza2AXqXDJVynfQWpZDXD/D2opdT59o24\r\nxkKoQAffILg9f+GLBuhYNu2LyCPNiFeI0oR2atugjZK+36OvA5P/duF9dHyU\r\nBP/GIZdOMZRaSesgsHAPBapjsOo2K4azQTMW4Zy22yWRmGERtw6kYjaBtwN2\r\n+6P37Eed1yU655+4BFidznaHFc81o5NISS0=\r\n=YA/H\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"zrrrzzt","email":"geir.gasodden@pythonia.no"},"directories":{},"maintainers":[{"name":"zrrrzzt","email":"geir.gasodden@pythonia.no"},{"name":"maccyber","email":"jonas.enge@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bmw-is-connected-to-charger_1.0.0_1653212536788_0.06698752301882216"},"_hasShrinkwrap":false},"1.0.1":{"name":"@alheimsins/bmw-is-connected-to-charger","version":"1.0.1","description":"Answers the question: is my BMW connected to a charger?","main":"index.js","type":"module","publishConfig":{"access":"public"},"scripts":{"test":"standard && ava","standard-fix":"standard --fix","refresh":"rm -rf node_modules && rm package-lock.json && npm i"},"repository":{"type":"git","url":"git+https://github.com/Alheimsins/bmw-is-connected-to-charger.git"},"keywords":[],"author":{"name":"Geir Gåsodden","email":"geir.gasodden@pythonia.no","url":"https://github.com/zrrrzzt"},"license":"MIT","bugs":{"url":"https://github.com/Alheimsins/bmw-is-connected-to-charger/issues"},"homepage":"https://github.com/Alheimsins/bmw-is-connected-to-charger#readme","engines":{"node":">=16.15.0"},"devDependencies":{"ava":"4.2.0","standard":"17.0.0"},"dependencies":{"axios":"0.27.2"},"gitHead":"a5a5463c2e361cace471bd03984fb62c94653b24","_id":"@alheimsins/bmw-is-connected-to-charger@1.0.1","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-eht+xXtti89DALJuLgqzM9xsmDTWThpP1NbiaW8CGVNrw4DhW8g606X9eoa5fnSAcay1ZI1R5PouuXfu/5s/QQ==","shasum":"06097ec09744ed4554a483ef82edc28fb91db526","tarball":"https://registry.npmjs.org/@alheimsins/bmw-is-connected-to-charger/-/bmw-is-connected-to-charger-1.0.1.tgz","fileCount":8,"unpackedSize":7428,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEGQGsswvD8viJFGkjmyLxScgrCc6dTsfPJPXZ3Exc1AiEAq7LiT5aM/SmWM7k5UuJTZl6ZJ8GNkzxnzrbO2PmavGU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijNjkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpsqw//SoOoXbdsxodvPuezwVZUQSQ4vT0HddcgsWMvpzNWyOKTwrTA\r\nYA+Id9IKyZwGXZ6teb2HmADeSI7mnZ9364NmCI+fkOlmW22j3anxORD6EcMg\r\ngVUdyapZeYvv8cdTpBBPQfX524GX2APTe5kzmkodFBGCkbnF+j9SJo4FOSuc\r\nC/TjMRcV9c1UGXhW46MwWhPPJEPskuwYx5DnHMOTIz1a/B8BHhR8ffCYNAIQ\r\noG2T4Yf6ooaq79Y1RHUZ/BsHxyG6OkNzkQyFBnNORbHLuthioJdH2kJMMFrR\r\nIV1+tSgTKTIXL3ZbtwjcE2ZcHqdPSpIonDIccfFsy35UTqFDsGEQBC9+I04b\r\n3Vf7OEfdtIKQH+87nAGVKgD64z9mgpMHy8uJxffGFjip7SIcJp59MPrcaTZ3\r\nlL+WCTPatkMCaek7G6gsexIJz9VOXNmQ4fejOjZVsb4iFG44+v9ekyajPoew\r\n4PtWACvjJxQImL6UewcYwKYmauU6Pyxx0ZzNGHhv8bgtZv7uB9kqxPtOHZYP\r\noNanzJbuLmMAmNZjxr7t7opgGir1Ku2t+cmFUiUUnutp8A52RIwgMcb/jxXn\r\ncjrO6Gf2AvPY8NawEdrENWho9ycLPBSLsFs1YMik7VPWMYVQkrHzHbqtxztV\r\nBUdx5G9fwyxGOBA6Zh1iFRvoL4gx2cy6Spw=\r\n=hrBr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"zrrrzzt","email":"geir.gasodden@pythonia.no"},"directories":{},"maintainers":[{"name":"zrrrzzt","email":"geir.gasodden@pythonia.no"},{"name":"maccyber","email":"jonas.enge@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bmw-is-connected-to-charger_1.0.1_1653397732280_0.7152688288547473"},"_hasShrinkwrap":false},"1.0.2":{"name":"@alheimsins/bmw-is-connected-to-charger","version":"1.0.2","description":"Answers the question: is my BMW connected to a charger?","main":"index.js","type":"module","publishConfig":{"access":"public"},"scripts":{"test":"standard && ava","standard-fix":"standard --fix","refresh":"rm -rf node_modules && rm package-lock.json && npm i"},"repository":{"type":"git","url":"git+https://github.com/Alheimsins/bmw-is-connected-to-charger.git"},"keywords":[],"author":{"name":"Geir Gåsodden","email":"geir.gasodden@pythonia.no","url":"https://github.com/zrrrzzt"},"license":"MIT","bugs":{"url":"https://github.com/Alheimsins/bmw-is-connected-to-charger/issues"},"homepage":"https://github.com/Alheimsins/bmw-is-connected-to-charger#readme","engines":{"node":">=16.15.1"},"devDependencies":{"ava":"4.3.0","standard":"17.0.0"},"dependencies":{"axios":"0.27.2"},"gitHead":"ebdd38b2881a47ac6f58d164bcfadd3148ce4057","_id":"@alheimsins/bmw-is-connected-to-charger@1.0.2","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-bPAqSSs4/74fh3Asztb0QTPLM5vbhKWoPJpZtpRP347I0KldpVFHfQk/AOPILj9C4CZjVVv3I6qbI1hCpoxebQ==","shasum":"12e47cc6161c7c2ebe33a5f7a56e549915092a5b","tarball":"https://registry.npmjs.org/@alheimsins/bmw-is-connected-to-charger/-/bmw-is-connected-to-charger-1.0.2.tgz","fileCount":9,"unpackedSize":7773,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9oQ/ZPug3TO0cFRh1n1owHdUjNb1elmTSYXe624kgMgIgLUqrRiP02jYMeqeb5eoWdMeSvmKAgvqun2x8s6AXwzA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimwZTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZoQ/+Jwio7Wwu7mgVVpY1ZRIFa9srrtLTLWlvinEIV+zhEdgQYohI\r\n5dFMq9RhvHI7UfLW25YMSj/2U0h427ETVQHvgWZmEEaTDU6gcb68uYaztKto\r\nTUzeR+ji08y+lJLCKLlnta6lCblEbybJEynFQpRrin8CgaRuDc2Us1dqy63a\r\nI31hVgSw2zqcDFADAsm1INJeyXF8aPxaIrA7tHyRrqzPbgrYN9RRTxQV7JkO\r\nnwZHf9n76jDHtx+QJKXC7nL3b9mmVX3LotK8TlqaCGlUdk9CSwF11UaehmoC\r\nFuGDkjIbf8BB18wyfkzvr2dKzMuInCvIHE8puxE2nxC1WcxF9fYRtg/002ok\r\n8CA6J9zQCbLmaGva72dE2lIaF0gvfTFzepnTaqCmPPEi8V1ZNC+2fOhhO0lv\r\naXTVx/FtbWNxgye36ZqZR2XBWZQrLg5Qr6R+beJsdJ3iT0KpOwUuFgEqRV+j\r\nHj9Cl1KbZOhzrl/hN43ozKp2ucMDhxjFx0MgY18+h3fhwQ79/04q/D0BlOk+\r\nSvZkT4DsCZXezxSdiZkORdIOwgCFHcw9ov/jZH8bN8y5z7XSbrV5cpoLNOAo\r\n7T9mUjlHk6BAYFW40dKEwwbE6ORYS46KNHcjzYcrIIvKdKpA1xcOXQNVvhEc\r\nYdmI45vIhvBIEn2OGQxhY9Z5Ep0moVuTYW8=\r\n=VqRO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"zrrrzzt","email":"geir.gasodden@pythonia.no"},"directories":{},"maintainers":[{"name":"zrrrzzt","email":"geir.gasodden@pythonia.no"},{"name":"maccyber","email":"jonas.enge@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bmw-is-connected-to-charger_1.0.2_1654326867718_0.46721904247270163"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-22T09:42:16.724Z","1.0.0":"2022-05-22T09:42:16.983Z","modified":"2022-06-04T07:14:27.963Z","1.0.1":"2022-05-24T13:08:52.392Z","1.0.2":"2022-06-04T07:14:27.888Z"},"maintainers":[{"name":"zrrrzzt","email":"geir.gasodden@pythonia.no"},{"name":"maccyber","email":"jonas.enge@gmail.com"}],"description":"Answers the question: is my BMW connected to a charger?","homepage":"https://github.com/Alheimsins/bmw-is-connected-to-charger#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/Alheimsins/bmw-is-connected-to-charger.git"},"author":{"name":"Geir Gåsodden","email":"geir.gasodden@pythonia.no","url":"https://github.com/zrrrzzt"},"bugs":{"url":"https://github.com/Alheimsins/bmw-is-connected-to-charger/issues"},"license":"MIT","readme":"[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\n# bmw-is-connected-to-charger\n\nAnswers the question: is my BMW connected to a charger?\n\n# Usage\n\n```JavaScript\nimport isConnectedToCharger from '@alheimsins/bmw-is-connected-to-charger'\n\nconst username = '<connected-drive-username>'\nconst password = '<connected-drive-password>'\n\nconst data = await isConnectedToCharger({ username, password })\n\nconsole.log(data)\n\n```\n\nThis will return\n\n```JavaScript\n{\n  isConnected: false,\n  batteryLevel: 54,\n  location: {\n    coordinates: {\n      latitude: <your-latitude>,\n      longitude: <your-longitude>\n    },\n    address: {\n      formatted: <your-formatted-address>\n    },\n    heading: 295\n  }\n}\n```\n\n# Limitations\n\n- If you have multiple cars added to your Connected Drive account, this script will only return the location of the first car.\n- To get the location of your car, you need to have your share location permission activated.\n\n# Disclaimer\n\nThis module is not affiliated with or endorsed by BMW Group. It might break any time.\n\n# Related\n\n- [calculate-cheapest-charging-schedule](https://github.com/Alheimsins/calculate-cheapest-charging-schedule) Simple module for calculating the cheapest charging schedule for your EV\n- [tibber-get-price-info](https://github.com/Alheimsins/tibber-get-price-info) Retrieve price info from tibber for your current subscription\n- [zaptec-go-start-stop](https://github.com/Alheimsins/zaptec-go-start-stop) A module for starting and stopping your Zaptec Go EV charger\n- [leaf-connect](https://github.com/Alheimsins/leaf-connect) Node.js client library for the Nissan Leaf API\n\n# Inspiration\n\n- [bimmer-connected](https://github.com/bimmerconnected/bimmer_connected) An amazing open source library\n\n# License\n\n[MIT](LICENSE)\n\n## About\n\nCreated with ❤ for [Alheimsins](https://alheimsins.net)\n\n<img src=\"https://image.ibb.co/dPH08G/logo_black.png\" height=\"150px\" width=\"150px\" />\n","readmeFilename":"README.md"}