khatus.git
6 years agoRename age_max to ttl
Siraaj Khandkar [Thu, 16 Aug 2018 16:59:04 +0000 (12:59 -0400)] 
Rename age_max to ttl

6 years agoLine-buffer upower output
Siraaj Khandkar [Thu, 16 Aug 2018 16:56:34 +0000 (12:56 -0400)] 
Line-buffer upower output

6 years agoRe-arrange redirections for better parallelism
Siraaj Khandkar [Thu, 16 Aug 2018 16:33:57 +0000 (12:33 -0400)] 
Re-arrange redirections for better parallelism

6 years agoMove total_to_diff transform from script to function
Siraaj Khandkar [Thu, 16 Aug 2018 16:20:26 +0000 (12:20 -0400)] 
Move total_to_diff transform from script to function

6 years agoIncrease TTL for most data points
Siraaj Khandkar [Thu, 16 Aug 2018 15:12:10 +0000 (11:12 -0400)] 
Increase TTL for most data points

6 years agoRedesign component interfaces
Siraaj Khandkar [Thu, 16 Aug 2018 00:47:00 +0000 (20:47 -0400)] 
Redesign component interfaces

to be consistent src/key/val triples

6 years agoClear MPD state on non-0 exit from MPD song sensor
Siraaj Khandkar [Mon, 13 Aug 2018 19:43:06 +0000 (15:43 -0400)] 
Clear MPD state on non-0 exit from MPD song sensor

This is only half-arse general solution - while it catches and propagates non-0
exits for all sensors, not all sensors will actually propagate failures from
middles of their pipelines; and controller only handles the mpd case here.

The right thing to do seems to be to save the current timestamp value and
mark every key in the db with it, then only use values that are fresh-enough.
This needs a re-organization of how values are formatted by the sensors and
stored by the controller.

For error-handling we need to enable pipefail option on all sensor scripts,
but, how to parse and handle errors _well_? It seems that shell/awk are no
longer an advantage...

6 years agoFix whitespace
Siraaj Khandkar [Sun, 12 Aug 2018 18:45:38 +0000 (14:45 -0400)] 
Fix whitespace

6 years agoFix iwconfig parser output to include interface
Siraaj Khandkar [Thu, 9 Aug 2018 17:36:11 +0000 (13:36 -0400)] 
Fix iwconfig parser output to include interface

6 years agoAdd TODO for controller k/v API
Siraaj Khandkar [Thu, 9 Aug 2018 17:33:32 +0000 (13:33 -0400)] 
Add TODO for controller k/v API

6 years agoAdd optional sensor performance logging
Siraaj Khandkar [Wed, 8 Aug 2018 17:17:58 +0000 (13:17 -0400)] 
Add optional sensor performance logging

6 years agoAdd redesign notes
Siraaj Khandkar [Wed, 8 Aug 2018 16:39:55 +0000 (12:39 -0400)] 
Add redesign notes

6 years agoFix weather alerts with empty phenomena
Siraaj Khandkar [Wed, 8 Aug 2018 14:06:08 +0000 (10:06 -0400)] 
Fix weather alerts with empty phenomena

6 years agoFix tab invader
Siraaj Khandkar [Wed, 8 Aug 2018 00:10:00 +0000 (20:10 -0400)] 
Fix tab invader

6 years agoAlert on reported weather phenomena
Siraaj Khandkar [Wed, 8 Aug 2018 00:05:00 +0000 (20:05 -0400)] 
Alert on reported weather phenomena

6 years agoGrab wifi status from iwconfig instead of nmcli
Siraaj Khandkar [Tue, 7 Aug 2018 23:04:56 +0000 (19:04 -0400)] 
Grab wifi status from iwconfig instead of nmcli

which reduces our resource footprint

6 years agoRevert "Simplify IPC - no need to name the pipe"
Siraaj Khandkar [Tue, 7 Aug 2018 22:16:00 +0000 (18:16 -0400)] 
Revert "Simplify IPC - no need to name the pipe"

This reverts commit 6ad7b3816d199eddc883bdda5205592f5f0442ae.

