Pim van Pelt 
							
						 
					 
					
						
						
							
						
						f5ea934dfb 
					 
					
						
						
							
							Add timespec_{read,write}_file() and unit tests  
						
						 
						
						
						
						
					 
					
						2018-11-04 17:40:12 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						560c81cbfd 
					 
					
						
						
							
							Add channel_get_timespec()  
						
						 
						
						
						
						
					 
					
						2018-11-04 16:44:47 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						a01e548249 
					 
					
						
						
							
							add timespec_clear_spec() and timespec_get_spec()  
						
						 
						
						
						
						
					 
					
						2018-11-04 16:17:35 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						0ad33f5fbc 
					 
					
						
						
							
							Add timespec() and channel_override logic -- so we can install a time specification with which the channels are driven, but yet allowing a human override (either by RPC or by Button)  
						
						 
						
						
						
						
					 
					
						2018-11-04 15:44:17 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						d5778c6fba 
					 
					
						
						
							
							Add timespec_match_now() based on localtime()  
						
						 
						
						
						
						
					 
					
						2018-11-04 15:43:32 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						5c26d2d43b 
					 
					
						
						
							
							format with uncrustify  
						
						 
						
						
						
						
					 
					
						2018-11-04 14:19:00 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						5a39c618ce 
					 
					
						
						
							
							Allow LED and Relay logic level to be inverted  
						
						 
						
						
						
						
					 
					
						2018-11-04 14:10:28 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						8eb6bcb112 
					 
					
						
						
							
							add channel_set_duration() for timer based polls  
						
						 
						
						
						
						
					 
					
						2018-11-01 20:29:51 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						d673cda325 
					 
					
						
						
							
							Remove cooldown check - this is not what we're looking for  
						
						 
						
						
						
						
					 
					
						2018-11-01 14:11:37 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						3e3d9dcbe0 
					 
					
						
						
							
							Add timespec -- add tests for it too.  
						
						 
						
						
						
						
					 
					
						2018-10-28 12:47:42 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						491ba88d1a 
					 
					
						
						
							
							Formatting  
						
						 
						
						
						
						
					 
					
						2018-04-17 15:00:29 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						8bf7b919cc 
					 
					
						
						
							
							Factor out DHT  
						
						 
						
						... 
						
						
						
						It's now its own library (in git@git.ipng.nl:pim/prometheus-sensors) 
						
						
					 
					
						2018-03-04 16:38:54 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						bb62e9b6ae 
					 
					
						
						
							
							Add DHT support.  
						
						 
						
						... 
						
						
						
						Very rough stab just to test the waters -- this will need some
more work.
For now, hard code 4,5,15 pins (as per Sonoff SV), but before
rolling this out, add a config flag for this behavior.
Neat trick -- the presence of dht library in mos.yml triggers
inclusion of the code via define -DMGOS_HAVE_DHT=1 
						
						
					 
					
						2018-02-11 13:20:36 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						4a083555e8 
					 
					
						
						
							
							Clean up RPC response.  
						
						 
						
						... 
						
						
						
						- Refactor mqtt_publish_stat() to take va_list
- Make publish_stat format its response with json_vprintf() so it is
  valid JSON.
- Call publish_stat in channel_set, the only place where the GPIO state
  changes
- Return (valid) JSON response in all RPCs 
						
						
					 
					
						2018-01-24 14:08:29 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						118eb14447 
					 
					
						
						
							
							Rewrite statusled implementation.  
						
						 
						
						... 
						
						
						
						- Read it now from app.config JSON file.
- Allow for inverted status leds (Sonoff et al)
- Clean up unit tests. 
						
						
					 
					
						2018-01-24 13:33:13 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						f0fa04dc26 
					 
					
						
						
							
							s/led_green/led_status/g because not all status leds are green :)  
						
						 
						
						
						
						
					 
					
						2018-01-22 23:23:43 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						3327a561f9 
					 
					
						
						
							
							Add channel_get_total()  
						
						 
						
						
						
						
					 
					
						2018-01-22 22:23:48 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						4679636fdc 
					 
					
						
						
							
							Initial checkin.  
						
						 
						
						
						
						
					 
					
						2018-01-05 16:58:15 +01:00