Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContWatch 2.0 #3

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
6f4f58e
Version 2.0.0-beta initial commit
BlueManCZ Oct 11, 2023
024a5af
Add widgets
BlueManCZ Oct 22, 2023
5b99c33
Add switch widgets
BlueManCZ Oct 23, 2023
66c5789
Implement switch widgets logic
BlueManCZ Oct 24, 2023
54ee78c
Install Chart.js and update libraries
BlueManCZ Oct 25, 2023
3778b65
Prepare ground for attribute data charts
BlueManCZ Nov 17, 2023
9e25ccf
Upgrade to Next 14, switch to BUN, adapt SMACSS
BlueManCZ Nov 18, 2023
c0c96fb
Move .github directory to root
BlueManCZ Nov 18, 2023
de7892b
Fix working directory in client.yaml
BlueManCZ Nov 18, 2023
682de8d
Fix working directory in client.yaml really now
BlueManCZ Nov 18, 2023
b8305c4
Drop BUN for build problems, switch to Node 21
BlueManCZ Nov 18, 2023
d8e6df6
Rewrite bun to npm
BlueManCZ Nov 18, 2023
9449fb1
Attribute charts and refactoring
BlueManCZ Nov 18, 2023
b0529d7
Add settings page
BlueManCZ Nov 19, 2023
1307fb6
Prepare ground for actions
BlueManCZ Nov 19, 2023
a07855f
Add listener and perform_action nodes
BlueManCZ Nov 23, 2023
09e8195
Add attribute_reader and logger nodes
BlueManCZ Nov 25, 2023
05b3b91
Add aggregator, condition, evaluator and negation nodes
BlueManCZ Nov 26, 2023
795f670
Add attribute_reader_listener node
BlueManCZ Nov 27, 2023
07de0c5
Attribute fixes
BlueManCZ Mar 4, 2024
25de3fa
Add PostgreSQL support, move remaining handlers, fixes
BlueManCZ Dec 30, 2024
5daf413
Fixes
BlueManCZ Dec 31, 2024
4a552c7
Fixes
BlueManCZ Dec 31, 2024
e582134
Fix attribute description and value
BlueManCZ Dec 31, 2024
1a80f35
Fixes
BlueManCZ Jan 1, 2025
e22eff4
Fixes
BlueManCZ Jan 1, 2025
9b495dd
Fixes
BlueManCZ Jan 1, 2025
9088f41
Fixes
BlueManCZ Jan 1, 2025
41b2830
Fix
BlueManCZ Jan 1, 2025
b79613d
Fixes
BlueManCZ Jan 1, 2025
3094bb6
Fix
BlueManCZ Jan 1, 2025
3bdf1dc
Rewrite to Turborepo
BlueManCZ Jan 3, 2025
c94bd48
Fix
BlueManCZ Jan 3, 2025
30a4a9a
Icons
BlueManCZ Jan 3, 2025
869de2b
Fix
BlueManCZ Jan 3, 2025
fa28c23
Fixes
BlueManCZ Jan 3, 2025
12c182d
Improvements
BlueManCZ Jan 4, 2025
3297507
Formatting, Linting, Fixes
BlueManCZ Jan 5, 2025
47cf26e
Stylelint
BlueManCZ Jan 5, 2025
79a4ada
Stylelint
BlueManCZ Jan 5, 2025
f673cca
Add support for reordering attributes
BlueManCZ Jan 6, 2025
36b47d1
Add support for adding, updating and deleting attributes
BlueManCZ Jan 7, 2025
ac8ca0a
Rollback
BlueManCZ Jan 7, 2025
28bce24
Improve SSR, refactoring
BlueManCZ Jan 8, 2025
821faed
Improve SSR, refactoring
BlueManCZ Jan 8, 2025
f7e5b36
Fine-tuned model abstraction, refactoring
BlueManCZ Jan 10, 2025
c7565ae
SWR mutations with socketio
BlueManCZ Jan 10, 2025
b120d09
Improvements
BlueManCZ Jan 12, 2025
b24262f
Add screen scripts
BlueManCZ Jan 12, 2025
3180356
Screen session names
BlueManCZ Jan 12, 2025
dc51b2c
Enable fetch cache
BlueManCZ Jan 12, 2025
e1e625c
Move swr-models to separate package
BlueManCZ Jan 14, 2025
a339551
Fix
BlueManCZ Jan 14, 2025
fae6fbf
Fix
BlueManCZ Jan 14, 2025
4799767
Add attribute value decimal rounding
BlueManCZ Jan 14, 2025
9f47ff9
Attribute chart and icon selection
BlueManCZ Jan 16, 2025
1bd9ac1
Fix
BlueManCZ Jan 16, 2025
ee401b6
Fix zooming issues
BlueManCZ Feb 4, 2025
735f968
Inspector improvements
BlueManCZ Feb 27, 2025
b30b685
Chart optimizations and time measurements
BlueManCZ Feb 28, 2025
4ecb1f8
Fix
BlueManCZ Feb 28, 2025
1cd8b66
Fix
BlueManCZ Feb 28, 2025
264e3aa
Fix
BlueManCZ Feb 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 0 additions & 31 deletions .eslintrc.json

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Client CI
on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 22.x ]
defaults:
run:
working-directory: ./src/client

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Biome
run: npm run biome
- name: Stylelint
run: npm run stylelint
- name: Build
run: npm run build
- name: Test
run: npm test
28 changes: 12 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
# JetBrains
# JetBrains IDE
.idea/

