Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
309 commits
Select commit Hold shift + click to select a range
6d43f0a
Merge pull request #15 from flomv2/barnesv17-patch-1
Jcherella Aug 10, 2019
a7a05d3
Merge pull request #16 from flomv2/barnesv17-patch-2
Jcherella Aug 10, 2019
32191f0
created room models to interact with html and display occupancy
prashb99 Aug 10, 2019
0a2a3af
Merge pull request #19 from flomv2/modelCreation
emansyl Aug 10, 2019
b31d336
Created enter and exit functions
emansyl Aug 11, 2019
556d852
Merge pull request #20 from flomv2/enterAndLeave
prashb99 Aug 11, 2019
8037e42
Moved navbar html into navbar html file. Navbar button shows up
Jcherella Aug 11, 2019
f78608a
Navbar expands and pushes content down the page
Jcherella Aug 11, 2019
3a28a14
Merge pull request #21 from flomv2/Jack
prashb99 Aug 12, 2019
a4ac30a
Create README.md for WebApp directory
barnesv17 Aug 13, 2019
54599f8
Update README.md for WebApp directory
barnesv17 Aug 13, 2019
35bbcf7
Commented urls.py
barnesv17 Aug 13, 2019
dc56810
Update README.md
barnesv17 Aug 13, 2019
22942d7
Updated README.md in WebApp directory
barnesv17 Aug 13, 2019
8f50fb3
Update README.md
barnesv17 Aug 13, 2019
5d0c924
Started commenting. Will continue later
barnesv17 Aug 14, 2019
044abe3
Merge pull request #22 from flomv2/Virginia
prashb99 Aug 14, 2019
dbaee15
Adding user icon and dropdown on navbar
pangtsu Aug 15, 2019
53af7d1
pulled login.html from the old repository
pangtsu Aug 15, 2019
2911f61
Minor UI change to table color in STAT page
pangtsu Aug 15, 2019
ce9e46a
Added 5 more logo ideas
pangtsu Aug 15, 2019
2d30c5b
Added missing summer contributors on about page
pangtsu Aug 15, 2019
3180054
Added some comments
pangtsu Aug 15, 2019
87fd0af
Added missing contributor
pangtsu Aug 15, 2019
ba2fed4
Update comments
barnesv17 Aug 15, 2019
bedef88
changing login path
prashb99 Aug 15, 2019
09c57fb
updating comments
prashb99 Aug 15, 2019
7f99cde
Merge pull request #24 from flomv2/Virginia-1
prashb99 Aug 15, 2019
953274c
Update comments
barnesv17 Aug 15, 2019
45c1a2c
Update comments
barnesv17 Aug 15, 2019
e735d2b
Update comments & edit exitRoom function
barnesv17 Aug 15, 2019
ba495b2
Update comments
barnesv17 Aug 15, 2019
0875b06
Update comments
barnesv17 Aug 15, 2019
05dbaed
Create HTMLCheatSheet.md
barnesv17 Aug 15, 2019
1039446
Update HTMLCheatSheet.md
barnesv17 Aug 15, 2019
69e8ecd
Merge pull request #25 from flomv2/old-state
pangtsu Aug 15, 2019
f06060c
Merge pull request #26 from flomv2/Virginia
prashb99 Aug 15, 2019
8bc3a97
Update HTMLCheatSheet.md
barnesv17 Aug 15, 2019
7eefff3
Update HTMLCheatSheet.md
barnesv17 Aug 15, 2019
86d7b15
Update HTMLCheatSheet.md
barnesv17 Aug 15, 2019
1ca5bdb
Update HTMLCheatSheet.md
barnesv17 Aug 15, 2019
fb3f695
Update HTMLCheatSheet.md
barnesv17 Aug 15, 2019
e2a1c82
Update DjangoInstallGuide.md
ChrisReed0114 Aug 15, 2019
7b7417c
Add New Logo Designs
emansyl Aug 15, 2019
1ee205b
Merge pull request #27 from flomv2/ChrisReed0114-patch-1
prashb99 Aug 15, 2019
1758bdb
Merge pull request #29 from flomv2/emansyl-Logos
prashb99 Aug 15, 2019
a3d7755
Add files via upload
ChrisReed0114 Aug 15, 2019
999bb0f
Update HTMLCheatSheet.md
barnesv17 Aug 15, 2019
93f5d9e
adding db
prashb99 Aug 16, 2019
0d7c157
Create filler.md
barnesv17 Aug 16, 2019
e5e4623
adding db
prashb99 Aug 16, 2019
2730e04
Added logo without background
barnesv17 Aug 16, 2019
d8c9450
Delete filler.md
barnesv17 Aug 16, 2019
2e99e5f
Merge pull request #31 from flomv2/barnesv17-patch-1
Jcherella Aug 16, 2019
30f2d67
Merge pull request #32 from flomv2/database
Jason-Durr Aug 16, 2019
7610f86
Merge pull request #30 from flomv2/ChrisReed0114-patch-3
prashb99 Aug 16, 2019
f444eda
Fixed Jason's code to not have any style.css 404 errors
Jcherella Aug 16, 2019
f80b335
change the bgcolor
Aug 16, 2019
34f340a
Add info
Aug 16, 2019
08fcc33
Update HTMLCheatSheet.md
barnesv17 Aug 16, 2019
e53ac88
Update HTMLCheatSheet.md
barnesv17 Aug 16, 2019
c27559e
Added some comments to various files
Jcherella Aug 16, 2019
71006f0
change the nav bar to fit the page
Aug 16, 2019
04696ec
Merge pull request #34 from flomv2/Virginia
Jcherella Aug 16, 2019
384f699
Merge branch 'master' of github.com:flomv2/FLOM into Jack2
Jcherella Aug 16, 2019
6c99fd4
Change the nav bar motion color
Aug 16, 2019
81d4b2c
Merge pull request #33 from flomv2/Jack
prashb99 Aug 16, 2019
a7cd6f1
Merge pull request #35 from flomv2/Jack2
prashb99 Aug 16, 2019
9c619dd
Merge branch 'master' into UnMcDanno
prashb99 Aug 16, 2019
55217b1
Merge pull request #36 from flomv2/UnMcDanno
prashb99 Aug 16, 2019
c9d3c34
Update PostgresInstallGuide.md
ElijahKSmith Aug 16, 2019
c38d71c
Update comments
barnesv17 Aug 16, 2019
33fe9aa
Update views.py
barnesv17 Aug 16, 2019
da9134b
Merge pull request #37 from flomv2/SquidThePrinter-patch-1
Jcherella Aug 16, 2019
588eba6
Merge pull request #38 from flomv2/Updating-Comments
prashb99 Aug 16, 2019
1ec8640
Update README.md
barnesv17 Aug 16, 2019
42fb6fa
Update README.md
barnesv17 Aug 16, 2019
d6b22b1
Merge pull request #39 from flomv2/README-edits
prashb99 Aug 16, 2019
685ec56
resetting database for copying
prashb99 Sep 17, 2019
a72fa21
Merge pull request #42 from flomv2/resetStats
ChrisReed0114 Sep 17, 2019
e3b449b
dummy commit
thopkins32 Sep 20, 2019
4a16059
Merge branch 'master' of https://github.com/flomv2/FLOM
thopkins32 Sep 20, 2019
0283874
updated documentation for about and floor3 apps
thopkins32 Sep 24, 2019
6e75f1b
updated stats/vies.py
thopkins32 Sep 24, 2019
d3b03d6
Beginning arduino code for occupancy
ChoiJustin Sep 24, 2019
d535cb5
statistics room class
littlj4 Sep 24, 2019
7b5dc7a
made date fields to datetime fields for room claases in stats, floor3…
littlj4 Sep 24, 2019
4078f88
Deleted random files
ChoiJustin Sep 24, 2019
0976740
added room type variable to floors 3 and 4
littlj4 Sep 24, 2019
3c81208
created RoomUsage and OccupancyStats models
thopkins32 Sep 24, 2019
f9bddc4
created RoomUsage and OccupancyStats models
thopkins32 Sep 24, 2019
4f74caf
updated models documentation
thopkins32 Sep 26, 2019
d229995
updated documentation of floor3
thopkins32 Sep 26, 2019
a107b28
floor4 documentation update
thopkins32 Sep 26, 2019
cc783f2
finished documentation update
thopkins32 Sep 26, 2019
ce894f5
registered models and created one test
thopkins32 Sep 26, 2019
dbc8df1
Merge pull request #45 from flomv2/documentation_update
thopkins32 Sep 27, 2019
2c93308
Merge pull request #44 from flomv2/JustinHardware
littlj4 Sep 27, 2019
a11685b
created admin classes
thopkins32 Oct 1, 2019
94ea554
saving changes
prashb99 Oct 1, 2019
6f1ae60
saving changes
prashb99 Oct 1, 2019
41d5a86
saving changes
prashb99 Oct 1, 2019
998e2ac
moved views.createRooms() to urls.py
thopkins32 Oct 1, 2019
4e1f0cc
merge with master
thopkins32 Oct 1, 2019
3dbd0b4
saving changes
prashb99 Oct 2, 2019
7066053
saving changes
prashb99 Oct 2, 2019
1f61c8f
fixing bugs and testing adding test objects
prashb99 Oct 2, 2019
8da42bb
pulled from latest push
thopkins32 Oct 3, 2019
6da6960
created views to initialize data
thopkins32 Oct 3, 2019
ff4a048
adding thread script
prashb99 Oct 4, 2019
5c9e56e
created Floor and Room models and implemented basic views
thopkins32 Oct 4, 2019
770cc66
finished floor app
thopkins32 Oct 7, 2019
d903666
restructure complete
thopkins32 Oct 7, 2019
b691ee2
Part 1 of some arduino code
ChoiJustin Oct 8, 2019
5a9fd1a
Arduino code modified
ChoiJustin Oct 8, 2019
1d24f66
Merge pull request #46 from flomv2/restructure
prashb99 Oct 8, 2019
433f2d1
Merge branch 'stats' of https://github.com/flomv2/FLOM into stats
thopkins32 Oct 8, 2019
89d4cb2
fixed database issues with latest merge
thopkins32 Oct 8, 2019
b5a78eb
Arduino code with hive map added
ChoiJustin Oct 8, 2019
6ac7ef7
threading prototype
littlj4 Oct 8, 2019
f8a1f7b
Added more login functionality and prevented users from accessing flo…
Oct 9, 2019
7502d2b
Merge pull request #47 from flomv2/JustinHardware
thopkins32 Oct 9, 2019
aefcfc3
updated urls
thopkins32 Oct 11, 2019
84ca351
Merge branch 'stats' of https://github.com/flomv2/FLOM into stats
thopkins32 Oct 11, 2019
828630b
creating log class/implementation
prashb99 Oct 11, 2019
d1ba4c8
stats models and views
thopkins32 Oct 15, 2019
63f075c
changed url from floor/map/3 to floor/3
thopkins32 Oct 15, 2019
7a59533
Merge branch 'JustinHardware' of https://github.com/flomv2/FLOM into …
thopkins32 Oct 15, 2019
b66d862
made timers folder
littlj4 Oct 15, 2019
29a8d1e
Merge branch 'stats' of https://github.com/flomv2/FLOM into stats
thopkins32 Oct 15, 2019
4dc86d6
fixed image. Now image dynamically resizes with the webpage on the ab…
Oct 15, 2019
8a4badc
fixing timers
prashb99 Oct 18, 2019
de5b151
set up timers and interrupts to cycle node
ChoiJustin Oct 18, 2019
1e884c0
Merge branch 'stats' of https://github.com/flomv2/FLOM into stats
thopkins32 Oct 18, 2019
6760bd9
created TimeStamp model (in progress) no migrations made
thopkins32 Oct 18, 2019
ec6415c
added threading
littlj4 Oct 18, 2019
b5eb278
Merge branch 'stats' of https://github.com/flomv2/FLOM into stats
littlj4 Oct 18, 2019
ce513f1
Merge branch 'master' of https://github.com/flomv2/FLOM into stats
thopkins32 Oct 18, 2019
caa96f5
Merge branch 'stats' of https://github.com/flomv2/FLOM into stats
thopkins32 Oct 18, 2019
b86c6e7
Merge pull request #50 from flomv2/JustinHardware
prashb99 Oct 18, 2019
1b12188
moving time module
prashb99 Oct 19, 2019
9fcda31
none
thopkins32 Oct 22, 2019
e6f4eeb
floor id stuff
littlj4 Oct 22, 2019
2c05ee9
added new models for timers and initalized data
thopkins32 Oct 22, 2019
56cc135
Merge branch 'stats' of https://github.com/flomv2/FLOM into stats
thopkins32 Oct 22, 2019
9f75e14
more floor id stuff
littlj4 Oct 22, 2019
c0a20ef
more floor stuff (had to pull first)
littlj4 Oct 22, 2019
16d832a
login logout oages
Oct 25, 2019
2d8e902
statsLog --> StatsLog
thopkins32 Oct 29, 2019
b8d7da6
merge
thopkins32 Oct 29, 2019
b1fcef0
deleted roomPointer in StatsLog
thopkins32 Oct 29, 2019
0d42605
merge timers and stats apps
thopkins32 Oct 29, 2019
3e733d1
committing to pull
littlj4 Oct 29, 2019
176f6c6
test
littlj4 Oct 29, 2019
3d32676
threading hour/day/month/year
littlj4 Oct 29, 2019
6ac3560
Updated the issues and wiki links on the about page
victorchan88 Oct 29, 2019
357688b
login page html clean up
Oct 29, 2019
6031be7
Merge branch 'login' of https://github.com/flomv2/FLOM into login
Oct 29, 2019
ae976d2
deleted initial data
thopkins32 Oct 29, 2019
a4842a5
fixed merge conflicts
thopkins32 Oct 29, 2019
5300801
making changes
prashb99 Oct 30, 2019
a0c4924
removing print
prashb99 Oct 30, 2019
b26ba05
fixing errors
prashb99 Oct 30, 2019
fc6b6ee
set up database communication channel
ChoiJustin Nov 1, 2019
c688f7b
css changes, to change css, edit the style.css page
Nov 1, 2019
b285230
finished queries and calculating total occupants
thopkins32 Nov 1, 2019
467665f
to pull
littlj4 Nov 1, 2019
72b2418
More login fixes
Nov 1, 2019
6636cbb
fixed conflicts
littlj4 Nov 1, 2019
4c16b6a
Merge pull request #52 from flomv2/JustinHardware
prashb99 Nov 1, 2019
f9477b1
Changed landing page
Nov 1, 2019
3654c97
adding login ext
prashb99 Nov 2, 2019
bc593ad
adding icon to all pages with navbar
prashb99 Nov 2, 2019
8e2c50a
Login Logout
Nov 5, 2019
a900f7b
finished avgOccLength and updated models
thopkins32 Nov 5, 2019
4ff80ac
to pull
littlj4 Nov 5, 2019
e9737a5
Merge pull request #54 from flomv2/login
prashb99 Nov 6, 2019
0d828c9
updated database
thopkins32 Nov 8, 2019
a0909df
merge issues
thopkins32 Nov 8, 2019
b3014dd
fixed merge conflicts
thopkins32 Nov 8, 2019
9243228
Merge pull request #56 from flomv2/stats
thopkins32 Nov 8, 2019
ebd1934
Revamped About Page
Nov 9, 2019
bc6a375
fixing merge
prashb99 Nov 12, 2019
abe2410
Merge pull request #59 from flomv2/fix
ChrisReed0114 Nov 12, 2019
57513d4
created basic template for stats
thopkins32 Nov 15, 2019
3bd2798
to pull
littlj4 Nov 15, 2019
524e4b2
fixed conflicts
littlj4 Nov 15, 2019
c56c64a
new changes ready for demo
ChoiJustin Nov 15, 2019
359af0a
Merge pull request #64 from flomv2/JustinHardware
prashb99 Nov 15, 2019
3840517
Merge pull request #65 from flomv2/About_styling
prashb99 Nov 15, 2019
8e9784a
template display fixed (somewhat)
thopkins32 Nov 15, 2019
6c7defe
started stats tests
littlj4 Nov 15, 2019
0f656c1
Merge branch 'stats' of https://github.com/flomv2/FLOM into stats
littlj4 Nov 15, 2019
609f8e7
creating testing branch
littlj4 Nov 19, 2019
2111897
some timezone issues
littlj4 Nov 19, 2019
b7a38eb
Finished forms and stats template
thopkins32 Nov 19, 2019
24b6041
added basic styling for stats page
thopkins32 Nov 24, 2019
6b60c38
added graphs and images to stats page
thopkins32 Nov 24, 2019
fa55c77
adding comments to the hardware code
ChoiJustin Dec 3, 2019
3e10112
CSS fixup
Dec 3, 2019
0b8005f
css cleanup
Dec 3, 2019
78d4e0d
message
littlj4 Dec 3, 2019
28d0575
css-cleanup
Dec 3, 2019
46dab4d
testing indenting
prashb99 Dec 3, 2019
1147b3a
Experimenting making get requests
ChrisReed0114 Dec 3, 2019
e5956c0
fixed grammar - about page
Dec 3, 2019
d00d37f
adding test cases
prashb99 Dec 3, 2019
3e20970
Hover - about page
Dec 3, 2019
2243aa2
tried to add another graph
thopkins32 Dec 3, 2019
7d3b192
Made first test case
ChrisReed0114 Dec 3, 2019
889d914
Check rooms that don't exist
ChrisReed0114 Dec 3, 2019
8c4bc26
Added print statements for convenience
ChrisReed0114 Dec 3, 2019
fc5c549
Added print statements to show tests run
ChrisReed0114 Dec 3, 2019
876bb3c
About page overlay
Dec 4, 2019
e3e338a
overlay css
Dec 4, 2019
be7ea4b
Merge pull request #66 from flomv2/JustinHardware
prashb99 Dec 6, 2019
4064fc2
fixed multiple graphs
thopkins32 Dec 6, 2019
9d96946
Merge branch 'master' of https://github.com/flomv2/FLOM into stats
thopkins32 Dec 6, 2019
2d03a14
saving
prashb99 Dec 6, 2019
627b077
saving
prashb99 Dec 6, 2019
b5a9110
Update navbar.html
Dec 6, 2019
67fe794
Merge pull request #67 from flomv2/stats
thopkins32 Dec 6, 2019
030e248
mergine css branch
Dec 6, 2019
6b82829
Final of tests
ChrisReed0114 Dec 6, 2019
8281991
pushing
Dec 6, 2019
9ceed56
Merge pull request #68 from flomv2/css-cleanup
prashb99 Dec 6, 2019
f83b717
db update with tests
ChrisReed0114 Dec 6, 2019
e35571c
Trying to settle conflict
ChrisReed0114 Dec 6, 2019
9eff645
Merge pull request #70 from flomv2/Chris-Tests
georgepaulsen Dec 6, 2019
f032734
Fixed test cases for stats
Drewszoke Mar 10, 2021
625079a
Removed debug stuff and added some comments in
Drewszoke Mar 12, 2021
a54d398
commented out bugged test in tests
Drewszoke Mar 19, 2021
4a93db1
Fixed the calcAvgOccLength for Months
Drewszoke Mar 22, 2021
a2770aa
Added year tests and changed some stats functions
Drewszoke Mar 22, 2021
f08b1c9
test comment
Drewszoke Mar 29, 2021
416cc93
Disabled timezones in settings for cleaner test ouput
Kadams35 Mar 29, 2021
f1180f1
Begun experimenting with time travel, nothing yet
Kadams35 Apr 6, 2021
e6882f9
here drew
Kadams35 Apr 9, 2021
9fce345
Edge case fix for no stats log for given room
Kadams35 Apr 13, 2021
ea80790
Fixed the threadf and finished the test cases
Kadams35 Apr 13, 2021
6de0852
final Simulating time test cases
Kadams35 Apr 19, 2021
91d132e
prints for you
Kadams35 Apr 19, 2021
16fd7e2
more prints for you
Kadams35 Apr 19, 2021
fdf4b6b
she does the trick - andrew please pull this
Kadams35 Apr 19, 2021
2ed136b
added asserts and removed simtimetests from main test file
Drewszoke Apr 20, 2021
2465109
Made comments
Drewszoke Apr 20, 2021
42098d5
fix this
Kadams35 Apr 20, 2021
bc30baf
Temporary solution for overnight studiers
Kadams35 Apr 25, 2021
c2306f6
That solution didn
Kadams35 Apr 25, 2021
d491050
I'm trying my best, we might get rid of this solution
Kadams35 Apr 26, 2021
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
  •  
  •  
  •  
