Sun predictions on a Slack channel
This bot helps you get the Some of the solar magnetic activity information on your slack channel.
Create a configuration file with the following template:
[SUNSLACK]
token: xoxb-123456790-123456790-123456790
channel: sunflux
cachedir: /var/tmp/sunflux
loglevel: INFO
[ANIMATEMUF]
target_dir: /var/tmp/muf
converter: /usr/local/bin/convert.sh
muf_file: /tmp/muf_source.json
video_file: /tmp/muf/muf.mp4
font: /System/Library/Fonts/Supplemental/Arial Narrow.ttf
font_size: 16
You can get a token for your bot by registering it on the Slack App website.
You can run the bot every hour in cron. It only sends messages and upload the prediction graph when NOAA publishes new data.
Line to add in your crontab:
1 * * * * /usr/local/bin/sunslack --config ~/.sslack.cnf --alerts --flux --muf
Metadata
Release files for sunslack 1.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sunslack-1.1.8.tar.gz | 92.2 kB | Details |
Release files / sunslack-1.1.8.tar.gz
| Download URL | sunslack-1.1.8.tar.gz |
|---|---|
| Size | 92.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5abf9771199f917d46f2d1aab259d26b1e6ae8a3a46ee81295d68d2dabd8b376
|
|
BLAKE2b-256 checksum How to use checksums |
6a0281a619723f1c5ece31bb4bf590b9011ed92da49983ce4d1343d4e9238f25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.13
|