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

feat: launch everything from the same docker compose #2

Merged
merged 22 commits into from
Apr 12, 2024

Conversation

Rignchen
Copy link
Contributor

@Rignchen Rignchen commented Apr 9, 2024

No description provided.

the name it had before made esphome think it was an esp32 config file
login_login is a pleonasme, it's useless to say login twice
it's the only required file for the database, therefore it doesn't need to be in another directory
.gitignore Outdated
.idea
# vim backup files
*.swp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*.sw[pon] would be shorter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't knew you could do that, thank's

README.md Outdated
- esp32/config/secrets.example.yaml

---
Once done you want to get the ip address of the computer that will run the docker containers
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is IP address mandatory or can we use a host name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed it and it now use a host name

![web interface](/assets/dashboard.png)

## ESP 32 Installation
This project uses esp home to manage the esp32, you can configure the esp32 by following the instructions below
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a link to the esp home project?

README.md Outdated

---
Finally you can fill the `esp32/config/secrets.yaml` with the credentials of the wifi\
Once that's done you can create a postgres database called `memoires-info` from the `psql.sql` file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Db creation should be done with the POSTGRES_DB en Var. See doc https://hub.docker.com/_/postgres
See also the "Initialization scripts" section to pick psql.sql on the first execution.

Rignchen and others added 14 commits April 11, 2024 13:13
before if you were making a request to anything.domain.com, the domain would be domain.com. Now the domain will be anything.domain.com
it means that now everything starting with login.memoires-info.com will be run as php code instead of being ignored
the reason it worked before was because the uri contained "login."
User now don't need to specify the port when accessing the web server
now postgres data won't apear in root
* feat: display averages for the last two months, refactor the way data is retrieved and placed in the pie chart

* feat: token added to link for API data, change to display of month element

* feat: link login element with login backend

* feat: link login element with login backend

* feat: the token in sampleContext takes the value from the user who logged in

* feat: store the token in localstorage

* fix: fix small errors to launch npm run build

* feat: added login functionality, created a function to get tokens from localstorage

* style: change input form design

* feat: redirect the user on login if the token is wrong

* feat: create a function that checks for 401 errors

* refactor: the method of collecting data and putting it into the monthly chart

* feat: add log out button
@Rignchen Rignchen marked this pull request as ready for review April 12, 2024 12:13
@jordyBSK jordyBSK merged commit 9042cb9 into museebolo:main Apr 12, 2024
@Rignchen Rignchen deleted the docker branch April 12, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants