Comments (7)
Hello,
Le message semble clair.
Le user qui lance le script n'a pas d'autorisation pour créer le répertoire /data (commande mkdir).
Soit tu changes les permissions de ton user, soit tu fournis un autre répertoire sur lequel ton user a les droits de modification.
from gazpar2mqtt.
De mon côté, faudra que je modifie le script pour que ça plante proprement.
from gazpar2mqtt.
Merci pour ta réponse.
J'essaie donc en modifiant le path du dossier d'installation pour être ds mon home, ce qui normalement devrait me permettre de créer le dossier.
Mais le paramètre ne semble pas pris en compte.
python3 app/gazpar2mqtt.py [email protected] --grdf_password=####### --mqtt_host=192.168.88.150 --mqtt_clientId=gazou --mqtt_retain=True --db_init True --db_path /home/airvb/gazpar2mqtt-main/data
2022-03-09 09:07:58,517 INFO -----------------------------------------------------------
2022-03-09 09:07:58,517 INFO # Welcome to gazpar2mqtt #
2022-03-09 09:07:58,517 INFO -----------------------------------------------------------
2022-03-09 09:07:58,517 INFO Program version : 0.8.1
2022-03-09 09:07:58,517 INFO Database version : 0.8.0
2022-03-09 09:07:58,517 INFO Influxdb version : 0.8.0
2022-03-09 09:07:58,517 INFO Please note that the the tool is still under development, various functions may disappear or be modified.
2022-03-09 09:07:58,517 INFO -----------------------------------------------------------
2022-03-09 09:07:58,517 INFO # Program parameters #
2022-03-09 09:07:58,517 INFO -----------------------------------------------------------
2022-03-09 09:07:58,518 INFO GRDF config : username = ******@****.**, password = ******
2022-03-09 09:07:58,518 INFO MQTT broker config : host = 192.168.88.150, port = 1883, clientId = gazou, qos = 1, topic = gazpar, retain = True, ssl = False
2022-03-09 09:07:58,518 INFO Standlone mode : Enable = True
2022-03-09 09:07:58,519 INFO Home Assistant discovery : Enable = False
2022-03-09 09:07:58,519 INFO Thresold options : Warning percentage = 80
2022-03-09 09:07:58,519 INFO Influxdb config : Enable = False
2022-03-09 09:07:58,519 INFO Price config : Default price = 0.07 €/kWh, default fix price = 0.9 €/day, path to file = /data
2022-03-09 09:07:58,519 INFO Database options : Force reinitialization = True, Path = /data
2022-03-09 09:07:58,519 INFO Debug mode : Enable = False
2022-03-09 09:07:58,519 INFO Check parameters...
2022-03-09 09:07:58,519 INFO Parameters are ok !
2022-03-09 09:07:58,519 INFO -----------------------------------------------------------
2022-03-09 09:07:58,519 INFO # Connexion to SQLite database #
2022-03-09 09:07:58,519 INFO -----------------------------------------------------------
2022-03-09 09:07:58,519 INFO Connexion to SQLite database...
Traceback (most recent call last):
File "app/gazpar2mqtt.py", line 891, in <module>
run(myParams)
File "app/gazpar2mqtt.py", line 74, in run
myDb.connect(G2M_VERSION,G2M_DB_VERSION,G2M_INFLUXDB_VERSION)
File "/home/airvb/gazpar2mqtt-main/app/database.py", line 162, in connect
os.mkdir(self.path)
PermissionError: [Errno 13] Permission denied: '/data'
`
from gazpar2mqtt.
Bizarre. J'ai vérifié le code, je ne comprends pas pourquoi ton argument n'est pas pris en compte. Faut que je teste chez moi.
from gazpar2mqtt.
J'ai reproduis l'anomalie. Je fais la correction.
from gazpar2mqtt.
C'est corrigé directement dans le main. Je te laisse vérifier.
from gazpar2mqtt.
Super ça fonctionne.
Je continue à explorer les différentes fonctions.
MERCI
from gazpar2mqtt.
Related Issues (20)
- Attribution pour un portage? HOT 3
- Seuil du mois en cours égal au seuil du mois passé
- Ajout des données transmises au fournisseur
- Probleme installation docker HOT 6
- InfluxDB HOT 10
- Grafana dashboard
- Addon update on ARM/v7 HOT 30
- Installation HOT 15
- Unable to login to GRDF website HOT 3
- ERROR Mqtt on_disconnect callback : broker has been disconnected unexpectly HOT 1
- Home Assistant discovery mode : publish error when alias is None HOT 8
- incorrect device class gas HOT 1
- Connexion MQTT KO HOT 2
- Use energy values as first line. HOT 3
- Connection issue when password contains any special character HOT 11
- Connect to InfluxDB using HTTPS HOT 3
- Connexion impossible au site GRDF HOT 14
- Compatibilité Energy dashboard HOT 1
- Captcha solution HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gazpar2mqtt.