Skip to content

source by MichMich/MagicMirror. On the basis of the original, the Chinese users have been optimized

License

Notifications You must be signed in to change notification settings

ruicky/MagicMirror4China

Repository files navigation

MagicMirror²: The open source modular smart mirror platform.

Dependency Status devDependency Status License Travis Known Vulnerabilities

具体文档请查看源文档

快速开始(仅适用于树莓派)

bash -c "$(curl -sL https://raw.githubusercontent.com/ruicky/MagicMirror4China/master/installers/raspberry.sh)"

优化的不同地方

  1. 由于 momentjs 在调用moment.local()本地化的方法的时候 ,给的值是zh-cn但是, 在 translation.js中给的却是 *zh_cn* 所以不能汉化钟表等显示。
  2. weatherforecast模块在openweathermap获取天气 ** 16 days/daily forecast API ** 不是免费的(详情看Current weather and forecasts collection) 顾 修改为 获取 5 days/3 hour forecast API 这种类型的api
  3. 关于newsfeed 源
    • 知乎日报: http://zhihudaily.dev.malash.net/
  4. 关于calendar 源
    • 解析本地的ics,貌似没成功 只能使用http的方式
    • 在解析过程中 如果时间中有1970年以前的事件。则会报错。因为rrule-alt组件解析的时候 会报错。故修改该组件下rrule-alt/lib/rrule.jsORDINAL_BASE: new Date(1970, 0, 1),ORDINAL_BASE: new Date(1900, 0, 1),

网页版-最终效果展示

img

About

source by MichMich/MagicMirror. On the basis of the original, the Chinese users have been optimized

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages