Automatically punch in and out for femascloud server
- Please create
.env
and provide environment variables in it. ForPUNCH_MINUTE
,PUNCH_HOUR
,PUNCH_DAY_OF_WEEK
, andTIMEZONE
, please refer tocelery
for the setting.
ACCOUNT=
PASSWORD=
SUBDOMAIN=
PUNCH_MINUTE=
PUNCH_HOUR=
PUNCH_DAY_OF_WEEK=
TIMEZONE=
- Provide
user_id
in theindolent.txt
, which are theuser_id
of those who want to automatically punch in and out.indolent.txt
should be in the following format. If you don't know what youruser_id
is, please see the following section.
2
9
23
101
- Make sure you have
docker-compose
, then:
docker-compose up --build -d
- Everything is done!
Leverage FemasPuncher
to get your user_id
! Please make sure you have installed all the packages in the requirements.txt
before execute the following code.
from puncher import FemasPuncher
with FemasPuncher(
account="ACCOUNT",
password="PASSWORD",
subdomain="SUBDOMAIN",
) as femas_puncher:
print(femas_puncher.user_id)