FROMpython:3.7.4-slim-busterLABELmaintainer="Nick Janetakis <nick.janetakis@gmail.com>"WORKDIR/appRUNapt-get update\&&apt-get install -y build-essential python3-lxml --no-install-recommends\&&pip installxmltodict==0.12.0lxml==4.4.1\&&rm -rf /var/lib/apt/lists/*\&&rm -rf /usr/share/d...
For those that want to switch the E3372 on/off from the API, heres a python script based on the main.py in this repo: #!/usr/bin/env python import sys import requests import xmltodict class HuaweiE3372(object): BASE_URL = 'http://{host}' TOKEN_URL = '/api/webserver/SesTokInfo...
在中间服务代码中添加处理微信消息的功能: fromflaskimportFlask,request,jsonifyimportrequestsimportxmltodictapp=Flask(__name__)API_KEY='YOUR_CHATGPT_API_KEY'WECHAT_TOKEN='YOUR_WECHAT_TOKEN'WECHAT_ENCODINGAESKEY='YOUR_ENCODINGAESKEY'@app.route('/wechat',methods=['POST'])defwechat():xml_data=re...