Ok. Well, don't forget, the Pi boots from an SD card, so you have plenty of space to write your log. If you want to transfer the log somewhere else then you can send it over the network, or append it to a database somewhere, or copy it to a usb stick if there is one. Google will help you decide how to detect the presence of a usb stick, but here's a brief discussion to get you started.They want only logs, that can be saved in SD card or can be taken in USB stick. How can I use SD card ? How can I do this?For option 1 you should probably have an orderly shutdown procedure that sets the external hardware (sensors, actuators, etc.) to a known state before powering off. Or, you don't care, and set all the devices to a known state at power on, like the homing function on a 3D printer. This second option is probably preferable as it will accommodate the case where power fails unexpectedly. When you turn it back on everything will get reset to a known state.
2&3 are mostly personal preference, or dictated by what else is happening in the company or on the product roadmap. A web gui is nice because it can be viewed anywhere. Although, perhaps certain functions should be restricted to the local web browser.
Q.2: perhaps certain functions should be restricted to the local web browser. could you plz brief about it, so I can go through it
https://forums.raspberrypi.com/viewtopic.php?t=332681
If you have a web gui with a big "START" button on it then you probably don't want someone on the other side of the world to press it. So your web page needs two versions. One that shows status information, but no buttons. The other that shows everything. You need to detect the condition that chooses which version of the page to display. You could check the IP address of the browser, and see if it matches the IP address of the server. Or you could have a simple login function, and only give the password to the local operator, not the remote viewer.
Or you could keep everything local by using a local application and no web interface.
Statistics: Posted by ame — Sun Jun 30, 2024 5:59 am