Coder Social home page Coder Social logo

Comments (19)

Fabio53443 avatar Fabio53443 commented on August 20, 2024 1

Ma posso anche usare il template che avevi allegato nella prima versione o ci sono dei conflitti?

Dovrebbe andare bene, non ho cambiato nulla su quella parte.
Grazie per il tutorial! Lo aggiungo appena ho il pc sottomano ;)
Chiudo anche questo issue che sembra essere risolto

from cvvtonotion.

Gabbo144 avatar Gabbo144 commented on August 20, 2024

Ok, adesso mi da lo stesso errore che ha dato a te.

> Notion To [email protected] sync
> node ./src/main.js


     █▒▒    █▒▒         █▒▒ █▒▒         █▒▒        █▒▒                   █▒▒▒     █▒▒              █▒▒

  █▒▒   █▒▒  █▒▒       █▒▒   █▒▒       █▒▒         █▒▒                   █▒ █▒▒   █▒▒              █▒▒    █▒

 █▒▒          █▒▒     █▒▒     █▒▒     █▒▒        █▒█▒ █▒    █▒▒          █▒▒ █▒▒  █▒▒    █▒▒     █▒█▒ █▒        █▒▒     █▒▒ █▒▒
 █▒▒           █▒▒   █▒▒       █▒▒   █▒▒           █▒▒    █▒▒  █▒▒       █▒▒  █▒▒ █▒▒  █▒▒  █▒▒    █▒▒   █▒▒  █▒▒  █▒▒   █▒▒  █▒▒
 █▒▒            █▒▒ █▒▒         █▒▒ █▒▒            █▒▒   █▒▒    █▒▒      █▒▒   █▒ █▒▒ █▒▒    █▒▒   █▒▒   █▒▒ █▒▒    █▒▒  █▒▒  █▒▒
  █▒▒   █▒▒      █▒▒▒▒           █▒▒▒▒             █▒▒    █▒▒  █▒▒       █▒▒    █▒ ▒▒  █▒▒  █▒▒    █▒▒   █▒▒  █▒▒  █▒▒   █▒▒  █▒▒
    █▒▒▒▒         █▒▒             █▒▒               █▒▒     █▒▒          █▒▒      █▒▒    █▒▒        █▒▒  █▒▒    █▒▒     █▒▒▒  █▒▒


Version: 1.1.1

██████╗ ███████╗██╗    ██╗ █████╗ ██████╗ ███████╗██╗
██╔══██╗██╔════╝██║    ██║██╔══██╗██╔══██╗██╔════╝██║
██████╔╝█████╗  ██║ █╗ ██║███████║██████╔╝█████╗  ██║
██╔══██╗██╔══╝  ██║███╗██║██╔══██║██╔══██╗██╔══╝  ╚═╝
██████╔╝███████╗╚███╔███╔╝██║  ██║██║  ██║███████╗██╗
╚═════╝ ╚══════╝ ╚══╝╚══╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚══════╝╚═╝

There is sensitive data below, such as your Notion API key and your CVV login. Redact before posting.

Notion API key: * Notion database ID: * login: * CVV password: *

C:\Users\gabri\Downloads\CVVtoNotion-master\node_modules\classeviva.js\dist\src\classes\Rest.js:600
        const year = date.getFullYear();
                          ^

