Commit graph

15 commits

Author SHA1 Message Date
26b6cf5e6c Don't panic when the config file couldn#t be read + disable cli arg "-v". 2021-03-01 00:52:00 +01:00
f50ac52cc1 Add README.md and configuration sample. 2021-03-01 00:50:50 +01:00
20f6438343 Change default name of configuration file to /etc/s0_meter.cfg 2021-03-01 00:00:42 +01:00
a2a3e8f98f Use name "channel_id" in response when pulses are requested via REST API. 2021-03-01 00:00:00 +01:00
ddd231c0eb Add rpi_pin_manager and make the app working on RPi. 2021-02-28 22:22:15 +01:00
38024dfc5d Build IP address and port of REST API from default values. 2021-02-25 23:00:32 +01:00
66d7958392 Add build target for RPi which will access the GPIOs if build-option --fetaure "rppal" is passed. 2021-02-25 22:58:52 +01:00
95f2611049 Add comment to explain why we sleep a little after spawning the thread. 2021-02-25 22:15:26 +01:00
1c7103a512 First implementation of REST API 2021-02-25 22:15:26 +01:00
86f9355464 Add one pulse lists per input channel to store the received pulses 2021-02-25 22:14:29 +01:00
9dc91f2512 Remove unused code and fix warnings 2021-02-25 22:11:07 +01:00
2ab7fcbe08 Implement pulse_counter 2021-02-25 21:59:09 +01:00
1070815482 Add Cargo.lock 2021-02-11 22:09:48 +01:00
7d02ff7f0a Implement config file reader 2021-02-11 22:09:29 +01:00
264acc6645 Initial commit 2021-02-11 15:05:10 +01:00