GithubHelp home page GithubHelp logo

yingfengchen / chrome-app-scales Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zoombjm/chrome-app-scales

0.0 1.0 0.0 140 KB

读取串行接口设备数据的 Chrome 应用。

Home Page: https://chrome.google.com/webstore/detail/bbkdeoafljnanfgabbifaflcddhmljab

JavaScript 91.81% HTML 8.19%

chrome-app-scales's Introduction

读取 USB 与串行接口的设备的数据

dependencies Status devDependencies Status

读取串行接口与 USB 设备数据的 Chrome App。

为什么开发这个 Chrome 应用

公司项目原本使用 Java 开发了一个浏览器插件,用于从网页里读取连接到电脑的电子秤的读数,但由于 Google Chrome 禁用了 NPAPI 插件,导致这个浏览器插件失效了,所以我开发了这个 Chrome App 来读取电子秤读数。

但是,此 Chrome App 并不是只能用于电子秤,理论上来说,它能读取所有使用串行接口及 USB 接入到电脑的设备的数据,电子秤只是其中一种。

如何使用

任何网站都可以使用外部网页连接中文)与 Serial Port App 通信,从而获取设备的数据。

**但正如文档里所说,只有列在 manifest.json 文件里的网站才能连接至应用,所以,你需要告诉我你的网站网址,然后我会加入到 manifest.json 中并重新发布应用。**你也可以 Fork 源码之后生成自己的应用并安装在 Chrome 里使用。

manifest.json 中的 externally_connectable.matches 属性列出了目前能连接到 Serial Port App 的网站。

安装之后,就可以参照 /src/app/index.js 里的代码获取数据了,我以后也会写一份详细的文档来说明其它网站或扩展要如何连接至此应用获取数据的.

许可

MIT

chrome-app-scales's People

Contributors

lmk123 avatar

Watchers

James Cloos 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.