@rhizomatics/signalk-einklabel-plugin 0.9.0-beta2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +10 -4
  2. package/README.md +11 -4
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,14 +1,20 @@
1
1
  # 0.9.0
2
2
 
3
+ ## Tide Clock Example
3
4
  - Rename `third_quarter` to `last_quarter` for moon phase icons in `templates/.assets/lunar_phases` to match Derived Data plugin
4
5
  - `tide.svg` renamed to `tides\416x240-BWRY.svg`. Original maintained but labelled as deprecated
5
- - Added a simpler 250x128 version of tide clock for 2.13" labels
6
+ - Added a simpler *250x128* version of tide clock for 2.13" labels
7
+ ## Fixes
6
8
  - Fix configuration JSON holding older versions of itself as subentries
7
- - Repaint state used to track which labels to repaint separately tracks the template and data changes
9
+ and data changes
8
10
  - Fix most cases of scanned devices not appearing in device dropdown choice
11
+ ## Improvements
12
+ - Repaint state used to track which labels to repaint separately tracks the template
9
13
  - `nearestColour` algorithm in Zhsunyco driver supports ESLs that only have BWR or BW
10
- - New 'ALL' as device option, and by default disable initial scan, to optimize support for single devices
11
- - Scan and explicit device selection only required then for boats with multiple devices
14
+ ## Device Selection
15
+ - New 'ALL' as device option, and by default disable initial scan, to optimize support for single devices, so can configure and go without waiting for scan
16
+ - Scan and explicit device selection only required for boats with multiple ESL devices
17
+ ## Templating
12
18
  - Now support a directory of templates, where each is named like `416-240-BWRY.svg` to support same functions on different devices.
13
19
  - Picks the template within the directory that most closely matches the tide clock height/width/colour-set, if not matched then height/width, and then best h/w ratio for nearest width
14
20
  - `template/assets` is now `template/.assets`
package/README.md CHANGED
@@ -72,12 +72,17 @@ npm install @rhizomatics/signalk-einklabel-plugin
72
72
 
73
73
  ![Tide Clock](docs/assets/screenshots/example_tidal_clock.png)
74
74
 
75
- The tide clock needs the [signalk-tides](https://github.com/openwatersio/signalk-tides) plugin to be installed and publishing tides to the Resources API. The [tide.svg](https://github.com/rhizomatics/signalk-einklabel-plugin/blob/main/templates/tide.svg) can be customized to run with other APIs or take data only from SignalK data paths. For example, `source=resources,resource=tides,provider=tides,path=extremes[0].time,format=local_time` gets the first tide time, ensures its the preferred `signalk-tides` provider and makes it a simple local time rather than a UTC date time.
75
+ Template available as 416x240-BWRY for 3.7" ESLs and a simpler template, sized 250x128, also BWRY, for the cheapest 2.13" labels.
76
76
 
77
- To show the lunar phase, the `environment.moon.phaseName` path is required, which can
77
+ #### Pre-requisites
78
+
79
+ * [signalk-tides](https://github.com/openwatersio/signalk-tides) plugin to be installed and publishing tides to the Resources API.
80
+ - The [tides](https://github.com/rhizomatics/signalk-einklabel-plugin/blob/main/templates/tides/) templates can be customized to run with other APIs or take data only from SignalK data paths.
81
+ - In the template it uses paths like `source=resources,resource=tides,provider=tides,path=extremes[0].time,format=local_time` to get the first tide time, ensures its the preferred `signalk-tides` provider and makes it a simple local time rather than a UTC date time.
82
+ * To show the lunar phase, the `environment.moon.phaseName` path is required, which can
78
83
  be easily achieved by installing and configuring the `derived-data` plugin.
79
84
 
80
- ## Configuration
85
+ ## Configuration
81
86
 
82
87
  Use the standard configuration option in the SignalK menu for the plugin.
83
88
 
@@ -95,7 +100,7 @@ The plugin can optionally re-scan whenever it starts up (off by default), althou
95
100
 
96
101
  A device's "Device" field can either be a specific device picked from the scan dropdown, or **"All discovered devices"**, which paints that same template/trigger to every device the plugin currently knows about. This is the simplest option for a boat with just one label - there's no need to scan first and pick it out, and if nothing's been discovered yet, selecting it triggers a scan itself the first time it's needed. It also covers several identical labels with one config entry, without listing each one out.
97
102
 
98
- ### Scheduling
103
+ ### Scheduling
99
104
 
100
105
  There are two ways of scheduling scans:
101
106
 
@@ -323,6 +328,8 @@ For example, `npx esl-cli fields -t templates/tide.svg -e examples` will show al
323
328
 
324
329
  SignalK plugins lack ability to self-update after something like a scan, so first time round you may have to close the config and reload it to see this. Subsequently the plugin will remember all scanned devices, and only drop previously seen ones if it goes 24 hours without a positive scan or with failed paint attempts.
325
330
 
331
+ Easiest way to solve this is to choose 'All Discovered Devices' in the device configuration, and it will paint any compatible devices it finds on future scans.
332
+
326
333
  ### Sometimes values are missing on the display
327
334
 
328
335
  If the plugin repaints a display at server startup, then the plugin that provides the data may not have started ( or in the case of `derived-data` the plugin that the plugin depends on! ) and unlike Home Assistant, there's no good way of sequencing the start of plugins.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhizomatics/signalk-einklabel-plugin",
3
- "version": "0.9.0-beta2",
3
+ "version": "0.9.0",
4
4
  "description": "Display SignalK data on eInk Electronic Shelf Labels",
5
5
  "keywords": [
6
6
  "ble",