Skip to content

Commit 7963607

Browse files
authored
Update for shorter machine names and SSIDs (#56)
* Bump machine-name to get a 24-char length limit on names * Update machine-specific domain names & URLs on landing page * Update changelog, bump version for release
1 parent 97cb4d2 commit 7963607

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ All dates in this file are given in the [UTC time zone](https://en.wikipedia.org
88

99
## Unreleased
1010

11+
## 0.1.7 - 2023-09-06
12+
13+
### Changed
14+
15+
- Shortened machine names and updated information about machine-specific domain names and URLs to use the new `pkscope` abbreviation instead of `planktoscope` (see [PlanktoScope#214](https://github.com/PlanktoScope/PlanktoScope/pull/214)).
16+
1117
## 0.1.6 - 2023-08-10
1218

1319
### Changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.20
44

55
require (
66
github.com/Masterminds/sprig/v3 v3.2.3
7-
github.com/PlanktoScope/machine-name v0.1.2
7+
github.com/PlanktoScope/machine-name v0.1.3
88
github.com/benbjohnson/hashfs v0.2.1
99
github.com/dgraph-io/ristretto v0.1.1
1010
github.com/labstack/echo/v4 v4.11.1

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7Y
44
github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
55
github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA=
66
github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM=
7-
github.com/PlanktoScope/machine-name v0.1.2 h1:+xwlbwa2Hjf0WlUZPjRztD2AHsegwFjkqVB0tBw1cqA=
8-
github.com/PlanktoScope/machine-name v0.1.2/go.mod h1:lonYg8/9fOwpJZdV8w69nYw+VsOnEx14EXKw3VPvw54=
7+
github.com/PlanktoScope/machine-name v0.1.3 h1:vOorbZm5QcEJTrmruYpxX81eyWXJPQDNf2ZdydZdyy0=
8+
github.com/PlanktoScope/machine-name v0.1.3/go.mod h1:38x/CvfkMFPAr5xnnDyi0pfln7jo8e/oSVMQR4g+yoU=
99
github.com/benbjohnson/hashfs v0.2.1 h1:pxfukDsRT7iwBcICHCNsqQoopYV+gUQw5yPDiYt8A6M=
1010
github.com/benbjohnson/hashfs v0.2.1/go.mod h1:7OMXaMVo1YkfiIPxKrl7OXkUTUgWjmsAKyR+E6xDIRM=
1111
github.com/bmatcuk/doublestar/v4 v4.6.0 h1:HTuxyug8GyFbRkrffIpzNCSK4luc0TY3wzXvzIZhEXc=

web/templates/home/home.page.tmpl

+11-11
Original file line numberDiff line numberDiff line change
@@ -55,31 +55,31 @@
5555
<li>
5656
You should use your web browser to open that PlanktoScope's machine-specific URL
5757
instead.
58-
{{if hasSuffix ".planktoscope" $hostname}}
58+
{{if hasSuffix ".pkscope" $hostname}}
5959
For example, the machine-specific URL for this PlanktoScope is
60-
<a href="//{{$machineName}}.planktoscope">
60+
<a href="//{{$machineName}}.pkscope">
6161
{{- /* make template ignore the line break */ -}}
62-
{{$machineName}}.planktoscope
62+
{{$machineName}}.pkscope
6363
{{- /* make template ignore the line break */ -}}
6464
</a>.
6565
Alternatively,
66-
<a href="//planktoscope-{{$machineName}}.local">
66+
<a href="//pkscope-{{$machineName}}.local">
6767
{{- /* make template ignore the line break */ -}}
68-
planktoscope-{{$machineName}}.local
68+
pkscope-{{$machineName}}.local
6969
{{- /* make template ignore the line break */ -}}
7070
</a>
7171
might also work if your web browser supports mDNS.
72-
{{else if and (hasPrefix "planktoscope" $hostname) (hasSuffix ".local" $hostname)}}
72+
{{else if and (hasPrefix "pkscope" $hostname) (hasSuffix ".local" $hostname)}}
7373
For example, the machine-specific URL for this PlanktoScope is
74-
<a href="//planktoscope-{{$machineName}}.local">
74+
<a href="//pkscope-{{$machineName}}.local">
7575
{{- /* make template ignore the line break */ -}}
76-
planktoscope-{{$machineName}}.local
76+
pkscope-{{$machineName}}.local
7777
{{- /* make template ignore the line break */ -}}
7878
</a>.
7979
Alternatively,
80-
<a href="//{{$machineName}}.planktoscope">
80+
<a href="//{{$machineName}}.pkscope">
8181
{{- /* make template ignore the line break */ -}}
82-
{{$machineName}}.planktoscope
82+
{{$machineName}}.pkscope
8383
{{- /* make template ignore the line break */ -}}
8484
</a>
8585
might also work if you're connecting directly to your PlanktoScope (i.e. to its
@@ -88,7 +88,7 @@
8888
{{end}}
8989
</li>
9090
<li>
91-
{{if hasSuffix ".planktoscope" $hostname}}
91+
{{if hasSuffix ".pkscope" $hostname}}
9292
You're probably trying to connect directly to your PlanktoScope (i.e. to its Ethernet
9393
port or to a Wi-Fi network created by that PlanktoScope). You
9494
{{else}}

0 commit comments

Comments
 (0)