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 details)

Uploaded Source

File details

Details for the file sunslack-1.1.8.tar.gz.

File metadata

  • Download URL: sunslack-1.1.8.tar.gz
  • Upload date:
  • Size: 92.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for sunslack-1.1.8.tar.gz
Algorithm Hash digest
SHA256 5abf9771199f917d46f2d1aab259d26b1e6ae8a3a46ee81295d68d2dabd8b376
MD5 fd1f7186e0d135e3e2a591257119ac2a
BLAKE2b-256 6a0281a619723f1c5ece31bb4bf590b9011ed92da49983ce4d1343d4e9238f25

See more details on using hashes here.

Supported by

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