{"_id":"@afiether/gateware-raspius","_rev":"1-dc2ad279cdec7d3bb40e68f279d49151","name":"@afiether/gateware-raspius","description":"App that runs in daemon on a local network computer and reports to Gateware server on the internet","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.3":{"name":"@afiether/gateware-raspius","version":"1.0.3","author":{"name":"Andrei-Flavius IVAN"},"license":"SEE LICENSE IN LICENSE","_id":"@afiether/gateware-raspius@1.0.3","maintainers":[{"name":"afivan","email":"af.ivan@live.com"}],"apps":[{"name":"raspius","script":"start-prod.sh","merge_logs":true,"max_memory_restart":"200M"}],"dist":{"shasum":"c9f5b48b74535e00044a11c1a52ebe8e323b0e00","tarball":"https://registry.npmjs.org/@afiether/gateware-raspius/-/gateware-raspius-1.0.3.tgz","fileCount":316,"integrity":"sha512-TCMV4DIywmP0cFjxIlNN/B+5w3S7CKkGxjo6X0ysZK+gyymBtX1Z5SS2SenuC6AgpVsK2Nn9JfzNl5TXxJuw/Q==","signatures":[{"sig":"MEUCIQCiRIqiiD1trOv90E13rJ9rB29uStvDmowfuQWX/8aCgAIgREjVRiuU6oh/xWOFImIsKYHDp6Hs4GSMCgTq/gHDxys=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7421947},"jest":{"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","coverageDirectory":"../coverage","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"_from":"file:.-1.0.3-prod.tar.gz","config":{"internetLocationId":""},"private":false,"scripts":{"lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","test":"jest","build":"nest build","start":"nest start","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","prebuild":"rimraf dist","test:cov":"jest --coverage","test:e2e":"jest --config ./test/jest-e2e.json","start:dev":"nest start --watch","start:prod":"node dist/main","test:debug":"node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand","test:watch":"jest --watch","start:debug":"nest start --debug --watch","printVersion":"echo $npm_package_version > version.txt","printVersion:win":"echo %npm_package_version% > version.txt"},"_npmUser":{"name":"afivan","email":"af.ivan@live.com"},"_resolved":"/builds/afiether/gateware-raspius/.-1.0.3-prod.tar.gz","_integrity":"sha512-TCMV4DIywmP0cFjxIlNN/B+5w3S7CKkGxjo6X0ysZK+gyymBtX1Z5SS2SenuC6AgpVsK2Nn9JfzNl5TXxJuw/Q==","_npmVersion":"10.5.0","description":"App that runs in daemon on a local network computer and reports to Gateware server on the internet","directories":{},"_nodeVersion":"20.12.2","dependencies":{"hbs":"^4.1.2","pmx":"^1.6.7","rxjs":"^7.2.0","yaml":"1.10.2","axios":"^0.21.1","rimraf":"^3.0.2","express":">=4.0.0","js-yaml":"^4.1.0","webpack":"^5.0.0","hbs-utils":"^0.0.4","node-onvif":"^0.1.7","@nestjs/core":"^10.0.0","@nestjs/common":"^10.0.0","@nestjs/config":"^3.2.1","@nestjs/swagger":"^7.3.1","class-validator":"^0.11.1 || ^0.12.0 || ^0.13.0","typescript-guid":"^1.0.3","@nestjs/schedule":"^4.0.2","reflect-metadata":"^0.1.13","socket.io-client":"^4.6.1","class-transformer":"^0.2.0 || ^0.3.0 || ^0.4.0","swagger-ui-express":"^4.1.6","@nestjs/event-emitter":"^2.0.4","@nestjs/platform-express":"^10.0.0"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72","devDependencies":{"jest":"27.0.6","eslint":"^7.30.0","ts-jest":"^27.0.3","ts-node":"^10.0.0","prettier":"^2.3.2","supertest":"^6.1.3","ts-loader":"^9.2.3","typescript":"^4.3.5","@nestjs/cli":"^10.0.0","@types/cron":"^1.7.3","@types/jest":"^26.0.24","@types/node":"^16.0.0","@types/express":"^4.17.13","@types/js-yaml":"^4.0.3","tsconfig-paths":"^3.10.1","@nestjs/testing":"^10.0.0","@types/supertest":"^2.0.11","@nestjs/schematics":"10.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","@typescript-eslint/parser":"^4.28.2","@typescript-eslint/eslint-plugin":"^4.28.2"},"_npmOperationalInternal":{"tmp":"tmp/gateware-raspius_1.0.3_1718376045076_0.001928098463196637","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@afiether/gateware-raspius","version":"1.0.5","description":"App that runs in daemon on a local network computer and reports to Gateware server on the internet","author":{"name":"Andrei-Flavius IVAN"},"private":false,"license":"SEE LICENSE IN LICENSE","scripts":{"prebuild":"rimraf dist","build":"nest build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","start":"nest start","start:dev":"nest start --watch","start:debug":"nest start --debug --watch","start:prod":"node dist/main","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","test":"jest","test:watch":"jest --watch","test:cov":"jest --coverage","test:debug":"node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand","test:e2e":"jest --config ./test/jest-e2e.json","printVersion":"echo $npm_package_version > version.txt","printVersion:win":"echo %npm_package_version% > version.txt"},"dependencies":{"@nestjs/common":"^10.0.0","@nestjs/config":"^3.2.1","@nestjs/core":"^10.0.0","@nestjs/event-emitter":"^2.0.4","@nestjs/platform-express":"^10.0.0","@nestjs/schedule":"^4.0.2","@nestjs/swagger":"^7.3.1","axios":"^0.21.1","class-transformer":"^0.2.0 || ^0.3.0 || ^0.4.0","class-validator":"^0.11.1 || ^0.12.0 || ^0.13.0","express":">=4.0.0","hbs":"^4.1.2","hbs-utils":"^0.0.4","js-yaml":"^4.1.0","node-onvif":"^0.1.7","pmx":"^1.6.7","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^7.2.0","socket.io-client":"^4.6.1","swagger-ui-express":"^4.1.6","typescript-guid":"^1.0.3","webpack":"^5.0.0","yaml":"1.10.2"},"devDependencies":{"@nestjs/cli":"^10.0.0","@nestjs/schematics":"10.0.0","@nestjs/testing":"^10.0.0","@types/cron":"^1.7.3","@types/express":"^4.17.13","@types/jest":"^26.0.24","@types/js-yaml":"^4.0.3","@types/node":"^16.0.0","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.28.2","@typescript-eslint/parser":"^4.28.2","eslint":"^7.30.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jest":"27.0.6","prettier":"^2.3.2","supertest":"^6.1.3","ts-jest":"^27.0.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","tsconfig-paths":"^3.10.1","typescript":"^4.3.5"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"apps":[{"merge_logs":true,"error_file":"/dev/null","out_file":"/dev/null","max_memory_restart":"200M","script":"start-prod.sh","name":"gateware-raspius"}],"config":{"internetLocationId":""},"packageManager":"yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72","_id":"@afiether/gateware-raspius@1.0.5","_integrity":"sha512-8BDnfR0XpipIde8l48n22zMCkZ+AwoEWhEgH6CSdzGfkZNkMvty7jfXBQtQEO02Jvp5cN77EvGwrXQ0zx6QycA==","_resolved":"/builds/afiether/gateware-raspius/gateware-raspius-1.0.5-prod.tar.gz","_from":"file:gateware-raspius-1.0.5-prod.tar.gz","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-8BDnfR0XpipIde8l48n22zMCkZ+AwoEWhEgH6CSdzGfkZNkMvty7jfXBQtQEO02Jvp5cN77EvGwrXQ0zx6QycA==","shasum":"40998db1b7a39c66b1996eb5368227123cd6da2e","tarball":"https://registry.npmjs.org/@afiether/gateware-raspius/-/gateware-raspius-1.0.5.tgz","fileCount":316,"unpackedSize":7422020,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCl32+5MyrhPvrcDklZNrwes217yBFLbrqDmRldNvH8DAIgUI9YwIdIfftNGblF1BbcT9U6z00OQL49NnoVk6wpM2A="}]},"_npmUser":{"name":"afivan","email":"af.ivan@live.com"},"directories":{},"maintainers":[{"name":"afivan","email":"af.ivan@live.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gateware-raspius_1.0.5_1718647168616_0.4074780579062971"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-14T14:40:44.954Z","modified":"2024-06-17T17:59:29.103Z","1.0.3":"2024-06-14T14:40:45.311Z","1.0.5":"2024-06-17T17:59:28.903Z"},"maintainers":[{"name":"afivan","email":"af.ivan@live.com"}],"author":{"name":"Andrei-Flavius IVAN"},"license":"SEE LICENSE IN LICENSE","readme":"<p align=\"center\">\n  <a href=\"http://afiware.afivan.com/\" target=\"blank\"><img src=\"https://afiware.afivan.com/icon-full.png\" width=\"80\" alt=\"Afiware Logo\" /></a>\n</p>\n\n  <p align=\"center\">Raspius is the client app required for <a href=\"http://afiware.afivan.com/\" target=\"blank\">Afiware</a> app to detect internet connectivity problems</p>\n    <p align=\"center\">\n    <a href=\"https://afivan.com\"><b>Blog</b></a>\n    <br />\n    <a href=\"https://www.buymeacoffee.com/afivan\" target=\"_blank\"><img src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" ></a>\n</p>\n\n## Description\n\nThis application is developed with the [Nest](https://github.com/nestjs/nest) framework. In order to run it requires [PM2](https://pm2.keymetrics.io).\n\n## Installation\n\n```bash\n$ npm install -g pm2\n$ pm2 install raspius --install\n$ pm2 save\n```\n\n## Running the app\n\nOnce the app is installed with PM2 like above it will run in daemon mode, as you can see if you run `pm2 logs raspius`. \nIt works by sending at regular intervals (no more than a minute) a message to the Afiware server so that it knows your system and therefore internet connection is alive.\n\nSince it's a fresh install, you will need to setup an internet location. Go over to [Afiware](https://afiware.afivan.com) to create one then set it with this command:\n\n```bash\n$ pm2 set raspius:internetLocationId <location_id>\n```\n\n## Test\n\n```bash\n$ pm2 logs raspius\n```\n\nThis command should give you output whether the heartbeats are being successfully sent to server. If no output appears, just wait a minute. If you see OK in the log text, you're good to go!\nIf not, most likely there is an issue with the internet location you set up.\n\nYou may disconnect the device from the internet and after maximum 2 minutes you should receive an email from Afiware that you have some internet connectivity problems.\n\n## Support\n\nAfiware is a proprietary product which is free to use with limitations. Any feedback is greatly appreciated so use any available means to contact and keep in touch!\n\n## Stay in touch\n\n- Author - [Andrei-Flavius IVAN](https://afivan.com/contact)\n- Website - [https://afivan.com/](https://afivan.com/)\n- Twitter - [@afivandev](https://twitter.com/afivandev)\n- Buy me a coffee - [BMC](https://www.buymeacoffee.com/afivan)\n\n## License\n\nAfiware is [Proprietary licensed](LICENSE).\n","readmeFilename":"README.md"}