Skip to content

derryck404/Motionfit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Github Actions Deployment Guide on ZeppLife For Email

Motionfit compliant

Table of Contents

Install

This project uses python, but you don't have them locally installed. Just FORK THIS REPOSITORY.

Usage

1️⃣ Fork this repository.
2️⃣ Set Actions secrets and variables.
3️⃣ Click Actions, run the Brush Steps Workflow.

Add variables named USERPWDSCKEYOPEN_GET_WEATHERAREAPAT.
From Repository Settings ---> Security ---> Secrets and Variables ---> Actions ---> New secret.

Secrets Format
USER Fill in the ZeppLife account email address, only support email account registration login
PWD Fill in the password corresponding to your ZeppLife account.
SCKEY Fill in ServerChan Sckey, if you do not fill in NO.
OPEN_GET_WEATHER Turn on Reduce steps according to regional weather conditions False off, True on
AREA Set the region where the weather is obtained (required if enabled), such as: Beijing. Fill in NO when the variable OPEN_GET_WEATHER is False
PAT The value of PAT is Github token you need to apply. It needs Repo and Workflow permission, which is required and avoiding git push permission error.

Optional Settings

  • Customize multiple accounts

    For using multiple accounts, please split with # and save to the variables USER and PWD

     #For example
     USER: [email protected]#[email protected] 
     PWD:  abc123qwe#abcqwe2 
  • Customize start time

    Edit Code workflows/run.yml, modify the judgment time of the cron statement in UTC Time.

     cron: '3 2,4,7,10,13 * * *'
  • Customize range of random step

    Edit Code main.py at line 87-88, modify the range of random step.

     min_1 = 4500 * min_ratio
     max_1 = 3000 * max_ratio

Precautions

1️⃣ This Github Action run once a day, which controlled by cron in Code run.yml. The variable minute is random values.
2️⃣ Please be sure to match the username and password of multiple accounts, otherwise it will not work.
3️⃣ The start time must be UTC Time.
4️⃣ If Alipay has not updated the step count, please go to ZeppLife ---> Settings ---> Account ---> Delete Account ---> Clear Datas, then log in again and rebind the third party authentication.
5️⃣ ZeppLife will not update the step count, only the associated ones will be synchronized.
6️⃣ Please note that the account is ZeppLife account.

Contributing

💌 This project is originated fork from @577fkj@matocool, many thanks for their contribution to the project.

About

ZeppLife Motion for email

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%