Skip to main content

Slack bot publishing NOAA Solar data

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sunslack-1.1.8.tar.gz (92.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page