Giter Club home page Giter Club logo

snapshot-twitter-mastodon's Introduction

Snapshot Twitter Mastodon

It is a simple script to take screenshots and publish on twitter and on Mastodon.

snapshot-twitter-mastodon.py

It reads an "agenda" file to find out what is happening and include it.

It attended PyConSe in a very nice way, but lacks a better code, mainly for agenda handling. Once that said, it worked quite fine.

weather-twitter-mastodon.py

It is running in my apartment's window and takes a picture every 15 minutes. It remains publishing for now at Twitter, but it might stop in case Elon decides to charge for API usage or something alike.

https://twitter.com/helio_weather

And it is also running on Mastodon

https://mastodon.social/@helio_weather

Usage

For a raspberrypi supporting it, I just made a call via crontab to run every 5 minutes.

Password/keys/secret stuff was left out, in a configuration file (.twitterc) following the ConfigParser format, which is mostly like:

[twitter] key = abced anotherkey = 12312313123

For mastodon, create and configure toot. It will generate the configuration file that will be used for Mastodon posts.

Weather

It was extendend to use as script to gather weather information via http://forecast.io API.

Requirements

Just found it requires some extra packages to work (at the least on raspbian):

  • ttf-mscorefonts-installer
  • python-imaging
  • uvcdynctrl
  • Mastodon.py

Bugs

No big ones at this moment.

snapshot-twitter-mastodon's People

Contributors

dependabot[bot] avatar helioloureiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.