Skip to content

Commit

Permalink
Prepare release 0.15.0 (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
bw-hro authored Dec 11, 2023
1 parent f6e4fcd commit 03acd82
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@ jobs:
matrix:
java-version: [
'8.0.x',
'9.0.x',
'10.0.x',
'11.0.x',
'12.0.x',
'13.0.x',
'14.0.x',
'15.0.x',
'17.0.x',
'21.0.x',
]
steps:
- uses: actions/checkout@v2
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Maven](https://img.shields.io/maven-central/v/io.webthings/webthing.svg)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22io.webthings%22%20AND%20a%3A%22webthing%22)
[![license](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](LICENSE)

Implementation of an HTTP [Web Thing](https://iot.mozilla.org/wot/).
Implementation of an HTTP [Web Thing](https://webthings.io/api).

# Using

Expand All @@ -17,7 +17,7 @@ Add the following dependency to your project:
<dependency>
<groupId>io.webthings</groupId>
<artifactId>webthing</artifactId>
<version>0.14.0</version>
<version>0.15.0</version>
</dependency>
</dependencies>
```
Expand All @@ -29,7 +29,7 @@ Add the following dependency to your project:
```gradle
dependencies {
runtime(
[group: 'io.webthings', name: 'webthing', version: '0.14.0'],
[group: 'io.webthings', name: 'webthing', version: '0.15.0'],
)
}
```
Expand All @@ -51,7 +51,7 @@ In this example we will set up a dimmable light and a humidity sensor (both usin

## Dimmable Light

Imagine you have a dimmable light that you want to expose via the web of things API. The light can be turned on/off and the brightness can be set from 0% to 100%. Besides the name, description, and type, a [`Light`](https://iot.mozilla.org/schemas/#Light) is required to expose two properties:
Imagine you have a dimmable light that you want to expose via the web of things API. The light can be turned on/off and the brightness can be set from 0% to 100%. Besides the name, description, and type, a [`Light`](https://webthings.io/schemas/#Light) is required to expose two properties:
* `on`: the state of the light, whether it is turned on or off
* Setting this property via a `PUT {"on": true/false}` call to the REST API toggles the light.
* `brightness`: the brightness level of the light from 0-100%
Expand Down Expand Up @@ -139,7 +139,7 @@ This will start the server, making the light available via the WoT REST API and

Let's now also connect a humidity sensor to the server we set up for our light.

A [`MultiLevelSensor`](https://iot.mozilla.org/schemas/#MultiLevelSensor) (a sensor that returns a level instead of just on/off) has one required property (besides the name, type, and optional description): **`level`**. We want to monitor this property and get notified if the value changes.
A [`MultiLevelSensor`](https://webthings.io/schemas/#MultiLevelSensor) (a sensor that returns a level instead of just on/off) has one required property (besides the name, type, and optional description): **`level`**. We want to monitor this property and get notified if the value changes.

First we create a new Thing:

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.webthings</groupId>
<artifactId>webthing</artifactId>
<version>0.14.0</version>
<version>0.15.0</version>

<name>WebThing</name>
<description>Implementation of an HTTP Web Thing.</description>
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ git clone https://github.com/WebThingsIO/webthing-tester
pip3 install --user -r webthing-tester/requirements.txt

# build the jar
mvn clean compile assembly:single
mvn clean compile assembly:single test
jar=$(find target -type f -name 'webthing-*-jar-with-dependencies.jar')

# build and test the single-thing example
Expand Down

0 comments on commit 03acd82

Please sign in to comment.