# Python
__pycache__/
*.pyc

# Node.js
node_modules
package-lock.json

# Build
modules/web_server/static/js
modules/web_server/static/styles/*.css
modules/web_server/static/styles/*.css.map
!modules/web_server/static/styles/main.css
!modules/web_server/static/styles/main.css.map
# Next.js
.next/

# Logs
*.log*

# Configs
*.json

# SASS
.sass-cache/

# Database
*.sqlite*

# Environment
*.env*

# Nohup
nohup.out

# Static symlink
/static
# Config
config.json

# Eslint
.eslintcache
40 changes: 27 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@
# ContWatch

System for controlling single-board microcontrollers powered by Python.
Scalable system for IoT automation. Offers an intuitive web interface for controlling and monitoring devices.

## Python dependencies

If you use [`apt`](https://en.wikipedia.org/wiki/APT_(software)) as your package manager, you can run:

```shell
xargs -a dependencies.txt sudo apt-get install
```

As an alternative you can use [`pip`](https://en.wikipedia.org/wiki/Pip_(package_manager)):
## Run server
Make sure you have [pipenv](https://pipenv.pypa.io/en/latest/) installed.

```shell
pip3 install -r requirements.txt --user
cd src/server
pipenv install
pipenv run server
```

## Usage
## Run client
Make sure you have [node.js](https://nodejs.org/en) installed.

```shell
cd src/client
npm install
npm run build
npm start
```

Python codebase is formatted with [black](https://github.com/psf/black#readme) and TypeScript codebase with [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint#readme).
## Credits
This project is available thanks to following technologies and their communities:

| Name | Used for |
|------------------------------------------------------------|--------------------------|
| [Python](https://www.python.org/) | Server language |
| [Flask](https://flask.palletsprojects.com/) | Server framework |
| [PonyORM](https://ponyorm.org/) | Server database |
| [Black](https://black.readthedocs.io/en/stable/index.html) | Server code formatting |
| [Node.js](https://nodejs.org/en) | Client codebase |
| [TypeScript](https://www.typescriptlang.org/) | Client language |
| [Next.js](https://nextjs.org/) | Client backend |
| [React](https://reactjs.org/) | Client framework |
| [Redux](https://redux.js.org/) | Client state management |
| [ESLint](https://eslint.org/) | Client code linting |
| [Prettier](https://prettier.io/) | Client code formatting |
| [Stylelint](https://stylelint.io/) | Client styles linting |
8 changes: 0 additions & 8 deletions dependencies.txt

This file was deleted.

65 changes: 0 additions & 65 deletions docs/README_CZ.md

This file was deleted.

3 changes: 0 additions & 3 deletions modules/core/__init__.py

This file was deleted.

3 changes: 0 additions & 3 deletions modules/core/actions/__init__.py

This file was deleted.

46 changes: 0 additions & 46 deletions modules/core/actions/event_listener.py

This file was deleted.

22 changes: 0 additions & 22 deletions modules/core/actions/routines/__init__.py

This file was deleted.

76 changes: 0 additions & 76 deletions modules/core/actions/routines/abstract_routine.py

This file was deleted.

Loading
Loading