delcroip/dolibarr_project_timesheet

Enhancement Request or Solution Idea to start a task by scanning an NFC Tag

Closed this issue · 1 comments

Hello,
thanks for your solution. I really like it and we want to implemet in our company.
Our team has NFC Tags to register comming and going and I would like to start a task in Dolibarr as well.

I am also playing with Kimai so here is an example that shows my idea. It is a switch in Home Assistant. Its on state starts the task and its off state stops the task.

command_line:
  - switch:
      name: Zeiterfassung MA 1
      command_on: "curl -X 'GET' 'http://192.168.100.108:8001/api/timesheets/1/restart' -H 'accept: application/json' -H 'X-AUTH-USER: superadmin' -H 'X-AUTH-TOKEN: supergeheimespassword' -H 'Content-Type: application/json' -d '{\"copy\": null, \"begin\": null}'"
      command_off: "curl -X 'GET' 'http://192.168.100.108:8001/api/timesheets/{{states(sensor.timesheet_kima_id_superadmin)}}/stop' -H 'accept: application/json' -H 'X-AUTH-USER: superadmin' -H 'X-AUTH-TOKEN: supergeheimespassword'"

Would something simmilar would also be possible?

Thanks in advance and have a nice day

At some point I did create a sibling module to work with clock machine https://github.com/delcroip/dolibarr_attendance_system
it must be outdated but it shoudl be a good starting point