Giter VIP home page Giter VIP logo

lm_script's Introduction

Light Monitor Interface Scripts

Python interface scripts for the light sensors and calibration tube.

Setting the Light Monitor's Time

Reads the system time and set's the sensor's time. This will allow the sensor's time to match the system time within one second.

Script Name: settime.py Argument(s):

  • -p: serial port where the sensor is connected, e.g. /dev/ttyACM0 Example Usage:
bhimebau@mercury:~/forge/outdoor-monitor/lm_script$ ./settime.py -p /dev/ttyACM0
Sensor's Old Date/Time: 05/15/2020 08:53:50
Sensor's New Date/Time: 05/15/2020 08:53:50
bhimebau@mercury:~/forge/outdoor-monitor/lm_script$

Getting the Light Monitor's Time

Reads the sensor's current time and them compares it to the system time. This should match within one second when checked close to setting the time. This utility is intended to be used to check the time when a significant drift is expected.

Script Name: gettime.py Argument(s):

  • -p: serial port where the sensor is connected, e.g. /dev/ttyACM0 Example Usage:
bhimebau@mercury:~/forge/outdoor-monitor/lm_script$ ./gettime.py -p /dev/ttyACM0
Sensor's Current Date/Time: 05/15/2020 08:53:00
Time Delta (Sensor Time-System Time): 0 seconds
bhimebau@mercury:~/forge/outdoor-monitor/lm_script$ 

lm_script's People

Contributors

bhimebau avatar

Stargazers

Ryan Jacobson avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.