Skip to content

Unallocated/Occupancy

Repository files navigation

Notes about Occupany Script - 2017-06-10

Get running notes:
* Files are written as Bash scripts
* Place all 3 files in /opt/uas/Occupancy/ because this location is hard-coded.
* Add a line to cron to run the ocs_start.sh at box restart.
* Add the UAS website login credentials to the ocs_config.cfg file.
* make the scripts executable using 'chmod +x osc.sh' and 'chmod +x osc_start.sh'
* add file permissions to source the config file using 'chmod 744 ocs.cfg'
* add file permissions to play the WAV files < Commented out 2017-06-10
* make sure the right variables have quotes in the config file.
* use nginx to serve the "www" folder in a local network (NOT publicly accessible internet) 
* cp occupancy.service to /etc/systemd/system/ run sudo chmod 664 /etc/systemd/system/occupancy.service && sudo systemctl daemon-reload && sudo systemctl enable occupancy.service then sudo systemctl start occupancy.service

Dependencies: (commands that need to be run)
wget
python
curl
convert
cut
ftp
nc
grep
mplayer
nginx
tweepy
php-fpm

2017-06-10 Update
Light sensor was not working:
    * Moved away from light sensor to use a web based open and close system
    * Page is loaded on a pi3 for members that do not have a web capable device on space wifi
Cleaned up
    * Commented out all mentions of audio play, USB detection, checkin, and IRC. These features can be added back later as needed
    * Moved to a VM to retire standalone box
2014-11-08 Update
Currently not working: 
    * Tweet command for open not working. Didn't have correct syntax when I stopped coding.
    * WAV files for nowopen and nowclosed are not packaged with these files. They need to be added, and a path in the config file updated.
Things that need to change:
    * Posting status file onto the website is inefficient. Should change based on web admin recommendations.
    * /opt/ocs may be a bad directory to use. Change the hardcoded values in all 3 files to whatever you see fit (ex. /etc/ocs/) 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published