]>
rtime.felk.cvut.cz Git - coffee/mt-apps.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Michal Sojka [Sun, 2 Aug 2020 18:52:17 +0000 (20:52 +0200)]
mt_server: Use "%s" format string in syslog()
This fixes potential security problem reported by
-Werror=format-security:
error: format not a string literal and no format arguments
Michal Sojka [Mon, 19 Aug 2019 10:47:33 +0000 (12:47 +0200)]
Uses letters in test identifiers, not only numbers
This helps in catching errors where strings (IDs) are incorrectly used
as numbers.
Michal Sojka [Thu, 16 Aug 2018 21:52:06 +0000 (23:52 +0200)]
Make it easier to call showOfflineQueue() from remote scripts
Michal Sojka [Thu, 16 Aug 2018 21:49:58 +0000 (23:49 +0200)]
Replace tabs with spaces
Michal Sojka [Thu, 16 Aug 2018 21:48:47 +0000 (23:48 +0200)]
Do not generate "empty" messages
They were probably not used for anything useful. They cluttered logs
and made debugging harder.
Michal Sojka [Thu, 16 Aug 2018 17:42:53 +0000 (19:42 +0200)]
Rework offline mode
In offline mode, we now show the collected data and inform the user
that she can still make a coffee :)
The main idea is that when the server is offline, no leftovers from
remote UI is shown, only local div is shown. Hiding and showing of
local/remote UI has to be implemented in remote-provided
javascript (in coffee-flask repo).
Michal Sojka [Thu, 16 Aug 2018 16:10:01 +0000 (18:10 +0200)]
Store offline data in an array rather than in a hash
This has several reasons:
1) The hash (i.e. localStorage) used timestamps as keys. When doing
automated testing, multiple events can happen to have the same key,
which causes problems - see the next point.
2) Events from localStorage has to be sent to the web server in the
order of their creation. This means that before sending, we had to
convert the hash into an array and sort it according to the
timestamp. This can be avoided if we use an array from the
beginning.
Michal Sojka [Thu, 16 Aug 2018 16:06:33 +0000 (18:06 +0200)]
Use more distinguishable user ids for simulated users
Michal Sojka [Thu, 16 Aug 2018 15:37:58 +0000 (17:37 +0200)]
Replace tabs with spaces
Michal Sojka [Wed, 8 Aug 2018 15:27:46 +0000 (17:27 +0200)]
Make Makefile cleaner
Michal Sojka [Wed, 8 Aug 2018 15:18:18 +0000 (17:18 +0200)]
Fix compilation errors
Michal Sojka [Wed, 8 Aug 2018 13:50:13 +0000 (15:50 +0200)]
Use server at localhost
This makes it easier to hack on the terminal. When we build the mtaio
for the terminal, buildroot patches the correct URL in.
Michal Sojka [Wed, 8 Aug 2018 13:42:58 +0000 (15:42 +0200)]
Makefile: Remove all autodetection
Simulator is now compiled as
make SIM=1
Michal Sojka [Wed, 8 Aug 2018 13:34:29 +0000 (15:34 +0200)]
Compile our version of libwebsockets if not found in the system
This is mainly for simulator purpuses.
Michal Sojka [Wed, 8 Aug 2018 11:47:02 +0000 (13:47 +0200)]
Add charset to the html document
Without it, the strings produced by javascript are not treated as UTF-8.
Michal Sojka [Wed, 8 Aug 2018 10:59:19 +0000 (12:59 +0200)]
Log to syslog
Michal Sojka [Wed, 8 Aug 2018 10:58:57 +0000 (12:58 +0200)]
Add simulator mode (for debugging without terminal)
Michal Sojka [Wed, 8 Aug 2018 10:10:31 +0000 (12:10 +0200)]
Convert keys JSON printing to a function
... so that we can use it in a simulator.
Michal Sojka [Wed, 8 Aug 2018 09:31:52 +0000 (11:31 +0200)]
Convert RFID printing to a function
... so that we can use it in a simulator.
Michal Sojka [Tue, 7 Aug 2018 11:04:43 +0000 (13:04 +0200)]
Use correct URL of the rtime server
We use plain IP address in an attempt to avoid CIIRC's NAT, which
would prevent us knowing the source IP address. The idea is that we
will allow the request only from the IP address of the terminal.
Michal Sojka [Tue, 7 Aug 2018 09:21:15 +0000 (11:21 +0200)]
Change blank time
Michal Sojka [Tue, 7 Aug 2018 08:43:15 +0000 (10:43 +0200)]
Move the server to rtime
Michal Sojka [Tue, 7 Aug 2018 08:39:18 +0000 (10:39 +0200)]
Fix Makefile to work under buildroot
Michal Sojka [Mon, 6 Aug 2018 22:15:22 +0000 (00:15 +0200)]
Blank the screen during inactivity
Michal Sojka [Mon, 6 Aug 2018 15:34:46 +0000 (17:34 +0200)]
Periodically attempt to load server script until it succeeds
Michal Sojka [Mon, 6 Aug 2018 15:33:53 +0000 (17:33 +0200)]
Improve web page
Michal Sojka [Mon, 6 Aug 2018 14:39:28 +0000 (16:39 +0200)]
Try to reconnect the disconnected socket every 10 seconds
Michal Sojka [Mon, 6 Aug 2018 11:55:27 +0000 (13:55 +0200)]
Allow using different input event source
Useful for testing on different hardware (e.g. my laptop).
Michal Sojka [Mon, 6 Aug 2018 11:48:46 +0000 (13:48 +0200)]
Check open() errors correctly
Michal Sojka [Mon, 6 Aug 2018 11:45:47 +0000 (13:45 +0200)]
Autodetect RFID support and allow compiling without it
Michal Sojka [Mon, 6 Aug 2018 11:14:34 +0000 (13:14 +0200)]
Use GCC's designated initializers to initialize structure fields
This results in more meaningful error messages when one tries to compile
it against incompatible version of libwebsockets.
Michal Sojka [Mon, 6 Aug 2018 10:59:46 +0000 (12:59 +0200)]
Make error message more useful
Jiří Matěják [Wed, 23 May 2018 23:20:56 +0000 (01:20 +0200)]
<hr> in "local"
Jiří Matěják [Tue, 22 May 2018 14:14:54 +0000 (16:14 +0200)]
reload button
Jiří Matěják [Tue, 22 May 2018 08:42:21 +0000 (10:42 +0200)]
data stored in context
Jiří Matěják [Mon, 21 May 2018 19:05:44 +0000 (21:05 +0200)]
each line is sent only once, default is empty
Jiří Matěják [Fri, 18 May 2018 09:45:10 +0000 (11:45 +0200)]
free and destroy
Jiří Matěják [Fri, 18 May 2018 08:58:37 +0000 (10:58 +0200)]
line length equals buffer size
Jiří Matěják [Fri, 18 May 2018 08:56:00 +0000 (10:56 +0200)]
free line on error
Jiří Matěják [Fri, 18 May 2018 02:32:58 +0000 (04:32 +0200)]
queue improved
Jiří Matěják [Fri, 18 May 2018 01:08:14 +0000 (03:08 +0200)]
queue input events
Jiří Matěják [Fri, 18 May 2018 00:47:07 +0000 (02:47 +0200)]
new index.html
Jiří Matěják [Fri, 18 May 2018 00:46:08 +0000 (02:46 +0200)]
.gitignore
Jiří Matěják [Wed, 16 May 2018 11:35:43 +0000 (13:35 +0200)]
wtf resolved, was missing LWS_PRE
Jiří Matěják [Tue, 15 May 2018 15:34:59 +0000 (17:34 +0200)]
remote
Jiří Matěják [Fri, 4 May 2018 10:18:59 +0000 (12:18 +0200)]
remove gpio from Makefile
Jiří Matěják [Fri, 4 May 2018 10:16:45 +0000 (12:16 +0200)]
mt_gpio.h, trigger happy keys, mt_gpio in Makefile
Jiří Matěják [Fri, 4 May 2018 10:13:13 +0000 (12:13 +0200)]
mt_gpio.c (libgpiod example, unusable - no debouncing)
Jiří Matěják [Thu, 3 May 2018 18:01:58 +0000 (20:01 +0200)]
key
Jiří Matěják [Thu, 3 May 2018 08:25:44 +0000 (10:25 +0200)]
gpio started
Jiří Matěják [Fri, 27 Apr 2018 10:21:40 +0000 (12:21 +0200)]
Makefile improved
Jiří Matěják [Fri, 27 Apr 2018 08:58:52 +0000 (10:58 +0200)]
safer error checking and more doc
Jiří Matěják [Fri, 27 Apr 2018 08:47:34 +0000 (10:47 +0200)]
html dir changed
Jiří Matěják [Fri, 27 Apr 2018 08:35:54 +0000 (10:35 +0200)]
no, one more rename
Jiří Matěják [Fri, 27 Apr 2018 08:34:53 +0000 (10:34 +0200)]
hopefully the last mistake gone
Jiří Matěják [Fri, 27 Apr 2018 08:28:29 +0000 (10:28 +0200)]
main app renamed
Jiří Matěják [Thu, 26 Apr 2018 17:58:18 +0000 (19:58 +0200)]
lowercase doctype
Jiří Matěják [Thu, 26 Apr 2018 17:56:01 +0000 (19:56 +0200)]
printf string corrected
Jiří Matěják [Thu, 26 Apr 2018 17:43:07 +0000 (19:43 +0200)]
mtrfid functions print fd number
Jiří Matěják [Thu, 26 Apr 2018 17:37:27 +0000 (19:37 +0200)]
doc, cleaning, no per session data
Jiří Matěják [Thu, 26 Apr 2018 16:02:34 +0000 (18:02 +0200)]
remove timer remnants
Jiří Matěják [Thu, 26 Apr 2018 15:52:38 +0000 (17:52 +0200)]
almost ready
Jiří Matěják [Thu, 26 Apr 2018 12:03:37 +0000 (14:03 +0200)]
websockets server added
Jiří Matěják [Tue, 24 Apr 2018 16:47:41 +0000 (18:47 +0200)]
tiny doc and macros
Jiří Matěják [Tue, 24 Apr 2018 15:36:48 +0000 (17:36 +0200)]
conditional beep
Jiří Matěják [Tue, 24 Apr 2018 15:26:16 +0000 (17:26 +0200)]
Makefile: no win, no pthread
Jiří Matěják [Tue, 24 Apr 2018 15:24:25 +0000 (17:24 +0200)]
async uid + libev
Jiří Matěják [Mon, 23 Apr 2018 16:27:19 +0000 (18:27 +0200)]
-pthread added
Jiří Matěják [Mon, 23 Apr 2018 15:57:20 +0000 (17:57 +0200)]
doc
Jiří Matěják [Mon, 23 Apr 2018 14:50:14 +0000 (16:50 +0200)]
header file, open arguments from self, getopts beep
Jiří Matěják [Mon, 23 Apr 2018 14:48:38 +0000 (16:48 +0200)]
main renamed
Jiří Matěják [Mon, 23 Apr 2018 14:47:57 +0000 (16:47 +0200)]
windows compatible Makefile
Jiří Matěják [Mon, 23 Apr 2018 14:45:11 +0000 (16:45 +0200)]
formatting
Jiří Matěják [Mon, 23 Apr 2018 13:32:55 +0000 (15:32 +0200)]
print simple json when a card is nearby
Jiří Matěják [Thu, 19 Apr 2018 13:20:21 +0000 (15:20 +0200)]
read card id, retab
Jiří Matěják [Tue, 17 Apr 2018 15:44:17 +0000 (17:44 +0200)]
try it without include dir
Jiří Matěják [Tue, 17 Apr 2018 13:31:36 +0000 (15:31 +0200)]
open reader manually
Jiří Matěják [Tue, 17 Apr 2018 11:53:56 +0000 (13:53 +0200)]
missing separator 2
Jiří Matěják [Tue, 17 Apr 2018 11:53:01 +0000 (13:53 +0200)]
missing separator
Jiří Matěják [Tue, 17 Apr 2018 11:50:39 +0000 (13:50 +0200)]
second try
Jiří Matěják [Tue, 17 Apr 2018 11:38:27 +0000 (13:38 +0200)]
include no path
Jiří Matěják [Tue, 17 Apr 2018 11:36:49 +0000 (13:36 +0200)]
Makefile updated
Jiří Matěják [Tue, 17 Apr 2018 10:49:49 +0000 (12:49 +0200)]
init