mirror of
				https://forge.katzen.cafe/schrottkatze/nix-configs.git
				synced 2025-10-31 01:27:57 +01:00 
			
		
		
		
	continue work on ICE tacho
This commit is contained in:
		
					parent
					
						
							
								f0b640eeed
							
						
					
				
			
			
				commit
				
					
						effe29cd74
					
				
			
		
					 2 changed files with 51 additions and 17 deletions
				
			
		|  | @ -47,8 +47,19 @@ | |||
|   ) | ||||
| ) | ||||
| 
 | ||||
| (defpoll iceData | ||||
|   :interval "2s" | ||||
|   :initial "" | ||||
|   `(iw dev wlp4s0 link | grep "WIFIonICE" > /dev/null) && curl https://iceportal.de/api1/rs/status` | ||||
| (defwidget iceTacho [] | ||||
|   (box | ||||
|     :class "iceTacho" | ||||
|     :tooltip "Tz${iceTachoData.tzn} (BR ${iceTachoData.br})" | ||||
|     (circular-progress | ||||
|       :value { iceTachoData.frac * 60 + 20 } | ||||
|       :thickness 3 | ||||
|     ) | ||||
|     (label :text "${iceTachoData.speed} km/h") | ||||
|   ) | ||||
| ) | ||||
| 
 | ||||
| (deflisten iceTachoData | ||||
|   :initial "null" | ||||
|   { "~/.config/eww/scripts/iceTacho.nu" } | ||||
| ) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Schrottkatze
				Schrottkatze