Giter VIP home page Giter VIP logo

get_power's Introduction

GetPower 项目文档

有问题可以进QQ群交流:361997678

简介

GetPower 是一个实用的小工具,旨在帮助用户实时监控和通知电费情况。该工具支持通过二维码登录,并能将电费信息推送至多个平台,包括飞书、MQTT、ServerChan、微信机器人Webhook、Webhook以及Bark。

特性

  • 支持多种通知平台:飞书、MQTT、ServerChan、wechatbot-Webhook、Webhook和Bark。
  • 二维码登录:简便快捷的二维码登录方式。
  • 定时推送:可配置的推送时间,按时提醒电费信息。

快速开始

1. 配置环境

首先,确保你的系统中已安装了Python和所需的依赖。

git clone https://github.com/okatu-loli/get_power
pip install -r requirements.txt
# python -m playwright install
playwright install

2. 配置文件

复制 config.ini.example 文件并重命名为 config.ini,根据需要填写以下配置信息:

[Notification]
; 可选平台:feishu, serverchan, mqtt, webhook, bark。多个平台启用时用逗号隔开
platform =
hours = 14
mins = 00

[ServerChan]
; Server酱发送密钥
send_key =

[Feishu]
; 飞书机器人token
robot_token =

[Webhook]
; Webhook URL
webhook_url =

[MQTT]
; Mqtt的地址
mqtt_host =
mqtt_port =
mqtt_topic =

[Bark]
url =
token =

[WeChatBot]
url =
token =
to =
isRoom =

3. 启动程序

启动程序后,访问 http://你的IP:5000/qrcode,扫描二维码进行登录。

注意事项

  • 如果访问二维码页面时提示404,或扫描二维码后提示失效,请检查程序控制台的日志输出。
  • 二维码检测可能存在5-10秒的延迟,二维码失效会在日志中有所提示。

TODO

  • 支持多户号

贡献

如果你在使用过程中遇到任何问题,欢迎提Issue。同时,我们也欢迎各种Pull Requests。

免责声明

本工具仅供学习交流使用,请勿用于商业用途,请在下载后24小时内删除。

get_power's People

Contributors

okatu-loli avatar

Stargazers

 avatar  avatar powerAn avatar Will.su avatar lysoul avatar  avatar  avatar  avatar Magic avatar  avatar 芯芒 avatar Tomy avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

get_power's Issues

建议将项目中的 Server酱 链接换成推荐链接

您好,我是 Server酱的作者 Easy 。注意到您的项目中对接或提及了 Server酱,非常感谢对我们的支持。

这里有一个小建议。Server酱最近推出了「推荐返现计划」,您可以在项目中Server酱的官网链接后边加上推荐参数,这样在用户从这里进入Server酱并订阅会员后,您的项目将获得2元/单的佣金。

只需要用微信登录fx.ft07.com ,然后开通计划就可以获得您的推荐链接,佣金会实时地转入开通账号的微信零钱中。

希望这个计划能让您的开源项目更好。


Hello, I am Easy, the author of ServerChan. I noticed that your project has integrated or mentioned ServerChan, and I am very grateful for that.

I have a small suggestion. ServerChan has recently launched a "Referral Cashback Program". You can add a referral parameter to the link to ServerChan's official website in your project. This way, when users enter ServerChan through your link and subscribe to a membership, your project will earn a commission of 2 RMB per subscription.

You just need to log in to fx.ft07.com with WeChat, activate the program, and you will get your referral link. The commission will be instantly transferred to the WeChat Wallet of the account that activated the program.

Even though the earnings might not be substantial, I hope this program can provide some additional support for your open-source project.

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.