Sadly, it breaks the ERROR-tagging loop (which I want to keep) of a sensor's
stderr output (since it is now being unintentionally intercepted by the
OK-tagging loop - duh! :) )

6 years agoExtend TODO for wireless sensor improvements
Siraaj Khandkar [Tue, 7 Aug 2018 15:22:52 +0000 (11:22 -0400)] 
Extend TODO for wireless sensor improvements

6 years agoAdd TODO for nmcli monitor
Siraaj Khandkar [Tue, 7 Aug 2018 13:58:51 +0000 (09:58 -0400)] 
Add TODO for nmcli monitor

6 years agoRename reactor to watcher
Siraaj Khandkar [Mon, 6 Aug 2018 21:27:03 +0000 (17:27 -0400)] 
Rename reactor to watcher

6 years agoSimplify IPC - no need to name the pipe
Siraaj Khandkar [Mon, 6 Aug 2018 21:24:35 +0000 (17:24 -0400)] 
Simplify IPC - no need to name the pipe

6 years agoAdd TODO section to README
Siraaj Khandkar [Mon, 6 Aug 2018 21:19:05 +0000 (17:19 -0400)] 
Add TODO section to README

6 years agoSplit actuator into 2
Siraaj Khandkar [Mon, 6 Aug 2018 21:12:28 +0000 (17:12 -0400)] 
Split actuator into 2

- khatus_actuate_status_bar_to_xsetroot_name
- khatus_actuate_alert_to_notify_send

6 years agoPropagate controller errors as alerts
Siraaj Khandkar [Sat, 4 Aug 2018 19:51:35 +0000 (15:51 -0400)] 
Propagate controller errors as alerts

6 years agoAdd some notes on actuator(s)
Siraaj Khandkar [Fri, 3 Aug 2018 21:59:59 +0000 (17:59 -0400)] 
Add some notes on actuator(s)

6 years agoShow example of error propagation
Siraaj Khandkar [Fri, 3 Aug 2018 20:44:25 +0000 (16:44 -0400)] 
Show example of error propagation

6 years agoSketch a rough design diagram
Siraaj Khandkar [Fri, 3 Aug 2018 20:28:30 +0000 (16:28 -0400)] 
Sketch a rough design diagram

6 years agoAdd actuator prototype
Siraaj Khandkar [Fri, 3 Aug 2018 19:46:22 +0000 (15:46 -0400)] 
Add actuator prototype

6 years agoPropagate sensor errors to controller and trigger alerts
Siraaj Khandkar [Fri, 3 Aug 2018 19:07:50 +0000 (15:07 -0400)] 
Propagate sensor errors to controller and trigger alerts

6 years agoBe a bit more-consistent with while loops
Siraaj Khandkar [Fri, 3 Aug 2018 17:17:24 +0000 (13:17 -0400)] 
Be a bit more-consistent with while loops

6 years agoSimplify CLI option handling
Siraaj Khandkar [Fri, 3 Aug 2018 17:13:36 +0000 (13:13 -0400)] 
Simplify CLI option handling

using associative arrays

6 years agoFix khatus_sensor_bluetooth_power
Siraaj Khandkar [Fri, 3 Aug 2018 17:09:24 +0000 (13:09 -0400)] 
Fix khatus_sensor_bluetooth_power

-e option is not available in dash's echo

6 years agoFix bluetoothctl parser
Siraaj Khandkar [Fri, 3 Aug 2018 16:54:37 +0000 (12:54 -0400)] 
Fix bluetoothctl parser

6 years agoShow "n/a" instead of "off" when no bluetooth controllers were found
Siraaj Khandkar [Wed, 1 Aug 2018 22:42:39 +0000 (18:42 -0400)] 
Show "n/a" instead of "off" when no bluetooth controllers were found

6 years agoLog error on unexpected mute field value
Siraaj Khandkar [Wed, 1 Aug 2018 20:54:49 +0000 (16:54 -0400)] 
Log error on unexpected mute field value

6 years agoSplit-out and refactor 'pactl list sinks' parser
Siraaj Khandkar [Wed, 1 Aug 2018 20:49:21 +0000 (16:49 -0400)] 
Split-out and refactor 'pactl list sinks' parser

