26 Commits

Author SHA1 Message Date
65aa7166cf Updated Readme.md to clarify the rc.local 2021-12-18 12:42:55 +01:00
Derisis13
d55e979270 Update README.md
Added a schematic screenshot to aid wiring
2021-11-19 02:14:03 +01:00
a8b73399ef Merge branch 'main' of https://github.com/Derisis13/Shutter 2021-11-19 02:10:45 +01:00
b1aa872b33 Added a COPYING file containing the GPLv3 license which applies to this code. 2021-11-19 02:09:15 +01:00
2266485a23 Added example schedule file 2021-11-19 02:04:32 +01:00
f477d11fbb Replaced Clion auto headers with GPLv3 compatible headers 2021-11-19 01:55:33 +01:00
Derisis13
e9bc373e2a Create README.md
No pictures just jet 😞
2021-11-19 01:50:02 +01:00
9770065582 Changed to the English name of weekdays for international compatibility 2021-11-19 01:12:17 +01:00
80f79cc863 Deleted debug files, added new header to main.c 2021-11-19 01:09:30 +01:00
9d1486acdc Created a #define for the reset gpio 2021-11-19 01:04:01 +01:00
62d48c3783 Changed .gitignore 2021-09-30 15:45:53 +02:00
b82fb898e9 Version 1.5.1
Added dynamic memory management for shutters (functions in shutter.c).
Code is now much easier to tailor to specific needs and works better in the limited RAM of routers.
Memory leaks were not found by Valgrind Memcheck.
2021-09-19 12:01:49 +02:00
bf6c12a13f Version 1.4.7
Tweaked timing for press_button
2021-09-19 11:23:08 +02:00
cec5add609 finalised CMakeLists.txt 2021-09-09 17:26:14 +02:00
b98470381f renamed cmake project to redony from redony_automata 2021-09-09 17:03:45 +02:00
1ed34129ea Added .idea to .gitignore 2021-09-09 16:36:13 +02:00
5777ded698 Version 1.4.6
fixed freakin' typo, added a .gitignore
2021-09-09 16:35:18 +02:00
027be9bc9b Version 1.4.6
fixed freakin' typo
2021-09-08 22:26:44 +02:00
973fde4697 Version 1.4.5
Bugfix: now function press_button doesn't leak memory
2021-08-31 20:44:10 +02:00
9109cc8077 Version 1.4.4
Changed function check_timing: now it takes a struct tm* instead of generating one - now the main function gets the current time after initialising the shutter array.
2021-08-30 21:52:18 +02:00
a9950e6c13 Revert "Version 1.4.4"
This reverts commit 0168aadc28.
2021-08-30 21:20:22 +02:00
0168aadc28 Version 1.4.4
Bugfix: in function lower the time slept was 1/10th of what is neccesary. Now it is multiplied by 100000 instead od 10000.
2021-08-30 21:05:01 +02:00
da56a0eb10 Version 1.4.3
Bugfix: in function set_ch the address of channel was incremented instead of the value of it
Bugfix: in function get_timing integers were read to byte sized fields causing memory corruption
Updated and renamed moving_debug.c & moving_debug.h
2021-08-30 20:33:19 +02:00
0833762006 Changed comments, variable names and filenames to be in English 2021-08-30 19:04:07 +02:00
6bc23c92fe Version 1.4
Reworked channel changing: now it tracks the current ch. and resets only once. This makes the program to finish faster.
Added rolltime_down and percentage values to shutter structure: now the schedule file needs to contain a percentage column after the timestamp for lowering, and a rolltime needs to be defined for each shutter in the beginning of the program. When lowering shutters, there's a calculation to sleep until the desired percentage is reached, when the shutter is stopped
The way to deactivate shutters has changed: now you need to set the percentage to 0.
2021-08-30 18:47:21 +02:00
877614b7a3 Version 1.1: Second working version. First commit. Added features: disabling channels for the day by having the same raise and lower timings. 2021-08-30 17:21:29 +02:00