pisugar / sugar-wifi-conf Goto Github PK
View Code? Open in Web Editor NEWA BLE service on raspberry pi for wifi configuration and wireless control. 使用微信小程序随时随地设置树莓派wifi连接,控制树莓派
License: GNU General Public License v3.0
A BLE service on raspberry pi for wifi configuration and wireless control. 使用微信小程序随时随地设置树莓派wifi连接,控制树莓派
License: GNU General Public License v3.0
设备:树莓派4B
操作步骤:
1、wget http://cdn.pisugar.com/release/sugarwificonfig.sh -O- | sh
2、sudo reboot
3、扫码进入小程序“PiSugar”
4、搜索不到树莓派
Log file:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/local/Cellar/node/12.10.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'dev'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle [email protected]predev: [email protected]dev: [email protected]
6 info lifecycle [email protected]
7 verbose lifecycle [email protected]dev: unsafe-perm in lifecycle truedev: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/$
8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]dev: CWD: /Users/Arahasya/blue-pi/web-bluetooth-clientdev: Args: [
10 silly lifecycle [email protected]
10 silly lifecycle '-c',
10 silly lifecycle 'webpack-dev-server --inline --progress --config build/webpack.dev.conf.js'
10 silly lifecycle ]
11 silly lifecycle [email protected]dev: Returned: code: 1 signal: nulldev: Failed to exec dev script
12 info lifecycle [email protected]
13 verbose stack Error: [email protected] dev: webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:209:13)
13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:209:13)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/Arahasya/blue-pi/web-bluetooth-client
16 verbose Darwin 18.7.0
17 verbose argv "/usr/local/Cellar/node/12.10.0/bin/node" "/usr/local/bin/npm" "run" "dev"
18 verbose node v12.10.0
19 verbose npm v6.11.3
20 error code ELIFECYCLE
21 error errno 1
比如:检测到系统是64位的执行sudo apt install libstdc++6:armhf或者提供64位程序。
Hi !
First, thanks for this great project.
While the page is working perfectly on Chrome Desktop (ubuntu), I'm having trouble making the web page work on Chrome Android:
It seems to fail when calling server.getPrimaryService(UUID.SERVICE_ID)
:
DOMException: No Services matching UUID fd2b4448-aa0f-4a15-a62f-eb0be77a0000 found in Device.
I have also tried to server.getPrimaryServices()
instead, but it says:
DOMException: No Services found in device.
I have looked into chrome://bluetooth-internals
, and indeed the service is not visible, despite the 'raspberrypi' device displaying in the list of devices when clicking on "Discover" (which seems to imply the service is advertised)
Services visible on Desktop:
fd2b4448-aa0f-4a15-a62f-eb0be77a0000
<= the expected service, contains almost about 20 characteristics00001801-0000-1000-8000-00805f9b34fb
Services visible on Mobile:
00001801-0000-1000-8000-00805f9b34fb
<= also visible from desktop00001800-0000-1000-8000-00805f9b34fb
<= not visible on desktop, but has no characteristicsChrome versions:
I have no real idea what I can do, all I know is I'd really love to make it work on my phone 😅
Please note the device is a Raspberry pi Zero (system completely up-to-date from today)
Anyway, thanks for the great work !
WS-2019-0063 More information
high severity
Vulnerable versions: < 3.13.1
Patched version: 3.13.1
WS-2019-0032 More information
moderate severity
Vulnerable versions: < 3.13.0
Patched version: 3.13.0
请问 PiSugar/sugar-wifi-conf/blob/master/build/sugar-wifi-conf 并不是开源的?
在这个库里没有找到相应的源码。
Whenever I try to run in the "web-bluetooth-client" directory:
npm run dev
I get the following error:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Any ideas on how to fix this?
HI!
I added this line: sudo /home/pi/sugar-wifi-conf/build/sugar-wifi-conf pisugar /home/pi/sugar-wifi-conf/custom_config.json in rc.local file but on client side nothing changed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.