Jump to content

Felix_63

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Felix_63

  1. Hello community! I’ve been a lurker for a while and recently flashed the latest Armbian Jammy onto a spare NanoPi NEO I had lying around. I'm currently designing a headless DIY time-tracking kiosk for a small local workshop using an RC522 RFID reader via SPI. Reading the RFID tags and logging the raw Unix timestamps (punch-in/punch-out) to a local SQLite database was the easy part. Where I'm getting a bit stuck is the actual backend calculation logic. I need the system to accurately calculate the daily net working hours, which means automatically deducting mandatory statutory breaks (e.g., 30 mins after 6 hours of work) and tracking daily overtime. To ensure the math is strictly accurate and handles edge cases properly, I am trying to write a Python script that replicates the exact calculation logic used by standard tools like arbeitszeitrechnerprofi.de for the backend processing. Before I completely reinvent the wheel writing complex Python datetime scripts, has anyone here built a similar attendance or punch-clock project on Armbian? What’s the best way to handle this data processing locally? Would it be better to just use Node-RED for easier visual flow and logic management rather than a standalone Python daemon? Also, any tips on GPIO reliability for the RFID reader under the recent Armbian kernels would be highly appreciated. I plan to start wiring the prototype this weekend. Thanks in advance!
  2. Hey TRay, If your main goal is just to make sure the USB sound card is always recognized as Card 0, you don't necessarily have to completely disable the other devices. You can just force ALSA to prioritize the USB card. Try creating or editing a configuration file in modprobe. Run sudo nano /etc/modprobe.d/alsa-base.conf and add this line: options snd-usb-audio index=0 Reboot, and your USB card should grab the 0 slot. If you really want to completely disable the onboard HDMI and Codec audio, your best bet is to look in armbian-config under System -> Hardware and toggle off the overlays for analog audio and HDMI audio, or you can blacklist the specific kernel modules (like sun4i-codec) in /etc/modprobe.d/blacklist.conf. Hope this helps get your setup working!
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines