Commit Graph

235 Commits

Author SHA1 Message Date
Jarno Rankinen 2eab045651 Added module elspot, shows Nord Pool electricity spot price information. Currently only price of the passing hour is implemented. 2022-11-20 14:13:51 +02:00
Jarno Rankinen 8613c57eec Removed unused modules 2022-11-20 12:25:01 +02:00
Jarno Rankinen bb1057800b Refined message format for sää.py 2022-11-14 21:15:53 +02:00
Jarno Rankinen 2cab1e06d0 Fixed sää.py claiming to forecast stuff 2022-11-14 21:06:58 +02:00
Jarno Rankinen 4709d3d821 Initial simple version of sää-module 2022-11-14 20:55:40 +02:00
Jarno Rankinen 7300b69273 Updated help text for kauppa-module 2022-11-14 20:21:34 +02:00
Jarno Rankinen 2f5225d8ac Simple shopping list module based on the echo module, prints the list given as arguments back as a markdown checkbox list. Each line in the message is an item in the list, including the first line (without the \!<module name> call 2022-11-14 20:16:49 +02:00
Jarno Rankinen 5a6c560086 Get snapshot of all configured camera ids with '\!cam now'. Fixed pre-event missing from send_text calls 2022-11-01 22:59:59 +02:00
Jarno Rankinen 9aedbef3a8 Possibility to configure list of all camera ids 2022-11-01 22:48:03 +02:00
Jarno Rankinen 3783313af0 Disable cache when uploading image 2022-11-01 22:25:54 +02:00
Jarno Rankinen bdf46124bd cam.py: need to be bot owner for config commands, 'action snapshot' gets image from Motion, alias 'now' for 'action snapshot' 2022-10-26 22:49:22 +03:00
Jarno Rankinen a6715d8dcf Get/set Motion config parameters 2022-10-26 21:49:55 +03:00
Jarno Rankinen 14428d7382 Merge branch 'helpfix' into cam_module 2022-10-26 21:36:09 +03:00
Jarno Rankinen 0953457b96 Fix help module missing self.info on Python 3.8.15 2022-10-26 21:30:42 +03:00
Jarno Rankinen e9a2f9dca0 Configurable URL for Motion API 2022-10-26 21:28:55 +03:00
Jarno Rankinen d844e8ccb5 First implementation of cambot, missing configuration 2022-10-23 19:48:48 +00:00
Jarno Rankinen b2215b5426 intermediate commit, first test 2022-10-23 21:17:02 +03:00
Frank Becker 69a7aae939 apod - fix broken image metadata and error response / logging on room avatar event errors
There was a parameter off by one error. Propably introduced with the
room_send wrapper.

While testing the avatar feature I noticed that nothing happens if the bot is not at least a moderator in
the room. So I decided to send that info to the room and log the error
message as a warning.

The explanation was not altered by the apod module.
Turns out it was broken that day at the api level. See https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY&hd=true&date=2022-09-13

fixes #216
2022-09-15 21:38:08 +02:00
Andrea Spacca 5a06a6baab the order matters 2022-08-19 10:05:30 +09:00
Andrea Spacca 42affd5a52 some fixes 2022-08-15 13:00:26 +09:00
Andrea Spacca cd6a86dfb9 this fixed it 2022-08-15 12:45:40 +09:00
Ville Ranki b34f3eb636 Fixed loc module, added options to enable/disable it per-room. 2022-05-30 21:12:16 +03:00
Cromfel eab4ec243f Allow array of colors per domain
New JSON format example: 'domains={"koneet":["#BFDADC","#0CBBF0","#0CBBF0","#E15D19","#ED49CF"],"tilat":["#0E8A16","#1E8A16"]}'
2022-05-22 21:14:53 +03:00
gammafn 0f3957a319 Fix #195 AttributeError 2022-02-16 21:25:24 -06:00
gammafn e3e353aab4 apod: prettier output for non-images 2022-01-12 22:09:23 -06:00
gammafn abe43693ca apod: Set avatar at the end, it reads better in Element 2022-01-12 22:08:44 -06:00
Ville Ranki 2d19affee8 Fixes to users, better room listing in bot module. 2021-09-12 14:03:14 +03:00
Ville Ranki e1e162643d More fixes to users.. i can't use break it seems 2021-09-11 23:54:09 +03:00
Ville Ranki fb3046b11e Fixes and tuning to users module 2021-09-11 23:21:19 +03:00
Ville Ranki 87aa703512 users module: add user classification and stats commands. 2021-09-11 22:35:41 +03:00
gammafn 9b5ac99a40 Merge branch 'upload-image-and-avatar' 2021-09-01 10:12:47 -05:00
gammafn bdc9713a14 Add avatar support to !apod
Check if is_admin before allowing avatar
2021-08-24 23:03:28 -05:00
Andrea Spacca 1ef7344b4f fix for new version of tautulli 2021-08-21 17:12:31 +02:00
Ville Ranki d62e6d8079
Merge pull request #162 from pintman/spaceapi
added module space api
2021-08-09 00:00:46 +03:00
gammafn b0f96911c3 Add !mumble 2021-08-02 14:33:50 -05:00
gammafn 2fe571c665 Use "- " for list instead of second newline 2021-07-28 15:32:30 -05:00
gammafn 373ed1331d Add !sethelp info 2021-07-28 15:29:34 -05:00
Marco Bakera 99dd2858af added module space api
Allows for polling the open/closed status of hackspaces supporting the SpaceAPI.
2021-07-21 11:56:16 +02:00
Ville Ranki 3e2ef459fe Don't cache RASP image as it changes in same url 2021-07-19 22:44:32 +03:00
Ville Ranki 40aa62282d Use requests library instead of urllib. Fixes #160 2021-07-19 00:03:48 +03:00
gammafn 549fa08918 bot ping: send_text is a bot attribute, not a client attribute 2021-06-06 10:10:50 -05:00
Ville Ranki 4c3a21e562 Added RASP module 2021-05-27 23:35:53 +03:00
Ville Ranki 0361814459 Added some power level checks 2021-05-20 10:03:19 +03:00
Ville Ranki c4eeae2e7b \!room tombstoning support, dont send blank urls (fixes #156), \!loc quotes (fixes #152), \!user (fixes #144 ), better explanation (fixes #151) 2021-05-19 23:01:04 +03:00
gammafn ff281e0e2e !bot reload: update message when all modules are loaded 2021-05-17 16:21:13 -05:00
gammafn 1800b0c0fc Simplify !bot ping by having bot return await room_send() 2021-05-17 16:20:41 -05:00
gammafn 7fc86fc30c Add missing bot long help 2021-05-12 06:43:22 -05:00
gammafn 0a95377893 Add !bot uricache [view | clean] command 2021-05-11 12:52:50 -05:00
gammafn 44bd02d3b4 Fix bot.upload_and_send()
- Move matrix_uri_cache idea from apod into global bot, persist on restart
- TODO: add "!bot uricache [ view | clean ]" command
2021-05-11 12:52:40 -05:00
xPMo 6b9bd1620d
Merge pull request #149 from xPMo/bot-logs
Print recent logs with !bot logs
2021-05-08 19:18:49 -05:00