GithubHelp home page GithubHelp logo

motionfit's Introduction

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.

motionfit's People

Contributors

matocool avatar derryck404 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.