Skip to content

Scriptable Script which shows current Posts of your favorite user as Widget and also as Push Notifications

Notifications You must be signed in to change notification settings

iamrbn/Mastodon-Widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastodon-Widget

Script which shows Posts of your favorite users on Mastodon via Scriptable-App

Overview

Features

  • Activate Push-Notifiactions (Devices specific)
  • Set widget refresh interval (Devices specific)
  • Clickable username, profileimage, and post itself
  • Image preiview (if available) for the large widget
  • Shows instance emoji in username if available (medium & large widget)

Config

Script Parameter

var CONFIGS = {
      DEVICES: {
       iPad: {
        notifications: false, //true = Allow Push-Notifications on specific device
        refreshInt: 60 //widget refresh interval in minutes
        },
       iPhone: {
        notifications: true,
        refreshInt: 30
        },
       macBook: {
        notifications: false,
        refreshInt: 120
      }
     }
};

let roundProfileImages = true
let reposts = false
let favUsers = [
      'simonbs@mastodon.social',
      'christianselig@mastodon.social',
      'elhotzo@mastodon.social',
      'icesck@mastodon.social',
      'iamrbn@mastodon.social',
      'mammoth@moth.social',
      'ivory@tapbots.social',
      'mvan231@mastodon.social',
      'IceCubesApp@mastodon.online'
      ];

Widget Parameter (Optional)

Select your favorite users via favUsers array and / or select it individual for every single widget via widget parameter.

Selfupdate Function

The Script updates itself1

On the first run

It downloads a module and three images from this github repo and saves it in the "Mastodon-Widget" directory.

iCloud Drive/
├─ Scriptable/
│  ├─ Mastodon-Widget/
│  │  ├─ mastodon.png
│  │  ├─ mastodon_10.png
│  │  ├─ mastodonModule.js


Footnotes

  1. Ground Function is written by the amazing @mvan231

About

Scriptable Script which shows current Posts of your favorite user as Widget and also as Push Notifications

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published