GithubHelp home page GithubHelp logo

movie_box-office_query's Introduction

movie_box-office_query

with Home Assistant, 利用maoyan的api,获取当前**大陆电影票房实时大盘数据

install

在 custom_components/ 文件夹下建立文件夹 movie_box-office_query/ ,将 init.py manifest.json sensor.py 放入 movie_box-office_query/ 中
在 /config/configuration.yaml 中添加以下语句

  - platform: movie_box-office_query
    movie_num: 15

注意:movie_num为将要储存的电影数量,无此参数时默认为20部,如数量超过数据源全部数据的长度,则按照数据源实际的数量储存

How to use

利用list-card,显示电影数量 在Lovelace配置中

columns:
  - add_link: imgUrl
    field: imgUrl
    title: ''
    type: image
  - field: name
    style:
      - height: 30px
    title: 电影名称
  - field: boxUnit
    title: 实时票房
  - field: boxRate
    title: 票房占比
  - field: showCount
    title: 场次
  - field: showCountRate
    title: 排片占比
  - field: avgShowView
    title: 场均人数
  - field: avgSeatView
    title: 上座率
  - field: sumBoxDesc
    title: 总票房
entity: sensor.piao_fang_da_pan
feed_attribute: entries
title: 电影票房大盘
type: 'custom:list-card'

即可展现储存的电影所有属性,可以自由选择要显示的属性

movie_box-office_query's People

Stargazers

 avatar  avatar

Watchers

 avatar

movie_box-office_query's Issues

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.