Coder Social home page Coder Social logo

sharedadscreen's Introduction

Shared Advertising Board

广告屏作为智能城市服务,通过iExec的markert,运行DApp播放广告内容。

  • 文件目录说明:

    |--source: 程序源文件

    | |----- customImage: 下载并存储用户广告的目录,播放slot timeout之后会自动清除 。

    | |----- defaultImage: 存放默认界面的文件夹,包括两个背景图片和广告模板。

    | |----- electronicScreen.py 屏幕端主程序

    | |----- mqtt 广告发布端

    | |-------|---- publish.py 通过mqtt向屏幕发布广告的程序

    |--UIDesign: 界面图片文件夹。包括空闲时切换的中英文背景图片

    |---|---background.jpg 默认界面

    |---|---backgroundCHN.jpg 默认界面中文

    |---|---ad_template.jpg 广告展示时的模板

  • 屏幕端运行环境

    linux, python3.5

    package requirement:


    paho-mqtt==1.4.0

    Pillow==6.0.0 PyQt5==5.12.1 PyQt5-sip==4.19.15

  • 使用说明:

    • 屏幕端:

      cd ./source
      python3.5 electronicScreen.py
    • 发布内容:

      首先准备好图片URL,支持常见格式,可以使用 file.io上传图片,获得URL

      • 方法1: 运行

        cd ./mqtt
        
        python publish.py <ID> <URL>
      • docker 运行docker run daleshen/ad_screen:V1.0 <ID> <URL>

      • 通过Iexec market 购买运行

      

sharedadscreen's People

Contributors

imki911 avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Forkers

li375669512

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.