20 Apr 2019 |
Half-Shot | I guess use dimension or just make tulir make a widget | 12:20:32 |
Half-Shot | Does the widget api allow you to make state changes for a fancy UI | 12:20:51 |
tulir | it might let you send events through the user? | 12:21:24 |
tulir | (stickers?) | 12:21:27 |
tulir | if that works, then send custom state event with mxid state key as the user from the widget and read it with a bot to generate the widget data | 12:22:11 |
tulir | I can make it when I get home in an hour or two | 12:22:22 |
tulir | (if it can't send events through the user, we just need to give the bot permission to edit that state event) | 12:23:11 |
| * tulir is now making the bot | 13:20:51 |
tulir | hmm travis probably knows how widgets work | 13:24:37 |
Maximus | without the shadow of a doubt | 13:25:12 |
tulir | why is there no endpoint to get all state events by event type? | 13:27:35 |
tulir | found the postMessage stuff in dimension's source | 14:33:35 |
tulir | let's see if it works | 14:33:39 |
tulir | oh is it limited to user widgets 3: | 14:35:55 |
tulir | yeah I guess I'll just make the widget for presentation | 14:37:43 |
| tulir invited Switch Bot. | 15:14:19 |
| jcgruenhage joined the room. | 14:56:31 |
| Switch Bot joined the room. | 15:14:22 |
tulir | hmmhmm | 15:14:27 |
Half-Shot | Some interesting switch apis to play with | 15:18:03 |
tulir | !code SW-3940-2342-8813 | 15:20:26 |
| tulirchanged room power levels. | 15:20:33 |
tulir | !code SW-3940-2342-8813 | 15:20:37 |
tulir |
You are not allowed to set others state
3:
| 15:21:21 |
Half-Shot | Oh yeah that's a thing | 15:21:34 |
Half-Shot | I forgot | 15:21:35 |
tulir | guess I'll just store it in statekeyless object | 15:21:41 |
Maximus | 2633-7079-4120 | 15:23:52 |
tulir | you need to run the command once it works | 15:24:34 |
| * Half-Shot assumes the bot will confirm stuff | 15:24:49 |