Commit Graph

501 Commits (main)

Author SHA1 Message Date
Ebbe Baß 830b5932cf removed list. next test
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 01:02:23 +01:00
Ebbe Baß 688876903a debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 01:01:34 +01:00
Ebbe Baß 2c264ac6d6 switched from queue to shared mem
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 00:59:18 +01:00
Ebbe Baß dd5d64eed3 removed all debuggings
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 00:50:49 +01:00
Ebbe Baß 1dd6b570c0 new debugging
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 00:49:45 +01:00
Ebbe Baß 9d8d5e610d debugging
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 00:47:19 +01:00
Ebbe Baß acc6a93eb9 added some debugging
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 00:46:11 +01:00
Ebbe Baß 826641b0ce added some debugging
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 00:45:16 +01:00
Ebbe Baß 6cc0a003be added while loop and a 5 sec sleeper
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 00:44:26 +01:00
Ebbe Baß b2b958018e fixed typo
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 00:42:17 +01:00
Ebbe Baß b2c8dc5d83 added queue system for mem share between publisher and ti updater
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 00:41:47 +01:00
Ebbe Baß 3a5ad1e6af revert changed
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 00:08:39 +01:00
Ebbe Baß 3e1f60fa22 fixed mqtt
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-18 00:07:04 +01:00
Ebbe Baß 3c8c048c45 mqtt_publisher as normal function
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 23:43:51 +01:00
Ebbe Baß 50b358f6fc fixed update
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 23:37:21 +01:00
Ebbe Baß 6c69200a44 removed debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 23:31:12 +01:00
Ebbe Baß 02ced5fef2 added list conversion
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 23:15:40 +01:00
Ebbe Baß 74fa0640ff added while loop to tube index updater
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 23:15:02 +01:00
Ebbe Baß bedbf76b5f updated each second
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 23:08:31 +01:00
Ebbe Baß 83004d35fa added decode for publish
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 23:07:26 +01:00
Ebbe Baß 77ad069eec adfded multiprocessisng back again and also made a mqtt share for the tube index
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 23:03:40 +01:00
Ebbe Baß 775a6caf77 removed debug prints
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:35:37 +01:00
Ebbe Baß 935bdeb38b FUCK IT. Gonna fix that db spam later
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:34:59 +01:00
Ebbe Baß ac14cce7b5 fixed run forefer
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:33:39 +01:00
Ebbe Baß 04a5dbc19d index_updater run forever
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:32:07 +01:00
Ebbe Baß 7a60df2668 debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:31:05 +01:00
Ebbe Baß a484a63149 declare as globa
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:30:09 +01:00
Ebbe Baß 348ee5e4ad made tube index async functipn
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:28:02 +01:00
Ebbe Baß 3081f2ae66 thread manager update
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:21:20 +01:00
Ebbe Baß f0f13debae thread manager
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:19:53 +01:00
Ebbe Baß 070ae2fa41 testing
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:15:18 +01:00
Ebbe Baß d6e06901d3 tube index globalisation
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:12:12 +01:00
Ebbe Baß dfdac3897b tube index test
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:11:41 +01:00
Ebbe Baß 062c718dd9 remove del
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:11:22 +01:00
Ebbe Baß 923f0e4685 testing some weird siht
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:10:56 +01:00
Ebbe Baß 8ece5779ae debug tedt
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:08:25 +01:00
Ebbe Baß 3f5e0de208 print index row
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:07:13 +01:00
Ebbe Baß a4e004a1b3 moved dmx var
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:05:40 +01:00
Ebbe Baß ba23bae0d5 removed debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:03:19 +01:00
Ebbe Baß 3068288bcd debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:02:34 +01:00
Ebbe Baß ff183d7901 removed debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:01:33 +01:00
Ebbe Baß 6ddb8ff1a6 debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 17:00:49 +01:00
Ebbe Baß 761c3baaf1 added mac address back again
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:59:54 +01:00
Ebbe Baß 6f75b5eb01 print tube_index
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:58:17 +01:00
Ebbe Baß 762f7fc015 moved del
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:57:52 +01:00
Ebbe Baß 9b464fb5de delete tube index
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:56:47 +01:00
Ebbe Baß 283f4c8f01 removed globalisation
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:43:32 +01:00
Ebbe Baß bcfba3738c print TUBE_INDEX
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:42:14 +01:00
Ebbe Baß 28d8a50dbe removed universe from db request
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:40:39 +01:00
Ebbe Baß 31eb06a2ab added TUBE_INDEX to mqtt publisher and removed it at script start
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:38:46 +01:00
Ebbe Baß 7affda9c98 moved the updater out of a seperate function the worked as a multiprocess because the global var wasnt shared between the processes
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:36:43 +01:00
Ebbe Baß 3ba023229d db request at script beginning
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:30:25 +01:00
Ebbe Baß febd453aa7 print globals
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:28:40 +01:00
Ebbe Baß 92305a7712 removed db request at script start
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:26:38 +01:00
Ebbe Baß 395f3880a2 moved updater odwn
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:25:47 +01:00
Ebbe Baß 72ea1dc7c5 update index each second
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:24:43 +01:00
Ebbe Baß 0f78218ab7 global declaration at script start
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:24:04 +01:00
Ebbe Baß 204c1e89d6 start publisher before index updater
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:22:02 +01:00
Ebbe Baß 0b5645a151 fixed debugfger
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:20:51 +01:00
Ebbe Baß eaa5574462 added debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:20:06 +01:00
Ebbe Baß e07fdcffb0 added global in index updater
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:17:35 +01:00
Ebbe Baß 9f7a333e40 added db request at script start
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:16:16 +01:00
Ebbe Baß 3d9bdb95cc changed var name again to fully global var
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:14:09 +01:00
Ebbe Baß 3734f4ee4e removed tube index var
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:12:29 +01:00
Ebbe Baß c7667d357e changed var name
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:11:58 +01:00
Ebbe Baß ef147dd956 test
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:10:35 +01:00
Ebbe Baß 1c515de7cc removed arg thingy thing
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:09:18 +01:00
Ebbe Baß 9437010202 removed timer
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:05:28 +01:00
Ebbe Baß bc1390ceca set global var
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:05:22 +01:00
Ebbe Baß cef018cdbf updated function name
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:04:01 +01:00
Ebbe Baß 0350fb8b2c added global result to publisher function
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:03:31 +01:00
Ebbe Baß 1e2bd1c20b added longer times
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:02:45 +01:00
Ebbe Baß 8b10597d4e removed unused arg
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:01:51 +01:00
Ebbe Baß 4f6f06d92d removed some shitty code
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 16:01:18 +01:00
Ebbe Baß dae2602838 globalize result
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 15:58:59 +01:00
Ebbe Baß 75b7a5bf23 added sleeper
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 15:58:24 +01:00
Ebbe Baß b956951178 added reult as args
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 15:58:07 +01:00
Ebbe Baß f0e4bde57a fixed debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 15:55:05 +01:00
Ebbe Baß 29483c894f debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 15:54:15 +01:00
Ebbe Baß dbb527400f fixed weird encoding for color vars
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 14:51:26 +01:00
Ebbe Baß 3cfd19f7aa fixed list
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 13:23:54 +01:00
Ebbe Baß 03425f6fd8 list to string
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 13:22:49 +01:00
Ebbe Baß a15b7f9fbb simplified mqtt publish topic
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 13:19:36 +01:00
Ebbe Baß 1a7a6a2ddc some optimization
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 04:30:56 +01:00
Ebbe Baß 393412e7f6 fixed results
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 04:20:36 +01:00
Ebbe Baß b49736c421 fixed result globalisation
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 04:17:25 +01:00
Ebbe Baß 093a05c7bd added result none
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 04:14:53 +01:00
Ebbe Baß 90b6bbc741 if result not nun check
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 04:14:41 +01:00
Ebbe Baß 08d72f4493 tube index update time at 10 sec and start first. also removed sql request from publisher
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 04:12:22 +01:00
Ebbe Baß 03b2c6321f removed debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 04:09:32 +01:00
Ebbe Baß ac0497438d fixed cur
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 03:57:48 +01:00
Ebbe Baß 85aa05a4cb debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 03:52:30 +01:00
Ebbe Baß b6b2720b95 cleaned up some shit
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 03:52:00 +01:00
Ebbe Baß 9dc593bfdf added db cursor at update tube index
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 03:44:18 +01:00
Ebbe Baß 5bb1f9865f added cur close
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 03:43:09 +01:00
Ebbe Baß b90817b892 added while
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 03:09:46 +01:00
Ebbe Baß 38baa6e87d added sleeper
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 03:09:30 +01:00
Ebbe Baß 13d35d6664 added tube index updater
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 03:09:16 +01:00
Ebbe Baß 9acd2e9d78 added try
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 03:06:26 +01:00
Ebbe Baß 17ae6220ab fixed subs
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 03:02:20 +01:00
Ebbe Baß e74059432c debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 03:01:00 +01:00
Ebbe Baß 2d0418ee0e debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 03:00:09 +01:00
Ebbe Baß 933ed5a8d9 fixed topic mac adres get
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:59:02 +01:00
Ebbe Baß 657aa22f69 fixed subs in result
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:58:48 +01:00
Ebbe Baß 2ddcf5ec55 convert list to string
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:57:22 +01:00
Ebbe Baß 78e0ffcb0a fixed lists
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:56:48 +01:00
Ebbe Baß e2c07949de I am dumb. fixed content of var
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:55:32 +01:00
Ebbe Baß 3ac182b1ab debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:54:41 +01:00
Ebbe Baß 523de722fa debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:54:17 +01:00
Ebbe Baß 4d08075ba7 fixed dmx_address var content
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:53:41 +01:00
Ebbe Baß 93d935e87e added publishes
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:52:28 +01:00
Ebbe Baß e7ececf537 get tubes from sql
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:40:03 +01:00
Ebbe Baß 8e784289c4 commented publish commands and move cur to a public positiin
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:37:31 +01:00
Ebbe Baß ddd46bd70f fixed some styling
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:25:05 +01:00
Ebbe Baß afa6461c24 fixed input positionning
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:21:01 +01:00
Ebbe Baß b24934a866 fixed location
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:19:59 +01:00
Ebbe Baß bcd81120e9 fixed con close
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:19:37 +01:00
Ebbe Baß 088816c100 added update process
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:18:12 +01:00
Ebbe Baß e905d0174e fixed settings.php path
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:13:05 +01:00
Ebbe Baß 8fab5c0e43 added basic structure
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:10:32 +01:00
Ebbe Baß ed76e7e1a0 fixing button to redirect
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:06:44 +01:00
Ebbe Baß 290acca363 fixed jquery
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:01:32 +01:00
Ebbe Baß 4273212bc1 testing new scriopt
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 02:00:08 +01:00
Ebbe Baß 7b055d126d added jquery
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:58:52 +01:00
Ebbe Baß 81c92d4775 removed form
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:56:33 +01:00
Ebbe Baß 9088fc8248 added configure button
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:55:52 +01:00
Ebbe Baß aa1f281a49 added pop up menue
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:54:54 +01:00
Ebbe Baß 248ed77dbf removed connection info
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:51:46 +01:00
Ebbe Baß 1cc4089a44 fixed problem with dot
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:51:23 +01:00
Ebbe Baß c2711869d4 test if fixed
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:50:29 +01:00
Ebbe Baß d8e482cc48 insert mysql data into colums
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:48:55 +01:00
Ebbe Baß 3e99bef301 fixed var
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:41:46 +01:00
Ebbe Baß 3d2dd0ffb8 forgot semicolon
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:41:18 +01:00
Ebbe Baß 38bfebe2a6 added semicolon that was missing in conn
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:39:21 +01:00
Ebbe Baß 191efa6677 testing db
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:36:10 +01:00
Ebbe Baß ab986afb77 removed debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:32:10 +01:00
Ebbe Baß 993da418d8 added php mysql to readme and added db connection to webinterface
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:31:04 +01:00
Ebbe Baß aa9f978a3a added db autocommit
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:22:31 +01:00
Ebbe Baß 355bb6c4a5 debug some new shit
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:08:41 +01:00
Ebbe Baß 0be3db39af testing something else for the if exsist
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:07:11 +01:00
Ebbe Baß 9aa44f1292 added fail safe if pxm isn't reacheable
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 01:02:05 +01:00
Ebbe Baß 28b8731afc fixed if request if tube exsist
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 00:59:46 +01:00
Ebbe Baß 19e37b2b88 debug some shit
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 00:58:45 +01:00
Ebbe Baß b65f5c3468 fixed lamp power problem
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 00:53:52 +01:00
Ebbe Baß 5e4479863b mac address to string
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 00:52:44 +01:00
Ebbe Baß 14a6614d6a removed lamp power
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 00:51:30 +01:00
Ebbe Baß 697774c537 removed debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 00:30:18 +01:00
Ebbe Baß ecb6493bbf rempved {} from topic
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 00:29:34 +01:00
Ebbe Baß 2e9a7a9e29 added debug
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 00:28:55 +01:00
Ebbe Baß b3eb6a9719 removed exception
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-17 00:28:22 +01:00