Skip to content

jordanfelle/Occupancy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes about Occupany Script - 2014-11-08

Get running notes:
* Files are written as Bash scripts
* Place all 3 files in /opt/ocs/ 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
* make sure the right variables have quotes in the config file.
* for web-based override, use apache to serve the "www" folder in a local network (NOT publicly accessible internet) 

Dependencies: (commands that need to be run)
wget
python
curl
convert
cut
ftp
nc
grep
mplayer
apache2
php
libapache2-mod-php

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

Languages

  • Shell 65.9%
  • Python 13.9%
  • PHP 7.3%
  • JavaScript 6.5%
  • HTML 3.5%
  • CSS 2.9%