GithubHelp home page GithubHelp logo

troppes / washtrak Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 834 KB

A system to track the status of washing machines

License: GNU General Public License v3.0

JavaScript 34.75% Dockerfile 0.55% Shell 0.51% C++ 39.40% HTML 0.60% Svelte 24.07% CSS 0.12%

washtrak's Introduction

WashTrak

WashTrak allows you to track the current status of your washing machine. It uses an ESP32 board with an MPU-6050 sensor.

Backend

The backend uses an ExpressJS server that provides REST routes for the data from all the machines currently in use. More information can be found in the Backend Readme.

Frontend

The frontend has been built using Svelte-Kit. It provides support for creating, modifying and deleting users/machines, as well as a dashboard for the current status of all machines. More information can be found in the Frontend Readme.

Controller

The Controller collects the sensor data and calculates the current status of the machine. It then connects to the REST API and uploads the results. The software is written in C/C++ for Arduino. More information can be found in the Controller Readme.

Deployment Options

Container

There is a Backend Container and a Frontend Container available for quick deployment. If you only want to deploy the backend, please see the API documentation for building a frontend: API-documentation

Docker Compose

A docker-compose file can be found at: docker-compose.yml. It assumes deployment to localhost. If you want to deploy in production, please refer to the readme files on Dockerhub for configuration details. Links can be found above and in the front-end and back-end readme files.

Ansible

An Ansible deployment task can be found at: washtrak-role

Future

  • After measuring the payment gateway controller, it was found that a pin delivers a different voltage depending on whether the machine is running or not. This can be used to build a better start/end detection.

  • During the measurement we also discovered that it is possible to skip the payment by shorting two pins. This could potentially be used for online payments in the future.

washtrak's People

Contributors

troppes avatar

Watchers

 avatar

washtrak's Issues

Read out current of the machine for better results

While measuring out the machines, it appears, that one pin delivers 4.7 Volt and may be used for powering the controller. If the payment system goes into idle, the voltage drops.

A approach could be to use this to determine the start and end of the machine. The backed would set the machine to done, when the controller does not send any more updates for a while

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.