GithubHelp home page GithubHelp logo

widgetscript's Introduction

widgetScript

使用方法: 1.你需要在你的手机上安装 Scriptable testflight版本 或者 AppStore版本

2.下载你想使用的脚本, 放到scriptable中; 或者点击对应的脚本, 复制所有代码,在scriptable中创建一个新的script,将复制的代码新建的script中

helloSelf.js

1. 获取自己所在地理位置的经纬度, 然后到彩云天气获取天气令牌. 获取到信息后, 添加到脚本的 user_config
	caiyunToken:'***********',
	userLocation: '121.6544,25.1552',
	isShowLife:true,
2. 配置说明, user_config中可以设置显示效果
 isShowWeather: 电池信息下方那一行是否展示天气信息(数据温度, 还有天气现象,eg: 大风大雨大雪等等)或者显示随机一条诗词;  true: 天气信息; false: 显示一条随机诗词;
 weatherEmoji: 只在isShowWeather为true的时候生效, weatherEmoji 为ture的时候用emoji替代文字显示天气现象

3. 显示效果

天气显示emoji 天气显示emoji

显示节假日信息 显示节假日信息

随机一条诗词 随机一条诗词

文字天气
文字天气

4. 如何使用

如果这个动图加载不出来, 可以把Readme下载下来, 使用这个链接去看 https://tva1.sinaimg.cn/large/007S8ZIlly1gjl6kvny2eg30d40sib2n.gif git动图

Thanks

xkerwin

Anurag's github stats

widgetscript's People

Contributors

dipsysu 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.