sr258 / h5p-cli-creator Goto Github PK
View Code? Open in Web Editor NEWUtility to mass create H5P content from the command line
License: MIT License
Utility to mass create H5P content from the command line
License: MIT License
Hello Mr. Rettig,
first of all thank you very much for creating and providing the cli-creator.
I know you have a lot on your plate and hate to be a nuisance.
Nevertheless I would like to ask you to show me a way how it would be possible to include the images or audio files that can be used to create dialog.h5p and flash.h5p files via dialog1.csv and flash1.csv, if they can not be found under a url, but locally on your own computer, in my case a Linux system.
With kind regards
Josef Schippers
Hi Sebastian,
Just tested your h5p-cli-creator to generate H5P flashcards. I do manage to output a correctly formed H5P file, but the contents of my cvs file are not present in the Contents.
Maybe this error can help, when I run your program (on Windows 64 bits) this is what I get:
C:\h5p-cli-creator>node ./dist/index.js flashcards aaa.csv outputfile4.h5p -l=en -n="academicFC"
Creating flashcards content type.
Downloaded content type H5P.Flashcards from H5P hub. (1853874 bytes)
(node:13372) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Stored H5P package at outputfile4.h5p.
and inside the h5p output file, here is the content, with the empty cards:
{"description":"Flashcards","cards":[{},{}],"showSolutionsRequiresInput":true,"caseSensitive":false,"progressText":"Card @card of @ToTal","next":"Next","previous":"Previous","checkAnswerText":"Check","defaultAnswerText":"Your answer","correctAnswerText":"Correct","incorrectAnswerText":"Incorrect","showSolutionText":"Correct answer","results":"Results","ofCorrect":"@score of @ToTal correct","showResults":"Show results","answerShortText":"A:","retry":"Retry"}
Hi,
a have tried this tool a while ago and evreything was fine.
Now a have problems with the dialogcards. The example file "dialog1.csv" leads to a "outputfile.h5p" that can not be displayed correctly in lumi or in moodle. The question and answer texts are missing.
It may be, that it's because the DialogCards are in a new Version in lumi and possibly in moodle too. lumi is version 0.9.1.0 and the module DialogCards was updated today.
What can i do to fix this problem?
Thanks in advance.
Horst
I created a dialog cards set, it works if uploaded to a H5P activity except for the impages, although all images exist there.
Besides, if insert the dialog cards h5p file to a book via editor, it does now appear properly, just stucking there.
While the falsh cards work perfectly in both above cases.
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.