6 years agoFix volume sensor
Siraaj Khandkar [Wed, 1 Aug 2018 20:34:17 +0000 (16:34 -0400)] 
Fix volume sensor

6 years agoSplit-out ip addr parser
Siraaj Khandkar [Wed, 1 Aug 2018 19:47:02 +0000 (15:47 -0400)] 
Split-out ip addr parser

6 years agoLeave 2 cats alone
Siraaj Khandkar [Wed, 1 Aug 2018 19:37:42 +0000 (15:37 -0400)] 
Leave 2 cats alone

6 years agoSplit-out and refactor MPD status parser
Siraaj Khandkar [Wed, 1 Aug 2018 19:16:32 +0000 (15:16 -0400)] 
Split-out and refactor MPD status parser

6 years agoUpdate README
Siraaj Khandkar [Wed, 1 Aug 2018 19:06:13 +0000 (15:06 -0400)] 
Update README

adding a mascot

6 years agoRemove some newlines
Siraaj Khandkar [Wed, 1 Aug 2018 18:29:29 +0000 (14:29 -0400)] 
Remove some newlines

6 years agoSplit-out and refactor bluetooth status parser
Siraaj Khandkar [Wed, 1 Aug 2018 18:28:04 +0000 (14:28 -0400)] 
Split-out and refactor bluetooth status parser

6 years agoSplit batter and line_power alerts
Siraaj Khandkar [Wed, 1 Aug 2018 18:04:59 +0000 (14:04 -0400)] 
Split batter and line_power alerts

6 years agoRefactor forking functions
Siraaj Khandkar [Wed, 1 Aug 2018 17:14:44 +0000 (13:14 -0400)] 
Refactor forking functions

6 years agoReact-to, rather than poll-for, energy events
Siraaj Khandkar [Wed, 1 Aug 2018 16:54:51 +0000 (12:54 -0400)] 
React-to, rather than poll-for, energy events

6 years agoAdd msg field to debug
Siraaj Khandkar [Wed, 1 Aug 2018 13:18:04 +0000 (09:18 -0400)] 
Add msg field to debug

6 years agoMake alert subject more-explicit
Siraaj Khandkar [Wed, 1 Aug 2018 13:02:52 +0000 (09:02 -0400)] 
Make alert subject more-explicit

6 years agoRemove dead code
Siraaj Khandkar [Wed, 1 Aug 2018 05:53:54 +0000 (01:53 -0400)] 
Remove dead code

6 years agoInclude more info in mpd song change alert
Siraaj Khandkar [Wed, 1 Aug 2018 05:36:14 +0000 (01:36 -0400)] 
Include more info in mpd song change alert

6 years agoDo not alert on playlist clearing
Siraaj Khandkar [Wed, 1 Aug 2018 04:47:44 +0000 (00:47 -0400)] 
Do not alert on playlist clearing

6 years agoAdd alert - mpd song change
Siraaj Khandkar [Wed, 1 Aug 2018 04:35:13 +0000 (00:35 -0400)] 
Add alert - mpd song change

6 years agoRe-factor MPD currentsong parsing
Siraaj Khandkar [Wed, 1 Aug 2018 03:47:57 +0000 (23:47 -0400)] 
Re-factor MPD currentsong parsing

6 years agoRename split_msg_parts to fields_shift
Siraaj Khandkar [Wed, 1 Aug 2018 03:27:28 +0000 (23:27 -0400)] 
Rename split_msg_parts to fields_shift

6 years agoAdd energy state change alert
Siraaj Khandkar [Wed, 1 Aug 2018 03:08:13 +0000 (23:08 -0400)] 
Add energy state change alert

6 years agoAdd energy alert for <20%
Siraaj Khandkar [Wed, 1 Aug 2018 02:54:53 +0000 (22:54 -0400)] 
Add energy alert for <20%

6 years agoInclude src alert name in alert msg
Siraaj Khandkar [Wed, 1 Aug 2018 02:52:17 +0000 (22:52 -0400)] 
Include src alert name in alert msg

6 years agoRemove unused variable
Siraaj Khandkar [Wed, 1 Aug 2018 02:29:54 +0000 (22:29 -0400)] 
Remove unused variable

