Coder Social home page Coder Social logo

alberanid / toot-my-t-shirt Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 272 KB

publish selfies on Mastodon!

License: Apache License 2.0

Dockerfile 1.30% CSS 5.77% HTML 11.05% JavaScript 36.89% Python 44.98%
html5 webcam camera selfie publishing mastodon toot 35c3

toot-my-t-shirt's Introduction

toot-my-t-shirt

A work-in-progress project for 35C3 (from an idea by itec)

Still not much to see here: the UI still sucks and very little feedback is given to the user.

Requirements

Run

./toot-my-t-shirt --debug --mastodon-token=C0FEFE --mastodon-api-url=https://botsin.space/ --default-image-description="a nice description of the picture" --default-message="oh noes, another selfie" --store-dir="/tmp/selfies"

Run using Docker

Build it

docker build -t toot-my-t-shirt .

Run it

docker run --rm -it -p 9000:9000 toot-my-t-shirt [whatever other options you need]

Notice about SSL

Some browsers require HTTPS, to allow access to the webcam. In the ssl/ directory there is a self-signed certificate (completed with CA) to allow you to test it without the need to create your own. In production you are supposed to use your own certificate.

License and copyright

Copyright 2018-2019 Davide Alberani [email protected]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

toot-my-t-shirt's People

Contributors

alberanid avatar

Watchers

 avatar  avatar

toot-my-t-shirt's Issues

WebSocket fails in Chrome

sb.js:72 WebSocket connection to 'wss://localhost:9000/ws?uuid=5b3e224e-1802-4118-bd07-31992054b027' failed: Error during WebSocket handshake: Sent non-empty 'Sec-WebSocket-Protocol' header but no response was received
(anonymous) @ sb.js:72
sb.js:75 WebSocket Error [object Event]

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.