Skip to content

Commit

Permalink
Bump version to 0.2.0, write CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MikMuellerDev committed Jul 31, 2022
1 parent 7265df6 commit 46c1e09
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 7 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
## Changelog for v0.1.0
## Changelog for v0.2.0

### Generic GPIO devices
- Added support for generic GPIO devices
- Alongside the preexisting 433mhz hardware, you can now leverage the power of any GPIO pin to be controllable via Smarthome
- Added the `invert` setting to GPIO hardware which internally inverts every power request
- This means an `on` will be changed to a `off` and the other way around
- This setting is especially useful for controlling GPIO-relays

The new configuration file looks like this:
```json
{
"port": 8081,
"nodeName": "localhost",
"tokenHash": "$2a$05$T9NsGTrr847RI3yianF90Oi7PxUxANUybxGjSDgtlw3g6HI44xRbO",
"tokenHash": "$2a$05$/c/qAd6gfSh0HSXuQTH4EOiEWfqarjze/y4UdlLOdZFgqua.KUxZe",
"hardware": {
"hardwareEnabled": false,
"pin": 0,
Expand All @@ -28,7 +29,8 @@ The new configuration file looks like this:
"switchesGPIO": [
{
"id": "s2",
"pin": 1
"pin": 1,
"invert": false
}
]
}
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
appname := smarthome-hw
version := 0.1.0
version := 0.2.0
sources := $(wildcard *.go)

build = mkdir -p smarthome-hw-bin && cp -r dist/* smarthome-hw-bin && GOOS=$(1) GOARCH=$(2) go build -o ./smarthome-hw-bin/$(appname)$(3) $(4)
Expand All @@ -13,8 +13,6 @@ all: linux
# Update the current version in all locations
version:
python3 update_version.py
cd web && npm i


# Prepares everything for a version-release
# In order to publish the release to Github, run `make gh-release
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Node (formerly *Smarthome-hw*)
**Version**: `0.1.0`
**Version**: `0.2.0`
Hardware interface for the Smarthome server

### Purpose
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {
if err := config.ReadConfigFile(); err != nil {
log.Fatal("Failed to read config file: ", err.Error())
}
config.Version = "0.1.0"
config.Version = "0.2.0"
log.Debug("Successfully read config file")

r := api.NewRouter()
Expand Down

0 comments on commit 46c1e09

Please sign in to comment.