I am thinking of making a framework for Raspberry Pis that incorporates features from Raspberry Pi into Node/AdonisJs. For example the Raspberry Pi will run off a Node JS server with Adonis JS as the framework (because its my Node framework of choice) and I would have features like:Connect Raspberry Pi to Wifi via its AP (access point feature)For example this does just that: https://github.com/sabhiram/raspberry-wifi-confGPIO integrationReceive input from connected hardwareTouch screen capabilitiesWhat about the keyboard you say? I would use this package https://virtual-keyboard.js.org/vuejs/So the stack would be:Frontend - VueJSCSS Framework - TailwindCSSServer - NodeJSBackend Framework - AdonisJSCommunication to Pi - The only way I can see this working would be with Websockets, REST API probably wouldn't work because how would we communicate with the Raspberry PI when we won't necessarily know the URL/hace access to its local network. This would be for example if we needed to change/text on the PI, the PI should be able to make its own REST API requests, we just wont easily be able to send REST API requests to it.External Server -> Raspberry Pi = Websocket (think Analytics Dashboard example)Raspberry Pi -> External Server = REST API (think Registration Kiosk example)Anyways, I have looked around and haven't really found a solution to do all this. Do you guys think it's needed? I would love to start this but currently busy making some other project, once that's done I would probably start this framework.Edit: Let me also explain the Adonis JS is like Express JS or Laravel for PHP. Basically an MVC framework.
Submitted July 13, 2019 at 07:23PM by iFBGM
No comments:
Post a Comment