Dynamic Webpage: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
* git clone https://in-dubio@bitbucket.org/in-dubio/aquarium-api.git | * git clone https://in-dubio@bitbucket.org/in-dubio/aquarium-api.git | ||
Create symbolic links from | Remove existing webpage using <code>rm /var/www/index.html</code>. | ||
Assuming the web server is storing the content in <code>/var/www/html/</code>: | |||
Create symbolic links from the web server directory pointing to the downloaded pages: | |||
* sudo ln -s /usr/local/src/aquarium-vue/* /var/www/html | |||
Create symbolic links from the web server directory pointing to the API scripts: | |||
* <code>sudo ln -s /usr/local/src/aquarium-api/api.php /var/www/html/api.php</code> | |||
* <code>sudo ln -s /srv/aquarium-api/functions.php /var/www/html/functions.php</code> | |||
* <code>sudo ln -s /srv/aquarium-api/db.php /var/www/html/db.php</code> | |||
Note: Do NOT copy ALL files from the API repository to the website. | |||
Revision as of 10:44, 8 December 2025
The dynamic webpage implements the following features:
- Display of measurement data
- Display of log from refill, Balling mineral dosing and feed
- Display and interface for creating and modifying feed profiles
- Display and interface for modifying the feed schedule
- Display and interface for modifying the Balling mineral dosing amount
- Display and interface for modifying the actuator schedule
- Display and interface for setting the refill controller state
The demo of the webpage is available here
Installation
Clone the website and the API to /usr/local/src/:
- git clone https://in-dubio@bitbucket.org/in-dubio/aquarium-vue.git
- git clone https://in-dubio@bitbucket.org/in-dubio/aquarium-api.git
Remove existing webpage using rm /var/www/index.html.
Assuming the web server is storing the content in /var/www/html/:
Create symbolic links from the web server directory pointing to the downloaded pages:
- sudo ln -s /usr/local/src/aquarium-vue/* /var/www/html
Create symbolic links from the web server directory pointing to the API scripts:
sudo ln -s /usr/local/src/aquarium-api/api.php /var/www/html/api.phpsudo ln -s /srv/aquarium-api/functions.php /var/www/html/functions.phpsudo ln -s /srv/aquarium-api/db.php /var/www/html/db.php
Note: Do NOT copy ALL files from the API repository to the website.