-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
38 lines (30 loc) · 1.99 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[Log Blueprint]:
Plant Name
Date and Time
Days since last check
Days since last fertilized
Fertilizer Used
How much used?
Notes
Progress
Is It Flowering?
Fruiting?
Is it Fruiting?
How many fruits
Problems
Identify Problem
Fixable?
Research Treatments
Treatments Tried
Not Fixable?
What is Plant of Action?
Images
[Figuring out Last Checked days and Last Fertilized days]:
* Last Checked Days:
Right before object storage we can pull the date of the last log that ways made, and compare to the current date. We will have to do math to figure out how any days have gone by. If too much time has gone by (I.E. Past the time that is set.) an email will be sent reminding to check plants.
* Last fertilized days:
Since some plants need less fertilizer than others we need to go by the actual Last Fertilized date and not the date of the last log. We can take just the last fertilized date from the last log made and do a math operation to figure out the days, and like above if the number of days exceeds the set number of days a reminder email will be sent out. The method to do this is date_diff() or DateTime::diff(). This method takes two date times and returns the difference in a DateInterval object.
http://localhost:8080/php/pages/createlog.php?plantname=Myster+Beans&log-date-time=2024-09-11T04%3A04&did-fertilize=false&problem-name=&research=&treatments-tried=&treatments-found=&images=plant3.jpg&images=plant2.jpg&images=plant1.jpg
The above URL is inorrect as we are using the POST method the get our data from the user. We are using $_POST and $_FILES to get data.
It seems /var/www/html/uploads is owned by uid 1000, I forced changed this with sudo docker exec -u <container id> chown nobody:nobody /var/www/html/uploads
I think I fixed the permissions problem by clearing the cache and basically deleting all docker containers wit `dockery system prune -a` and it seems work.