Possible to generate tables with the bundle? #37
-
|
Hi, I need some help regarding this bundle. thx a lot in advance |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
What kind of table do you mean? A database table? A form table? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @jbtronics, just a little ping regarding the question above. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @jbtronics, thanks for the answer. Regarding the pinout i thought about adding either serial or simple I/O access to Part-DB. However after ample reflection the last part would better be suited to a MCU connected in serial to the hardware running the server, which would dictate how to handle the I/O data. As for the config for serial, you are right, settings in PartDB should be kept to a minimum (toggle serial comm. and specify serial port). Rest would be handled by the middleware program and communicated to him trough API/webhooks. PS: Apropos API, I sent you an email to ask if you could tell me where the API is constructed (which files have it's definition) + some example of working POST Requests. Could you please send me those informations? It would help a lot. Thanks again for your work and taking time to respond |
Beta Was this translation helpful? Give feedback.

You can implement custom parameter types to store arbitary data. For simple bool ArrayType might be enoug. And there is also SerializeType for unstructured arrays. In all cases you will need to implement a custom form type, but that is done and documented by symfony/form, not by this bundle.
That being said, i am not sure if it is wise to configure that details in Part-DB. I think Part-DB should save some URL or something, via which it can connect with another software handling the hardware interface stuff. and then configuration of details like this should be handled in that software. Not in Part-DB.
Also not sure why the pinout plays a role at all, shouldnt that be handled by the OS, an…