Skip to content

Commit

Permalink
Add more Makefile targets, write CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MikMuellerDev committed Jul 31, 2022
1 parent b9cc817 commit d50f434
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
## Changelog for v0.1.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

The new configuration file looks like this:
```json
{
"port": 8081,
"nodeName": "localhost",
"tokenHash": "$2a$05$T9NsGTrr847RI3yianF90Oi7PxUxANUybxGjSDgtlw3g6HI44xRbO",
"hardware": {
"hardwareEnabled": false,
"pin": 0,
"protocol": 1,
"repeat": 10,
"pulseLength": 180,
"contentLength": 24
},
"switchesRF": [
{
"id": "s1",
"on": 0,
"off": 0
}
],
"switchesGPIO": [
{
"id": "s2",
"pin": 1
}
]
}
```
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,23 @@ tar = mkdir -p build && tar -cvzf ./$(appname)_v$(version)_$(1)_$(2).tar.gz smar

.PHONY: all linux


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
release: cleanall build

# Publishes the local release to Github releases
gh-release:
gh release create v$(version) ./build/*.tar.gz -F ./CHANGELOG.md -t 'Node v$(version)'

run:
go run .

Expand Down

0 comments on commit d50f434

Please sign in to comment.