86 changes: 43 additions & 43 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
# Don't track content of these folders
config.ini
*.ini
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db


**/.idea/
**/__pycache__/
*.cpython-36.pyc
*.pyc

run.sh
flomenv/
# Don't track content of these folders
config.ini
*.ini
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
**/.idea/
**/__pycache__/
*.cpython-36.pyc
*.pyc
run.sh
flomenv/
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 FLOM
Copyright (c) 2019 flomv2

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Binary file added Logo-Ideas/FlomLogo1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Logo-Ideas/FlomLogo2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Logo-Ideas/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This directory contains posisble logo ideas :)
I can change/add color and add any redesigns.
Binary file added Logo-Ideas/logo idea0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Logo-Ideas/logo idea1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Logo-Ideas/logo idea2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Logo-Ideas/logo idea4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Logo-Ideas/logo idea5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Logo-Ideas/logo-idea1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Logo-Ideas/logo-idea2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Logo-Ideas/logo-idea3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Logo-Ideas/logo-idea4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Media/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 26 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,49 @@

### Folsom Library Occupancy Manager

http://www.flom.ml
FLOM is a web application created by a group of RPI students that allows the students and library staff at RPI to visualize the occupancy and gather usage statistics of the Folsom Library Occupancy Monitor.

Develop an embedded system that allows students to sign into a website with their RCS ID to check what study rooms in the library are occupied and which are not. This will increase students' efficiency when studying.
## Getting Started
To get started all you need to do is clone the repository onto your local machine
by typing ```git clone https://github.com/flomv2/FLOM.git``` in your terminal.

