Advertisement
Infra_HDC

Mini CO2 Monitor

Jun 1st, 2018
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.52 KB | None | 0 0
  1. # cat /etc/udev/rules.d/90-co2mini.rules
  2. ACTION=="remove", GOTO="co2mini_end"
  3.  
  4. SUBSYSTEMS=="usb", KERNEL=="hidraw*", ATTRS{idVendor}=="04d9", ATTRS{idProduct}=="a052", GROUP="plugdev", MODE="0660", SYMLINK+="co2mini", GOTO="co2mini_end"
  5.  
  6. LABEL="co2mini_end"
  7. $ crontab -l
  8. #for bak arp
  9. @daily cd ~/arp ; ./arp-dl.sh
  10. # for speedtest
  11. @midnight cd ~/speedtest ; ./speedtest-header.sh
  12. 1,3,5,7,9 */2 * * * cd ~/speedtest ; ./speedtest-measure.sh
  13.  
  14. #co2 measurement
  15. */3 *   * * *   /home/username/co2/bin/monitor.py /dev/co2mini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement