Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README / docs #213

Open
nicfit opened this issue Oct 9, 2017 · 4 comments
Open

README / docs #213

nicfit opened this issue Oct 9, 2017 · 4 comments
Milestone

Comments

@nicfit
Copy link
Owner

nicfit commented Oct 9, 2017

No description provided.

@nicfit nicfit added this to the 0.3 milestone Oct 9, 2017
@Mte90
Copy link

Mte90 commented Mar 9, 2021

The docs is incomplete as today, is not clear how to use the server -> https://mishmash.readthedocs.io/en/latest/usage.html#mishmash-web

@Mte90
Copy link

Mte90 commented May 10, 2021

any ping for this?
I want to use this project to see what are the majority of artists I am listening.

@nicfit
Copy link
Owner Author

nicfit commented May 12, 2021

Hi @Mte90 , I've not rally working on MishMash currently, though not calling it dead. Contributions welcome.

I run my server with:
mishmash --config=... server

And config:

[mishmash]
sqlalchemy.url = <set via MISHMASH_DBURL environment variable>

[library:Music]
paths = /media/music/
sync = true

[server]
sync = true
web = true
unsonic = false

[loggers]
keys = root, sqlalchemy, eyed3, mishmash, alembic

[handlers]
keys = console

[formatters]
keys = generic

[logger_root]
level = INFO
handlers = console

[logger_sqlalchemy]
level = NOTSET
handlers =
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither.  (Recommended for production systems.)
propagate = 1

[logger_alembic]
level = NOTSET
handlers =
qualname = alembic
propagate = 1

[logger_mishmash]
level = NOTSET
qualname = mishmash
handlers =
propagate = 1

[logger_eyed3]
level = ERROR
qualname = eyed3
handlers =
propagate = 1

[handler_file]
class = handlers.RotatingFileHandler
args = ("/var/log/mishmash/mishmash.log",)
level = DEBUG
formatter = generic

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic

[formatter_generic]
format = <%(name)s:%(threadName)s> [%(levelname)s]: %(message)s

###
# web app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
###

[app:main]
use = call:mishmash.web:main

pyramid.reload_templates = true
pyramid.default_locale_name = en
pyramid.includes =
    pyramid_tm

[server:main]
use = egg:gunicorn
workers = 2
worker_class = gevent
host = 0.0.0.0
port = 6229
ssl_version=TLS_SERVER
certfile=/etc/cert.pem
keyfile=/etc/privkey.pem

@Mte90
Copy link

Mte90 commented May 13, 2021

I tried without files sync:

[server]
sync = false
web = true
unsonic = false

[loggers]
keys = root, eyed3, mishmash, alembic

[handlers]
keys = console

[formatters]
keys = generic 

With command mishmash --config=mishmash.ini server

/\/\_____  .__       .__        _____                .__   /\/\
\(\(     \ |__| _____|  |__    /     \ _____    _____|  |__\(\(
  /  \ /  \|  |/  ___/  |  \  /  \ /  \\__  \  /  ___/  |  \   
 /    Y    \  |\___ \|   Y  \/    Y    \/ __ \_\___ \|   Y  \  
 \____|__  /__/____  >___|  /\____|__  (____  /____  >___|  /  
         \/        \/     \/         \/     \/     \/     \/   

Version              : 0.3.3
Database URL         : sqlite:////home/mte90/Desktop/mishmash.db
Database version     : 0.3.3
Last sync            : 2021-05-13 12:43:08.854111
Configuration files  : <default>, mishmash.ini

=== Music library ===
7194 music tracks
1996 music artists
16   music albums
299  music tags
usage: mishmash [-h] [--help-logging] [-l LOGGER:LEVEL] [-L LOGGER:FILE] [-c file.ini] [--default-config] [--version] [-D url] {sync,split-artists,image,info,server,merge-artists} ...
mishmash: error: argument command: invalid choice: 'web' (choose from 'sync', 'split-artists', 'image', 'info', 'server', 'merge-artists')
`mishmash web` <stopped[2]>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants