@@ -25,7 +25,7 @@ These instructions install up to date Node.js and Node-RED - however it can take
25
25
```
26
26
sudo apt-get update
27
27
# OPTIONAL: Update everything to latest versions
28
- sudo apt-get upgrade -y
28
+ sudo apt-get upgrade -y
29
29
# Get required packages
30
30
sudo apt-get install -y build-essential python-rpi.gpio nodejs nodered git-core
31
31
# OPTIONAL: Install a modern version of nodejs and nodered
@@ -61,7 +61,7 @@ You can now type `./start.sh` to run EspruinoHub, but it's worth checking out th
61
61
# Install Node, Bluetooth, etc
62
62
sudo apt-get update
63
63
# OPTIONAL: Update everything to latest versions
64
- sudo apt-get upgrade -y
64
+ sudo apt-get upgrade -y
65
65
# Get required packages
66
66
sudo apt-get install -y git-core nodejs npm build-essential mosquitto mosquitto-clients bluetooth bluez libbluetooth-dev libudev-dev
67
67
# Now get EspruinoHub
@@ -144,13 +144,13 @@ sudo rm -rf ~/EspruinoHub
144
144
Run with Docker
145
145
---------------
146
146
147
- Build on Raspberry Pi Zero :
147
+ Install :
148
148
149
- docker build -t espruino/espruinohub:armhf https://github.com /espruino/EspruinoHub.git
149
+ docker pull ghcr.io /espruino/espruinohub
150
150
151
151
Run from the directory containing your ` config.json ` :
152
152
153
- docker run -d -v $PWD/config.json:/EspruinoHub /config.json:ro --restart=always --net=host --name espruinohub espruino/espruinohub:armhf
153
+ docker run -d -v $PWD/config.json:/data /config.json:ro --restart=always --net=host --name espruinohub ghcr.io/ espruino/espruinohub
154
154
155
155
Usage
156
156
-----
@@ -241,7 +241,7 @@ var data = {a:1,b:2};
241
241
NRF.setAdvertising({},{
242
242
showName:false,
243
243
manufacturer:0x0590,
244
- manufacturerData:E.toJS(data)
244
+ manufacturerData:E.toJS(data)
245
245
});
246
246
// Note: JSON.stringify(data) can be used instead of
247
247
// E.toJS(data) to produce 'standard' JSON like {"a":1,"b":2}
@@ -335,7 +335,7 @@ However, you can also request historical data by sending the JSON:
335
335
{
336
336
"topic" : "/hist/hour/ble/temp/f5:47:c8:0b:49:04",
337
337
"interval" : "minute",
338
- "age" : 6
338
+ "age" : 6
339
339
}
340
340
```
341
341
@@ -363,7 +363,7 @@ Requests can be of the form:
363
363
"age" : 1, // hours
364
364
// or:
365
365
"from" : "1 July 2018",
366
- "to" : "5 July 2018" (or anything that works in new Date(...))
366
+ "to" : "5 July 2018" (or anything that works in new Date(...))
367
367
}
368
368
```
369
369
0 commit comments