GithubHelp home page GithubHelp logo

misaya98 / apple-monitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moshicoco/apple-monitor

0.0 0.0 0.0 14.27 MB

一个用 Java 实现的 Apple 商店库存监控,支持bark,dingtalk,微信等方式推送实时库存信息。目前支持**和日本地区。An Apple store inventory monitoring implemented in Java, supports bark, dingtalk, WeChat and other methods to push real-time inventory information. Currently supports China and Japan regions.

License: MIT License

Java 99.56% Dockerfile 0.44%

apple-monitor's Introduction

AppleMonitor

GitHub stars GitHub forks GitHub issues GitHub license GitHub All Releases GitHub release (latest SemVer) Hits

AppleMonitor

一个用 Java 实现的 Apple 线下商店库存监控工具,支持bark,飞书机器人等消息推送方式。

目前已经支持监控**大陆,**香港,**澳门,****,日本等地区的苹果商店。

Currently, it supports monitoring Apple Stores in mainland China, Hong Kong, Macau, China Taiwan, Japan and other regions.

使用效果

效果图

如何使用

  1. 下载构建的产物压缩包 releases版本
  2. 解压压缩包,文件内会包含一个可执行的jar和一份config.json配置文件,以及说明文档若干。
  3. 编辑config.json配置你需要监控的产品型号以及地区即可,可支持cron表达式自定义监控频率。
  4. 执行命令 java -jar apple-monitor-v0.0.9.jar

配置文件参数解释

含义
cronExpressions 执行的cron表达式,建议执行时间间隔设置为 (监控的设备型号数*3)秒,如果你不会写corn表达式,建议使用程序输出的推荐表达式
country 需要监控的国家,目前仅支持"CN","JP" ,CN-MACAO,CN-HK,CN-TW
location 你所在的区域,要用苹果官网风格的地址,例如 广东 深圳 南山区 或者 重庆 重庆 XX区
deviceCodeList Object List
deviceCode 需要监控的产品代码 产品型号列表
storeWhiteList 商店白名单,一个区域可能有多个商店,仅监控白名单中的商店,模糊匹配,不填则默认监控所有
pushConfigs Object List 推送配置
barkPushUrl bark推送服务器地址,默认为 https://api.day.app/push
barkPushToken bark token 获取BarkToken请参考
barkPushSound bark 推送铃声
feishuBotWebhooks 飞书机器人webhook地址
feishuBotSecret 飞书机器人secret

配置文件示例

{
  "appleTaskConfig": {
    "cronExpressions": "*/12 * * * * ?",
    "country": "CN",
    "location": "广东 深圳 南山区",
    "deviceCodeList": [
      {
        "deviceCode": "MTQA3CH/A",
        "storeWhiteList": [
          "益田假日"
        ],
        "pushConfigs": [
          {
            "barkPushUrl": "https://api.day.app/push",
            "barkPushToken": "你的token",
            "barkPushSound": "multiwayinvitation.caf",
            "feishuBotWebhooks": "",
            "feishuBotSecret": ""
          }
        ]
      },
      {
        "deviceCode": "MTQC3CH/A",
        "storeWhiteList": [
          "益田假日"
        ],
        "pushConfigs": [
          {
            "barkPushUrl": "",
            "barkPushToken": "",
            "feishuBotWebhooks": "",
            "feishuBotSecret": ""
          }
        ]
      }
    ]
  }
}

注: 如果需要监控日本地区的情况,请将country设置为JP, location设置为你所在的区域邮编,例如:197-0804,deviceCodes设置为你需要监控的产品型号(日本版本型号),storeWhiteList设置为你需要监控的商店,例如 新宿 ,不填则默认监控所有。

日本地域プロファイル参照例 config-jp.json

如何使用Bark请参考 Bark使用文档

苹果产品型号代码请参考 产品型号列表

支持的推送方式

  • feishu bot
  • bark

常见问题

  • 如果使用 Windows 系统的CMD执行出现乱码,执行前先执行 chcp 65001 这条命令。

关注我

wechatOrCode

免责

  1. 本项目仅用于学习研究,禁止任何人用于商业及非法用途,如产生法律纠纷与本人无关。
  2. 本项目为开源项目,若相关公司有异议,请邮件联系作者,作者收到邮件后会及时处理。

致谢

感谢 JetBrains 对本项目的支持。

JetBrains

License

Stargazers over time

Stargazers over time

apple-monitor's People

Contributors

moshicoco avatar dependabot[bot] avatar imgbotapp avatar lrannn avatar sven0219 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.