6 years agoReduce urgency for bellow-50%-energy alert
Siraaj Khandkar [Wed, 1 Aug 2018 02:17:19 +0000 (22:17 -0400)] 
Reduce urgency for bellow-50%-energy alert

6 years agoAllow passing log dir and pipe as CLI options
Siraaj Khandkar [Wed, 1 Aug 2018 01:33:12 +0000 (21:33 -0400)] 
Allow passing log dir and pipe as CLI options

6 years agoIgnore ./data directory
Siraaj Khandkar [Wed, 1 Aug 2018 00:42:13 +0000 (20:42 -0400)] 
Ignore ./data directory

used for dev testing

6 years agoRedirect stderr of each sensor to a (common) log file
Siraaj Khandkar [Wed, 1 Aug 2018 00:40:50 +0000 (20:40 -0400)] 
Redirect stderr of each sensor to a (common) log file

6 years agoFix energy alert and normalize debug
Siraaj Khandkar [Tue, 31 Jul 2018 21:45:27 +0000 (17:45 -0400)] 
Fix energy alert and normalize debug

6 years agoFix abnormal energy status output
Siraaj Khandkar [Tue, 31 Jul 2018 19:37:18 +0000 (15:37 -0400)] 
Fix abnormal energy status output

6 years agoAdd energy alerts and normalize output channels
Siraaj Khandkar [Tue, 31 Jul 2018 19:34:24 +0000 (15:34 -0400)] 
Add energy alerts and normalize output channels

6 years agoAutomate parameter value reporting
Siraaj Khandkar [Tue, 31 Jul 2018 17:44:05 +0000 (13:44 -0400)] 
Automate parameter value reporting

6 years agoOutput bar on every datetime msg
Siraaj Khandkar [Tue, 31 Jul 2018 17:11:52 +0000 (13:11 -0400)] 
Output bar on every datetime msg

instead of dedicated requests

6 years agoSplit workers into dedicated files
Siraaj Khandkar [Tue, 31 Jul 2018 16:55:16 +0000 (12:55 -0400)] 
Split workers into dedicated files

6 years agoPostfix interval_[in|out]_* with "p"
Siraaj Khandkar [Mon, 30 Jul 2018 16:00:51 +0000 (12:00 -0400)] 
Postfix interval_[in|out]_* with "p"

in a valiant attempt to disambiguate the meaning of "in" and "out" as short for
"input" and "output" while not making the option names too much longer than
they already are...

6 years agoAllow overriding data refresh intervals via CLI options
Siraaj Khandkar [Mon, 30 Jul 2018 15:51:22 +0000 (11:51 -0400)] 
Allow overriding data refresh intervals via CLI options

6 years agoMerge branch 'parallelize_and_reduce_disk_io'
Siraaj Khandkar [Mon, 30 Jul 2018 15:25:38 +0000 (11:25 -0400)] 
Merge branch 'parallelize_and_reduce_disk_io'

6 years agoUpdate screenshot
Siraaj Khandkar [Mon, 30 Jul 2018 15:22:06 +0000 (11:22 -0400)] 
Update screenshot

6 years agoUse temp data directory by default
Siraaj Khandkar [Mon, 30 Jul 2018 15:17:03 +0000 (11:17 -0400)] 
Use temp data directory by default

6 years agoUse copy, rather than link, for install
Siraaj Khandkar [Mon, 30 Jul 2018 15:09:34 +0000 (11:09 -0400)] 
Use copy, rather than link, for install

6 years agoRemove old khatus scripts
Siraaj Khandkar [Mon, 30 Jul 2018 15:00:45 +0000 (11:00 -0400)] 
Remove old khatus scripts

6 years agoAdd missing option spec
Siraaj Khandkar [Mon, 30 Jul 2018 14:55:15 +0000 (10:55 -0400)] 
Add missing option spec

6 years agoUse underscore in CLI options
Siraaj Khandkar [Mon, 30 Jul 2018 14:44:34 +0000 (10:44 -0400)] 
Use underscore in CLI options

6 years agoRename khatus_loop to khatus
Siraaj Khandkar [Mon, 30 Jul 2018 14:21:34 +0000 (10:21 -0400)] 
Rename khatus_loop to khatus

6 years agoClarify comment
Siraaj Khandkar [Mon, 30 Jul 2018 14:16:41 +0000 (10:16 -0400)] 
Clarify comment

6 years agoAdd energy
Siraaj Khandkar [Mon, 30 Jul 2018 14:15:19 +0000 (10:15 -0400)] 
Add energy

6 years agoAdd memory status
Siraaj Khandkar [Mon, 30 Jul 2018 14:06:25 +0000 (10:06 -0400)] 
Add memory status

6 years agoAdd fan speed
Siraaj Khandkar [Mon, 30 Jul 2018 13:40:50 +0000 (09:40 -0400)] 
Add fan speed

6 years agoAdd temperature
Siraaj Khandkar [Mon, 30 Jul 2018 13:25:52 +0000 (09:25 -0400)] 
Add temperature

6 years agoAdd loadavg
Siraaj Khandkar [Mon, 30 Jul 2018 13:16:50 +0000 (09:16 -0400)] 
Add loadavg

6 years agoAdd disk IO stats
Siraaj Khandkar [Mon, 30 Jul 2018 12:57:34 +0000 (08:57 -0400)] 
Add disk IO stats

6 years agoRemove no-longer-used variable
Siraaj Khandkar [Mon, 30 Jul 2018 12:35:41 +0000 (08:35 -0400)] 
Remove no-longer-used variable

6 years agoAdd disk space usage percentage
Siraaj Khandkar [Mon, 30 Jul 2018 12:34:19 +0000 (08:34 -0400)] 
Add disk space usage percentage

6 years agoFix missing newlines in producer messages
Siraaj Khandkar [Sun, 29 Jul 2018 23:56:55 +0000 (19:56 -0400)] 
Fix missing newlines in producer messages

6 years agoAdd network IO stats
Siraaj Khandkar [Sun, 29 Jul 2018 23:43:43 +0000 (19:43 -0400)] 
Add network IO stats

6 years agoAdd WiFi status
Siraaj Khandkar [Sun, 29 Jul 2018 22:22:37 +0000 (18:22 -0400)] 
Add WiFi status

6 years agoAdd Bluetooth power status
Siraaj Khandkar [Sun, 29 Jul 2018 22:15:46 +0000 (18:15 -0400)] 
Add Bluetooth power status

6 years agoAdd screen brightness
Siraaj Khandkar [Sun, 29 Jul 2018 22:11:00 +0000 (18:11 -0400)] 
Add screen brightness

6 years agoConstruct cmd string before passing to spawn
Siraaj Khandkar [Sun, 29 Jul 2018 21:45:01 +0000 (17:45 -0400)] 
Construct cmd string before passing to spawn

(to de-clutter the spawning section)

6 years agoTake parameters from CLI options
Siraaj Khandkar [Sun, 29 Jul 2018 21:23:23 +0000 (17:23 -0400)] 
Take parameters from CLI options

6 years agoAdd volume data
Siraaj Khandkar [Sun, 29 Jul 2018 19:48:49 +0000 (15:48 -0400)] 
Add volume data

6 years agoAdd mpd status and refactor
Siraaj Khandkar [Sun, 29 Jul 2018 19:41:46 +0000 (15:41 -0400)] 
Add mpd status and refactor

6 years agoImprove names
Siraaj Khandkar [Sun, 29 Jul 2018 18:28:04 +0000 (14:28 -0400)] 
Improve names

6 years agoRefactor msg reading function
Siraaj Khandkar [Sun, 29 Jul 2018 04:00:15 +0000 (00:00 -0400)] 
Refactor msg reading function

6 years agoMultiplex stateless writers to one stateful reader
Siraaj Khandkar [Sat, 28 Jul 2018 22:58:01 +0000 (18:58 -0400)] 
Multiplex stateless writers to one stateful reader

6 years agoTake weather station from CLI options
Siraaj Khandkar [Sat, 28 Jul 2018 17:57:13 +0000 (13:57 -0400)] 
Take weather station from CLI options

This page took 0.044643 seconds and 4 git commands to generate.