## Build Instructions
Before you can run the web application, you will need to complete the Django install tutorial that is located on our GitHub in the Tutorials folder.

Clone the URI and run the `manage.py` file located in the \_software directory.
Please refer to this [Django tutorial](https://docs.djangoproject.com/en/2.2/intro/tutorial01/) or simply the
[Django 2.2 documentation](https://docs.djangoproject.com/en/2.2/) for information about using our framework. Django provides a robust templating framework for HTML (that means please use it).

`python manage.py runserver`
## Build Instructions

Your local build will require access to a database. Our implementation uses [Postgres](https://www.postgresql.org/) and you can create a `config.ini` file with data to your local database. Alternatively, we can set you up with access to our AWS database if you want to join our team.
Once the URI is cloned, you can then run Django by moving into the WebApp directory in flom and running ```python3 manage.py runserver``` . This will start the web application on your localhost. In later versions you may need to install and setup Postgresql database which we will have tutorials on.

You may need to download these python libraries (if you don't already have them).
## Code of Conduct and Style Guidelines

```pip install Django``` \
```pip install psycopg2``` \
```pip install memcache```
Our developers pride ourselves on writing beautiful and efficient code. Contributers should follow standard good style practices such as: useful commenting, proper indentation, and portability. Our Web Application directory looks like this

## Code of Conduct and Style Guidelines
`Tutorials/` - Tutorials on how to set up different aspcts of the flom project
`WebApp/` - Main source code in which apps of each web page are created and urls are connected
`License.md` - MIT License
`README.md` - This file

Our developers pride ourselves on writing beautiful and efficient code. Contributers should follow standard good style practices such as
useful commenting, proper indentation, and portability. Our software app directory looks like this

`database/` - Database objects, queries, and all things postgres
`flom/` - Main settings and urls
`library_monitor/` - Front end styles and templates
`static/` - Main scripts and styles
`templates/` - Main template files
`config.ini` - Required metadata for database connection
`manage.py` - Managing file from Django

Please refer to this [Django tutorial](https://docs.djangoproject.com/en/2.2/intro/tutorial01/) or simply the
[Django 2.2 documentation](https://docs.djangoproject.com/en/2.2/) for information about using our framework. Django provides a robust templating framework for HTML (that means please use it).
## Website/Communication
https://rcos.io/projects/flomv2/flom/profile
Contact any of the contributors on this page and we can add you to our Mattermost chat! This is also where you can find our blog.

## Git Branching Model

When making a new feature or a bug fix, please make a new branch from **Dev** (short for develop). On your command line, run
When making a new feature or a bug fix, please make a new branch from **Master** (or branch you are trying to modify). On your command line, run

`git checkout dev` \
`git checkout **(original branch name)**` \
`git branch [new branch name]` \
`git checkout [new branch name]`
`git checkout [new branch name]`

Branch names should be concise and self-explanatory. Please make your branch names lowercase and use hyphens (-) for spaces. You don't need to prepend your branch name with "dev" or include other details such as your name. For example, a feature branch for updating the about page UI might be called `about-styles` or `about-page-ui`.
Branch names should be concise and self-explanatory. Please make your branch names lowercase and use hyphens (-) for spaces. You don't need to prepend your branch name with or include other details such as your name. For example, a feature branch for updating the about page UI might be called `about-styles` or `about-page-ui`.

When you have changes to your local code base in your new branch, commit push them with
When you have changes to your local code base in your new branch, commit push them with

`git commit -m [Commit message]` \
`git push`
`git push`

Commit messages should be concise and self-explanatory, just like branch names.
Commit messages should be concise and self-explanatory, just like branch names.

Once your have completed your feature or fixed you bug, please perform a **Pull Request** into dev, even if you are an admin. Pull requests provide a more readable commit log, highlighting major features and changes. On the Github repository website, click new pull request and select `"dev" <- "your branch name"`. This allows an admin to approve your changes before they are live on the develop branch.
Once your have completed your feature or fixed you bug, please perform a **Pull Request** into master, even if you are an admin. Pull requests provide a more readable commit log, highlighting major features and changes. On the Github repository website, click new pull request and select `"master" <- "your branch name"`. This requires an admin to approve your changes before they are live on the develop branch.
24 changes: 24 additions & 0 deletions Test-Scripts/testThread.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import threading
import time


def threadf(name):
print("Thread %s: starting thread",name)
x = 0
while(1):
time.sleep(1)
s = "Thread " + str(x)
print(s)
x = x + 1

if __name__ == "__main__":
print("Starting Program")
x = threading.Thread(target=threadf, args=(1,))
x.start()
y = 0
while(1):
time.sleep(2)
s = "Main: " + str(y)
print(s)
y = y + 1

21 changes: 21 additions & 0 deletions Test-Scripts/thr.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import threading
import time
import datetime

def threadf(name):
hours = []
while(True):
time.sleep(15)
now = datetime.datetime.now()
if (len(hours) == 0):
hours.append(now)
print(now.hour)
elif (now.hour != hours[-1].hour):
hours.append(now)
print(now.hour)


if __name__ == "__main__":
print("Starting Program")
x = threading.Thread(target=threadf, args=(1,))
x.start()
105 changes: 105 additions & 0 deletions Tutorials/DjangoInstallGuide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Installing Python and Django
1. Install Python and Pip
* We have to first update the local APT repository.
````shell
$ sudo apt-get update && sudo apt-get -y upgrade
````
2. Install Python 3
````shell
$ sudo apt-get install python3
````
3. Verify that Python was installed correctly.
````shell
$ python3 -V
````
4. Install pip which is used to install packages from PyPi (Python's package repository)
```` shell
$ sudo apt-get install -y python3-pip
````
5. Verify that pip was intalled
````shell
$ pip3 -V
````
6. Install virtualenv
* This is a virtual environment where you can install software and python packages in a contained development space.
````shell
$ pip3 install virtualenv
````
7. Verify that virtualenv is installed
````shell
$ virtualenv --version
````
8. Install Django
1. Make a new directory and then switch into that new directory.
````shell
$ mkdir django-apps
$ cd django-apps
````
2. While inside the django-apps directory create a new virtual environment which we called env.
````shell
$ virtualenv env
````
3. Now activate the virtual environment
````shell
$ . env/bin/activate
````
You can tell that it is activated if you see something similar to this:
````shell
(env) sylvee@DESKTOP-RFPF6M7:
````
4. Now intall the Django package with pip3
````shell
$ pip3 install django
````
5. Verify that Django installed
````shell
$ django-admin --version
````

# Django Test Project

1. Genrating the intial setup code if this is your first time using Django.
````shell
$ django-admin startproject mysite
````

These files are:
* The outer `mysite/` root directory is just a container for your project. Its name doesn’t matter to Django; you can rename it to anything you like.
* - `manage.py`: A command-line utility that lets you interact with this Django project in various ways. You can read all the details about `manage.py` in [django-admin and manage.py](https://docs.djangoproject.com/en/2.2/ref/django-admin/).
* - The inner `mysite/` directory is the actual Python package for your project. Its name is the Python package name you’ll need to use to import anything inside it (e.g. `mysite.urls`).
* - `mysite/__init__.py`: An empty file that tells Python that this directory should be considered a Python package. If you’re a Python beginner, read [more about packages](https://docs.python.org/3/tutorial/modules.html#tut-packages "(in Python v3.7)") in the official Python docs.
* - `mysite/settings.py`: Settings/configuration for this Django project. [Django settings](https://docs.djangoproject.com/en/2.2/topics/settings/) will tell you all about how settings work.
* - `mysite/urls.py`: The URL declarations for this Django project; a “table of contents” of your Django-powered site. You can read more about URLs in [URL dispatcher](https://docs.djangoproject.com/en/2.2/topics/http/urls/).
* - `mysite/wsgi.py`: An entry-point for WSGI-compatible web servers to serve your project. See [How to deploy with WSGI](https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/) for more details.
2. Verify that the project works by running the devserver.
````shell
$ python manage.py runserver
````

You should see something like this. Note for now ignore the erros about unapplied migrations.

````shell
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).

You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.

July 16, 2019 - 17:07:09
Django version 2.2.3, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
````
3. Visit http://127.0.0.1:8000/ and you should see a rocket.
4. For more in depth tutorial checkout [Django's Tutorial](https://docs.djangoproject.com/en/2.2/intro/tutorial01/)
5. Now you are ready to begin development of your project.








Loading