occupancy's Introduction
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/)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.