vingerha / pronote2mqtt Goto Github PK
View Code? Open in Web Editor NEWExtracts pronote into sqlite-db and makes available in MQTT, adds sensors to HA
License: MIT License
Extracts pronote into sqlite-db and makes available in MQTT, adds sensors to HA
License: MIT License
Bonjour,
retour en classe, je repars avec 2 enfants cette année, mais pour chaque ca plante
ca se logge bien, j'ai des données récupérées (en mode debug je les vois), mais après le Collecting Lessons, message d'erreur
pareil pour student1 et student2
2023-09-12 18:47:43,364 INFO got onglets data.
2023-09-12 18:47:43,364 INFO Collecting Student---------------------------------------------------
2023-09-12 18:47:43,365 INFO Skipping Grades and Averages---------------------------------------------------
2023-09-12 18:47:43,365 INFO Collecting Periods---------------------------------------------------
2023-09-12 18:47:43,365 INFO Collecting Evaluations---------------------------------------------------
2023-09-12 18:47:43,554 INFO Collecting Absences---------------------------------------------------
2023-09-12 18:47:43,792 INFO Collecting Lessons---------------------------------------------------
2023-09-12 18:47:44,415 ERROR Unable to properly connect for Student 1
Peut être un élément "vide" en début d'année qui plait pas ?
En debug je vois les appels qui semblent marcher sur la page emploi du temps avant la deconnexion. Pas trop d'idée sur comment gratter.
Bonjour, l'url du pronote de mon fils n'est pas sous la forme 'https://'+prefix_url+'.index-education.net/pronote/eleve.html mais 'http://IP_du_pronote/parent.html'
comment faire pour me connecter car si je modifie l'adresse dans pronote.py client = pronotepy.Client('https://'+prefix_url+'.index-education.net/pronote/eleve.html' par 'http://'+prefix_url+/'parent.html' elle revient a pronotepy.Client('https://'+prefix_url+'.index-education.net/pronote/eleve.html' après redémarrage du docker
Hi I got this problem:
$docker run --name pronote2mqtt_test --tty -v /home/barry/pronote2mqtt/app:/app -v /home/barry/pronote2mqtt/data:/data vingerha/pronote2mqtt:latest
Using '/app' as APP directory
Param.py non existing, copying default to app...
pronote.py non existing, copying default to app...
pronote2mqtt.py non existing, copying default to app...
pronote2mqtt.py non existing, copying default to app...
mqtt.py non existing, copying default to app...
Traceback (most recent call last):
File "/app/pronote2mqtt.py", line 16, in <module>
import hass
ModuleNotFoundError: No module named 'hass'
barry@mbp2010:~/pronote2mqtt$ docker run vingerha/pronote2mqtt:latest ls app
Using '/app' as APP directory
database.py
hass.py
mqtt.py
param.py
pronote2mqtt.py
pronote.py
requirement.txt
barry@mbp2010:~/pronote2mqtt$ ls -l app
total 96
-rw-r--r-- 1 root root 19965 May 6 15:35 database.py
-rw-r--r-- 1 root root 3033 May 6 15:35 mqtt.py
-rw-r--r-- 1 root root 8939 May 6 15:35 param.py
-rw-r--r-- 1 root root 28623 May 6 15:35 pronote2mqtt.py
-rw-r--r-- 1 root root 25353 May 6 15:35 pronote.py
drwxr-xr-x 2 root root 4096 May 6 15:35 __pycache__
Note lack of hass.py
Is it due to entrypoint.sh lines 32-34 ?
if [ ! -f "$APP/database.py" ]; then
echo "hass.py non existing, copying default to app..."
cp /app_temp/hass.py "$APP/hass.py"
database.py should be hass.py?
As a beginner in Docker I am not sure how to "get into" the image to change that entrypoint.sh:
barry@mbp2010:~/pronote2mqtt$ docker run vingerha/pronote2mqtt:latest vi entrypoint.sh
Using '/app' as APP directory
/usr/local/bin/entrypoint.sh: 37: exec: vi: not found
I want to map /app so I can easily set my own pronote and mqtt parameters.
Thanks
Note to self: fixed with pronotepy master.zip on 2022-03-22, awaiting release
This pronotepy fix also allows to extract 'current_period' for punishments
bonjour, je ne comprent pas comment faire un docker compose pour pronote peu tu m'aider?
Hello,
New ent are implemented could you please upgrade in the docker ?
Thanks
Hello,
Got two kids with two different ent.
I've noticed that if stutent1 failed (pronote not already activated for him) the application does not process stutent2.
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.