-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9320dc3
Showing
22 changed files
with
7,011 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"cli": true, | ||
"target": "directory", | ||
"adapterName": "vis-homekittiles", | ||
"title": "HomeKit-Tiles", | ||
"description": "VIS widgets in HomeKit style", | ||
"keywords": [ | ||
"visualization", | ||
"vis", | ||
"homekit" | ||
], | ||
"expert": "yes", | ||
"features": [ | ||
"vis" | ||
], | ||
"type": "visualization-widgets", | ||
"releaseScript": "yes", | ||
"authorName": "Standarduser", | ||
"authorGithub": "Standarduser", | ||
"authorEmail": "[email protected]", | ||
"gitRemoteProtocol": "HTTPS", | ||
"gitCommit": "yes", | ||
"defaultBranch": "main", | ||
"license": "MIT License", | ||
"dependabot": "yes", | ||
"creatorVersion": "2.3.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
name: Bug report | ||
about: Something is not working as it should | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '...' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots & Logfiles** | ||
If applicable, add screenshots and logfiles to help explain your problem. | ||
|
||
**Versions:** | ||
- Adapter version: <adapter-version> | ||
- JS-Controller version: <js-controller-version> <!-- determine this with `iobroker -v` on the console --> | ||
- Node version: <node-version> <!-- determine this with `node -v` on the console --> | ||
- Operating system: <os-name> | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Configure here which dependency updates should be merged automatically. | ||
# The recommended configuration is the following: | ||
- match: | ||
# Only merge patches for production dependencies | ||
dependency_type: production | ||
update_type: "semver:patch" | ||
- match: | ||
# Except for security fixes, here we allow minor patches | ||
dependency_type: production | ||
update_type: "security:minor" | ||
- match: | ||
# and development dependencies can have a minor update, too | ||
dependency_type: development | ||
update_type: "semver:minor" | ||
|
||
# The syntax is based on the legacy dependabot v1 automerged_updates syntax, see: | ||
# https://dependabot.com/docs/config-file/#automerged_updates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: monthly | ||
time: "04:00" | ||
timezone: Europe/Berlin | ||
open-pull-requests-limit: 5 | ||
assignees: | ||
- Standarduser | ||
versioning-strategy: increase | ||
|
||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: monthly | ||
time: "04:00" | ||
timezone: Europe/Berlin | ||
open-pull-requests-limit: 5 | ||
assignees: | ||
- Standarduser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Automatically merge Dependabot PRs when version comparison is within the range | ||
# that is configured in .github/auto-merge.yml | ||
|
||
name: Auto-Merge Dependabot PRs | ||
|
||
on: | ||
# WARNING: This needs to be run in the PR base, DO NOT build untrusted code in this action | ||
# details under https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/ | ||
pull_request_target: | ||
|
||
jobs: | ||
auto-merge: | ||
if: github.actor == 'dependabot[bot]' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check if PR should be auto-merged | ||
uses: ahmadnassri/action-dependabot-auto-merge@v2 | ||
with: | ||
# In order to use this, you need to go to https://github.com/settings/tokens and | ||
# create a Personal Access Token with the permission "public_repo". | ||
# Enter this token in your repository settings under "Secrets" and name it AUTO_MERGE_TOKEN | ||
github-token: ${{ secrets.AUTO_MERGE_TOKEN }} | ||
# By default, squash and merge, so Github chooses nice commit messages | ||
command: squash and merge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Test and Release | ||
|
||
# Run this job on all pushes and pull requests | ||
# as well as tags with a semantic version | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
tags: | ||
# normal versions | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
# pre-releases | ||
- "v[0-9]+.[0-9]+.[0-9]+-**" | ||
pull_request: {} | ||
|
||
# Cancel previous PR/branch runs when a new commit is pushed | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# Performs quick checks before the expensive test runs | ||
check-and-lint: | ||
if: contains(github.event.head_commit.message, '[skip ci]') == false | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: ioBroker/testing-action-check@v1 | ||
with: | ||
node-version: '16.x' | ||
# Uncomment the following line if your adapter cannot be installed using 'npm ci' | ||
# install-command: 'npm install' | ||
|
||
|
||
# TODO: To enable automatic npm releases, create a token on npmjs.org | ||
# Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options | ||
# Then uncomment the following block: | ||
|
||
# # Deploys the final package to NPM | ||
# deploy: | ||
# needs: [check-and-lint] | ||
# | ||
# # Trigger this step only when a commit on any branch is tagged with a version number | ||
# if: | | ||
# contains(github.event.head_commit.message, '[skip ci]') == false && | ||
# github.event_name == 'push' && | ||
# startsWith(github.ref, 'refs/tags/v') | ||
# | ||
# runs-on: ubuntu-latest | ||
# | ||
# # Write permissions are required to create Github releases | ||
# permissions: | ||
# contents: write | ||
# | ||
# steps: | ||
# - uses: ioBroker/testing-action-deploy@v1 | ||
# with: | ||
# node-version: '16.x' | ||
# # Uncomment the following line if your adapter cannot be installed using 'npm ci' | ||
# # install-command: 'npm install' | ||
# npm-token: ${{ secrets.NPM_TOKEN }} | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# | ||
# # When using Sentry for error reporting, Sentry can be informed about new releases | ||
# # To enable create a API-Token in Sentry (User settings, API keys) | ||
# # Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options | ||
# # Then uncomment and customize the following block: | ||
# sentry: true | ||
# sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
# sentry-project: "iobroker-vis-homekittiles" | ||
# sentry-version-prefix: "iobroker.vis-homekittiles" | ||
# # If your sentry project is linked to a GitHub repository, you can enable the following option | ||
# # sentry-github-integration: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# No dot-directories except github/vscode | ||
.*/ | ||
!.vscode/ | ||
!.github/ | ||
|
||
*.code-workspace | ||
node_modules | ||
nbproject | ||
|
||
# npm package files | ||
iobroker.*.tgz | ||
|
||
Thumbs.db | ||
|
||
# i18n intermediate files | ||
admin/i18n/flat.txt | ||
admin/i18n/*/flat.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"plugins": [ | ||
"iobroker", | ||
"license", | ||
"manual-review" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Standarduser <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
![Logo](admin/vis-homekittiles.png) | ||
# ioBroker.vis-homekittiles | ||
|
||
[![NPM version](https://img.shields.io/npm/v/iobroker.vis-homekittiles.svg)](https://www.npmjs.com/package/iobroker.vis-homekittiles) | ||
[![Downloads](https://img.shields.io/npm/dm/iobroker.vis-homekittiles.svg)](https://www.npmjs.com/package/iobroker.vis-homekittiles) | ||
![Number of Installations](https://iobroker.live/badges/vis-homekittiles-installed.svg) | ||
![Current version in stable repository](https://iobroker.live/badges/vis-homekittiles-stable.svg) | ||
|
||
[![NPM](https://nodei.co/npm/iobroker.vis-homekittiles.png?downloads=true)](https://nodei.co/npm/iobroker.vis-homekittiles/) | ||
|
||
**Tests:** ![Test and Release](https://github.com/Standarduser/ioBroker.vis-homekittiles/workflows/Test%20and%20Release/badge.svg) | ||
|
||
## vis-homekittiles adapter for ioBroker | ||
|
||
VIS widgets in HomeKit style | ||
|
||
## Developer manual | ||
This section is intended for the developer. It can be deleted later. | ||
|
||
### DISCLAIMER | ||
|
||
Please make sure that you consider copyrights and trademarks when you use names or logos of a company and add a disclaimer to your README. | ||
You can check other adapters for examples or ask in the developer community. Using a name or logo of a company without permission may cause legal problems for you. | ||
|
||
### Getting started | ||
|
||
You are almost done, only a few steps left: | ||
1. Create a new repository on GitHub with the name `ioBroker.vis-homekittiles` | ||
|
||
1. Push all files to the GitHub repo. The creator has already set up the local repository for you: | ||
```bash | ||
git push origin main | ||
``` | ||
1. Add a new secret under https://github.com/Standarduser/ioBroker.vis-homekittiles/settings/secrets. It must be named `AUTO_MERGE_TOKEN` and contain a personal access token with push access to the repository, e.g. yours. You can create a new token under https://github.com/settings/tokens. | ||
|
||
1. Head over to [widgets/vis-homekittiles.html](widgets/vis-homekittiles.html) and start programming! | ||
|
||
### Best Practices | ||
We've collected some [best practices](https://github.com/ioBroker/ioBroker.repositories#development-and-coding-best-practices) regarding ioBroker development and coding in general. If you're new to ioBroker or Node.js, you should | ||
check them out. If you're already experienced, you should also take a look at them - you might learn something new :) | ||
### Scripts in `package.json` | ||
Several npm scripts are predefined for your convenience. You can run them using `npm run <scriptname>` | ||
| Script name | Description | | ||
|-------------|-------------| | ||
| `test:package` | Ensures your `package.json` and `io-package.json` are valid. | | ||
| `test` | Performs a minimal test run on package files. | | ||
| `translate` | Translates texts in your adapter to all required languages, see [`@iobroker/adapter-dev`](https://github.com/ioBroker/adapter-dev#manage-translations) for more details. | | ||
| `release` | Creates a new release, see [`@alcalzone/release-script`](https://github.com/AlCalzone/release-script#usage) for more details. | | ||
### Publishing the widget | ||
Using GitHub Actions, you can enable automatic releases on npm whenever you push a new git tag that matches the form | ||
`v<major>.<minor>.<patch>`. We **strongly recommend** that you do. The necessary steps are described in `.github/workflows/test-and-release.yml`. | ||
Since you installed the release script, you can create a new | ||
release simply by calling: | ||
```bash | ||
npm run release | ||
``` | ||
Additional command line options for the release script are explained in the | ||
[release-script documentation](https://github.com/AlCalzone/release-script#command-line). | ||
To get your widget released in ioBroker, please refer to the documentation | ||
of [ioBroker.repositories](https://github.com/ioBroker/ioBroker.repositories#requirements-for-adapter-to-get-added-to-the-latest-repository). | ||
### Test the adapter manually on a local ioBroker installation | ||
In order to install the adapter locally without publishing, the following steps are recommended: | ||
1. Create a tarball from your dev directory: | ||
```bash | ||
npm pack | ||
``` | ||
1. Upload the resulting file to your ioBroker host | ||
1. Install it locally (The paths are different on Windows): | ||
```bash | ||
cd /opt/iobroker | ||
npm i /path/to/tarball.tgz | ||
``` | ||
For later updates, the above procedure is not necessary. Just do the following: | ||
1. Overwrite the changed files in the adapter directory (`/opt/iobroker/node_modules/iobroker.vis-homekittiles`) | ||
1. Execute `iobroker upload vis-homekittiles` on the ioBroker host | ||
## Changelog | ||
<!-- | ||
Placeholder for the next version (at the beginning of the line): | ||
### **WORK IN PROGRESS** | ||
--> | ||
### **WORK IN PROGRESS** | ||
* (Standarduser) initial release | ||
## License | ||
MIT License | ||
Copyright (c) 2023 Standarduser <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.