Commit Graph

84 Commits

Author SHA1 Message Date
ishak jmilou.ishak
8d339851dd commented sensor data 2025-01-09 14:51:17 +01:00
ishak jmilou.ishak
79c2073d29 want to check data 2025-01-09 14:50:41 +01:00
ishak jmilou.ishak
ffbf3347f4 removed parameter 2025-01-09 14:37:26 +01:00
ishak jmilou.ishak
64452b78b4 fix: retrieve JSON data directly in sensor_data function 2025-01-09 14:36:57 +01:00
ishak jmilou.ishak
c87ebc565c fix: parse JSON message before saving sensor data 2025-01-09 14:34:26 +01:00
ishak jmilou.ishak
39659fffab fix: correct variable name in on_message function to use 'data' instead of 'kobuki_message' 2025-01-09 14:30:33 +01:00
ishak jmilou.ishak
a4ae0170a0 refactor: update sensor_data function to accept data directly instead of JSON string 2025-01-09 14:29:54 +01:00
ishak jmilou.ishak
ed475cd19f split the data 2025-01-09 14:28:04 +01:00
ishak jmilou.ishak
a9c37ec470 fix: ensure app context is set when saving sensor data 2025-01-09 14:21:06 +01:00
ishak jmilou.ishak
369120b16b feat: save sensor data to the database upon receiving message 2025-01-09 14:19:01 +01:00
ishak jmilou.ishak
ec71028270 wrote own functions for sending data 2025-01-09 14:16:16 +01:00
ishak jmilou.ishak
7560b0f67a changed to 2 functions 2025-01-09 14:09:33 +01:00
ishak jmilou.ishak
331de940cc fixed variable name 2025-01-09 14:06:13 +01:00
ishak jmilou.ishak
ec0b32a221 changed name 2025-01-09 14:04:40 +01:00
ishak jmilou.ishak
3aa77f5314 feat: insert sensor data into the database upon command execution 2025-01-09 14:03:24 +01:00
ishak jmilou.ishak
e59f235b91 changed db send data to other function 2025-01-09 13:58:34 +01:00
ishak jmilou.ishak
2e4f048ed9 feat: call save_sensor_data function upon receiving kobuki/data message 2025-01-09 13:56:45 +01:00
ishak jmilou.ishak
9a3829cdb2 feat: add save_sensor_data function to insert sensor data into the database 2025-01-09 13:54:15 +01:00
ishak jmilou.ishak
2396d61eae fix: update on_message function signature to include userdata parameter 2025-01-09 13:24:57 +01:00
ishak jmilou.ishak
d066f68ad2 replaced /data endpoint 2025-01-09 12:56:25 +01:00
ishak jmilou.ishak
a2aa80804e fix: move mqtt_client.on_message assignment under function definition 2025-01-09 12:47:39 +01:00
ishak jmilou.ishak
1a4056ff77 return raw kobuki_message instead of jsonify in data endpoint 2025-01-09 12:02:36 +01:00
ishak jmilou.ishak
52eff9ec39 return JSON response for /data endpoint 2024-12-19 22:02:36 +01:00
ishak jmilou.ishak
a6b1c04ea3 returned global variables 2024-12-19 20:03:36 +01:00
ishak jmilou.ishak
9cd6d3aa79 removed variable 2024-12-19 20:01:09 +01:00
ishak jmilou.ishak
072b54af04 added kobuki_message 2024-12-17 15:49:32 +01:00
ishak jmilou.ishak
e0560d7162 changed mqtt port 2024-12-17 15:43:05 +01:00
ishak jmilou.ishak
4da91f22ca changed 2024-12-17 15:03:21 +01:00
ishak jmilou.ishak
c4d2888fbf changed order 2024-12-17 14:58:31 +01:00
ishak jmilou.ishak
4307d0a8d5 test if i still get error 2024-12-17 14:57:01 +01:00
ishak jmilou.ishak
12c4e63022 test 2024-12-17 14:48:39 +01:00
ishak jmilou.ishak
9ea6ed5e2d removed in /move 2024-12-17 14:43:13 +01:00
ishak jmilou.ishak
92992288b5 returned function i removed by accident 2024-12-17 14:41:13 +01:00
ishak jmilou.ishak
ef572c6539 made function for db connection 2024-12-17 14:38:16 +01:00
ishak jmilou.ishak
10a7a2b98c add direction to db when pressed button 2024-12-17 14:08:42 +01:00
ishak jmilou.ishak
651dcbc6a5 see if connection is actually made 2024-12-17 14:01:15 +01:00
ishak jmilou.ishak
3c3f8b93db changed data i want to execute 2024-12-17 13:58:18 +01:00
ishak jmilou.ishak
d6c3383ef0 check to see if website is updated 2024-12-17 13:44:35 +01:00
ishak jmilou.ishak
df6a49bbaa test to get db info 2024-12-17 13:42:14 +01:00
ishak jmilou.ishak
869f320446 fixed typo 2024-12-12 14:01:35 +01:00
ishak jmilou.ishak
820cb39781 changed mysql package 2024-12-12 14:00:26 +01:00
ishak jmilou.ishak
5c4a0f1e9d busy with sending command to database 2024-12-11 18:45:22 +01:00
ishak jmilou.ishak
e77aa4b2dc try to get data from database 2024-12-11 14:54:33 +01:00
ishak jmilou.ishak
b2432ab9cd removed execute to test if page works 2024-12-11 14:39:47 +01:00
ishak jmilou.ishak
93167e67f6 changed table name 2024-12-09 15:01:29 +01:00
ishak jmilou.ishak
3bb40d5929 Replace MariaDB connection with Flask-MySQLdb integration 2024-12-09 14:59:42 +01:00
ishak jmilou.ishak
9689d70104 Uncommented mariadb conn 2024-12-09 13:12:51 +01:00
ishak jmilou.ishak
01535607fc removed mariadb 2024-12-09 10:14:10 +01:00
ishak jmilou.ishak
cd374dab81 rename index route to database and update response message 2024-12-05 13:40:34 +01:00
ishak jmilou.ishak
f9cb54a1cf start db connection 2024-12-04 17:46:40 +01:00