TypeError: date.getFullYear is not a function
    at #formatDate (C:\Users\gabri\Downloads\CVVtoNotion-master\node_modules\classeviva.js\dist\src\classes\Rest.js:600:27)
    at Rest.getAgenda (C:\Users\gabri\Downloads\CVVtoNotion-master\node_modules\classeviva.js\dist\src\classes\Rest.js:161:90)
    at agendafun (file:///C:/Users/gabri/Downloads/CVVtoNotion-master/src/main.js:66:33)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///C:/Users/gabri/Downloads/CVVtoNotion-master/src/main.js:149:14

Node.js v18.17.1

from cvvtonotion.

Fabio53443 avatar Fabio53443 commented on August 20, 2024

Git pull e dovrebbe andare tutto liscio.
L'errore era abbastanza scemo, per qualche motivo avevo deciso di trasformare la data in una stringa e questo faceva si che js giustamente non riconoscesse più le funzioni legate agli oggetti Date

from cvvtonotion.

Gabbo144 avatar Gabbo144 commented on August 20, 2024

Sì, infatti ho risolto anche io.
const year = new Date().getFullYear(); const month = new Date().getMonth() + 1; const day = new Date().getDate();
Però ho un altro errore:

node:internal/process/esm_loader:97 internalBinding('errors').triggerUncaughtException( ^ An error happened: you can only access from previous school year (503) ❌ (Use node --trace-uncaught ...to show where the exception was thrown)

adesso provo con la nuova versione

p.s. grazie mille di tutto l'aiuto che mi stai dando

from cvvtonotion.

Fabio53443 avatar Fabio53443 commented on August 20, 2024

eh l'errore è perchè probabilmente non hai ancora accesso all'agenda dell'anno scolastico corrente. Se logghi da CVV web infatti non esiste proprio l'agenda per ora. Bisogna aspettare che inizia scuola e controllare se va ;)

from cvvtonotion.

Gabbo144 avatar Gabbo144 commented on August 20, 2024

Confermo. Inoltre l'errore è lo stesso anche con la nuova versione. Beh, non mi resta che aspettare questi 7 giorni... poi ti dico. Intanto grazie!

from cvvtonotion.

Fabio53443 avatar Fabio53443 commented on August 20, 2024

Io inizio l'11! ti faccio sapere. E di nulla.

from cvvtonotion.

Gabbo144 avatar Gabbo144 commented on August 20, 2024

Ah, immagino tu sia più verso il sud. Una domandaa: dato che sono nuovo a notion, come mi consigli di integrare il database? Tipo con un calendario?

from cvvtonotion.

Fabio53443 avatar Fabio53443 commented on August 20, 2024

Intorno a Roma, actually, ma la nostra scuola ha deciso di aprire qualche giorno prima per poter mettere quei 4 giorni strategici in modo da fare alcuni ponti.

Per quanto rigurada il mio setup, ho una view gallery divisa in domani, prossimi 7 giorni, prossimi 30 giorni, e ho aggiunto delle proprietà status in modo da poter tracciare cosa devo fare e cosa ho già iniziato.
image
Con questo setup mi trovo abbastanza bene, ma non ho ancora avuto molto modo di provarlo visto che ho scritto questo programma a fine maggio quando di compiti nonc e ne erano praticamente più lol.

Altrimenti c'è il calendario più classico che funziona abbastanza bene comunque.

Comunque, se non lo hai già fatto, ti consiglio di usare il piano education per avere il pro gratis. Se hai la mail che non riceve da fuori il dominio puoi comunque creare l'account utilizzando Gsuite e dovrebbe andare.

from cvvtonotion.

Gabbo144 avatar Gabbo144 commented on August 20, 2024

Interessante. Non é che riusciresti a passarmi una copia? E riguardo all'account istituzionale, devo creare un nuovo indirizzo email? Perché mi ricordo che molto tempo fa con quello delle medie avevo provato con GitHub pro ma non andava

from cvvtonotion.

Fabio53443 avatar Fabio53443 commented on August 20, 2024

Ho creato una copia di quella view nel template;
Per quanto rigurada la mail istituzionale, mi pare che basta che crei un nuovo account notion facendo login con google e utilizzando la mail di scuola (se la tua scuola usa Google Workspace).
Per Github io ho mandato uno screenshot della pagella e gli è andato bene. Basta che c'è il tuo nome completo e status da studente da qualche parte in un foglio di carta intestata della scuola.

from cvvtonotion.

Gabbo144 avatar Gabbo144 commented on August 20, 2024

Ho capito. Proverò sia con github che con Notion, grazie :)

from cvvtonotion.

Gabbo144 avatar Gabbo144 commented on August 20, 2024

Ma posso anche usare il template che avevi allegato nella prima versione o ci sono dei conflitti?

from cvvtonotion.

Gabbo144 avatar Gabbo144 commented on August 20, 2024

Ciao, per ringraziarti dell'aiuto e aiutare altre persone a cui potrebbe interessare il progetto, ho fatto un tutorial su Youtube (non in elenco) che puoi mettere in readme.md
non ti preoccupare se ogni tanto si vede la key, tanto ho già eliminato quella integration e non è mai stata collegate effettivamente a niente
https://youtu.be/bw_Ae9YystY
Ovviamente non è niente di che, però può aiutare

from cvvtonotion.

Fabio53443 avatar Fabio53443 commented on August 20, 2024

@Gabbo144 Funziona!
image

from cvvtonotion.

Gabbo144 avatar Gabbo144 commented on August 20, 2024

Grande! Tra poco comincio anche io, ti aggiorno!

from cvvtonotion.

Fabio53443 avatar Fabio53443 commented on August 20, 2024

@Gabbo144
Grazie :) Ho riorganizzato il codice un po' e ora è in grado di salvare in notion anche la materia; te lo dico perchè bisogna creare una proprietà "subject" di tipo testo su notion o non va ;)

from cvvtonotion.

Gabbo144 avatar Gabbo144 commented on August 20, 2024

Ah ok. Allora riscarico tutto. hai aggiunto la proprietà subject anche al template o lo devo fare manualmente?

Edit: ho visto ora che è presente

from cvvtonotion.

Fabio53443 avatar Fabio53443 commented on August 20, 2024

Yes, in teoria non serve ricreare il db ma basta aggiungere la proprietà manualmente btw. comunque -- usiamo #3 per parlare così lasciamo questo issue chiuso ;)

from cvvtonotion.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.