diff --git a/data/README.md b/data/README.md new file mode 100644 index 0000000..be1e0ba --- /dev/null +++ b/data/README.md @@ -0,0 +1 @@ +plugin data dedicated folder diff --git a/localmedia/README.md b/data/media/README.md similarity index 100% rename from localmedia/README.md rename to data/media/README.md diff --git a/localmedia/bigben1.mp3 b/data/media/bigben1.mp3 similarity index 100% rename from localmedia/bigben1.mp3 rename to data/media/bigben1.mp3 diff --git a/localmedia/bigben2.mp3 b/data/media/bigben2.mp3 similarity index 100% rename from localmedia/bigben2.mp3 rename to data/media/bigben2.mp3 diff --git a/localmedia/house_firealarm.mp3 b/data/media/house_firealarm.mp3 similarity index 100% rename from localmedia/house_firealarm.mp3 rename to data/media/house_firealarm.mp3 diff --git a/localmedia/railroad_crossing_bell.mp3 b/data/media/railroad_crossing_bell.mp3 similarity index 100% rename from localmedia/railroad_crossing_bell.mp3 rename to data/media/railroad_crossing_bell.mp3 diff --git a/localmedia/submarine_diving.mp3 b/data/media/submarine_diving.mp3 similarity index 100% rename from localmedia/submarine_diving.mp3 rename to data/media/submarine_diving.mp3 diff --git a/localmedia/tornado_siren.mp3 b/data/media/tornado_siren.mp3 similarity index 100% rename from localmedia/tornado_siren.mp3 rename to data/media/tornado_siren.mp3 diff --git a/resources/globals.py b/resources/globals.py index eeb9e62..509af7d 100644 --- a/resources/globals.py +++ b/resources/globals.py @@ -69,7 +69,7 @@ tts_cacheenabled = True tts_speed = 1.2 tts_cachefolderweb = os.path.abspath(os.path.join( - os.path.dirname(os.path.dirname(__file__)), 'tmp')) + os.path.dirname(os.path.dirname(__file__)), 'data/cache')) tts_cachefoldertmp = os.path.join('/tmp/jeedom/', 'googlecast_tts') tts_gapi_url = 'https://www.google.com/speech-api/' tts_gapi_key = 'none' diff --git a/resources/googlecast.py b/resources/googlecast.py index 3f8ca33..e903cf3 100644 --- a/resources/googlecast.py +++ b/resources/googlecast.py @@ -1565,7 +1565,7 @@ def generate_warmupnotif(): except Exception: logging.debug("WARMUPNOTIF------Touching file failed !") pass - urltoplay = globals.JEEDOM_WEB+'/plugins/googlecast/tmp/'+file+'.mp3' + urltoplay = globals.JEEDOM_WEB+'/plugins/googlecast/data/cache/'+file+'.mp3' except Exception as e: logging.error( "WARMUPNOTIF------Exception while generating warmupnotif file : %s" % str(e))