CommunityData:Light events: Difference between revisions

From CommunityData
(→‎What's Happening: make code work)
m (Benjamin Mako Hill moved page Light Events to CommunityData:Light events)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
Let's find out how long it takes for the second light to turn on. It feels like it is taking longer and longer over time. Let's find out if it really is using simple unix commands.  
Let's find out how long it takes for the second light to turn on. It feels like it is taking longer and longer over time. Let's find out if it really is using simple unix commands.  


   alias switchon='echo "switch $(date)" >> lightdata'                                                       
   alias switchon='echo "switch $(date)" >> ~/lightdata'                                                       
   alias lighton='echo "light $(date)" >> lightdata'                                                         
   alias lighton='echo "light $(date)" >> ~/lightdata'                                                         
                                                        
                                                        


After a few weeks we can merge our lightdata files and find out if the trend that the lights are taking longer to turn over time is real.
After a few weeks we can merge our lightdata files and find out if the trend that the lights are taking longer to turn over time is real.

Latest revision as of 22:23, 22 July 2017

What's Happening[edit]

The light in the lab is slightly broken. You flip the light switch and the light turns on. Or does it? After some time another light might turn on. Surprise!

Let's find out how long it takes for the second light to turn on. It feels like it is taking longer and longer over time. Let's find out if it really is using simple unix commands.

 alias switchon='echo "switch $(date)" >> ~/lightdata'                                                      
 alias lighton='echo "light $(date)" >> ~/lightdata'                                                        
                                                     

After a few weeks we can merge our lightdata files and find out if the trend that the lights are taking longer to turn over time is real.