Skip to content

Commit

Permalink
pylint cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
guirem committed Jan 29, 2020
1 parent 520fa5d commit bc4404e
Show file tree
Hide file tree
Showing 9 changed files with 1,201 additions and 961 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
per-file-ignores =
resources/googlecast.py: E501
resources/jeedom/jeedom.py: E501
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.enabled": true
}
18 changes: 11 additions & 7 deletions resources/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
#

import time
import os, os.path
import os
import os.path

JEEDOM_COM = ''
JEEDOM_WEB = ''
Expand Down Expand Up @@ -52,7 +53,8 @@
DISCOVERY_FREQUENCY = 14400 # every 4 hours
DISCOVERY_LAST = int(time.time()) # when last started

LOSTDEVICE_RESENDNOTIFDELAY = 60*15 # Resent offline msg after 15 minutes
# Resent offline msg after 15 minutes
LOSTDEVICE_RESENDNOTIFDELAY = 60*15

DEFAULT_NOSTATUS = ""
DEFAULT_NODISPLAY = ""
Expand All @@ -67,20 +69,22 @@
tts_engine = 'picotts'
tts_cacheenabled = True
tts_speed = 1.2
tts_cachefolderweb = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'tmp'))
tts_cachefolderweb = os.path.abspath(os.path.join(
os.path.dirname(os.path.dirname(__file__)), 'tmp'))
tts_cachefoldertmp = os.path.join('/tmp/jeedom/', 'googlecast_tts')
tts_gapi_url = 'https://www.google.com/speech-api/'
tts_gapi_key = 'none'
tts_gapi_voice = 'fr-FR-Standard-A'
tts_gapi_haskey = False

localmedia_folder = 'localmedia'
localmedia_fullpath = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), localmedia_folder))
localmedia_fullpath = os.path.abspath(os.path.join(
os.path.dirname(os.path.dirname(__file__)), localmedia_folder))

log_level = "info"
pidfile = '/tmp/googlecast.pid'
apikey = ''
callback = ''
daemonname=''
socketport=55012
sockethost='127.0.0.1'
daemonname = ''
socketport = 55012
sockethost = '127.0.0.1'
1,940 changes: 1,075 additions & 865 deletions resources/googlecast.py

Large diffs are not rendered by default.

Loading

0 comments on commit bc4404e

Please sign in to comment.