summaryrefslogtreecommitdiffstats
path: root/hvac.json
diff options
context:
space:
mode:
authorYordan Dimitrov <y.dimitrov.14@gmail.com>2018-07-07 11:07:58 +0300
committerYordan Dimitrov <y.dimitrov.14@gmail.com>2018-07-10 14:37:27 +0300
commit1aa5a65601669dc33c1ce8729ca607d847985a44 (patch)
treee06de02170cc6769d2d1f7f33501e255581d0b98 /hvac.json
parentf18741520f54365141d997fe7a7a40d0b8f9bc5e (diff)
Setting up a JSON configuration file to change LED paths without recompilingflounder_5.99.2flounder/5.99.25.99.2
v1 - the change allows the paths to the LED folders to be changed without having to recompile the widget - the JSON file itself is included in this commit with the name "hvac.json" - the location which the parser expects the configuration file to be in is /etc v2 - optimised code in terms of opening and closing paths for writing - put afb header definitions together v3 - removed all caps warning notifications Change-Id: If075c6650d8802849cbd706be4adbca9f1996c9e Signed-off-by: Yordan Dimitrov <y.dimitrov.14@gmail.com>
Diffstat (limited to 'hvac.json')
-rw-r--r--hvac.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/hvac.json b/hvac.json
new file mode 100644
index 0000000..6e7d0db
--- /dev/null
+++ b/hvac.json
@@ -0,0 +1,7 @@
+{
+ "ledtemp": {
+ "red": "/sys/class/leds/blinkm-3-9-red/brightness",
+ "green": "/sys/class/leds/blinkm-3-9-green/brightness",
+ "blue": "/sys/class/leds/blinkm-3-9-blue/brightness"
+ }
+} \ No newline at end of file