Offline Geogebra
ralfkrause A good place for this file is a folder on the start page of the MoodleBox ... to remember the usage of this file I added a subfolder geogebra and uploaded the file deployggb.js.
First: Thanks ! Bravo
Second: what do you mean by this last sentence ? What is "the start page" ? Is the subfolder created using an ftp client ?
Thanks again.
- Edited
UlrichKraus
The start page is the frontpage of the MoodleBox http://moodlebox.home. Switch Edit mode
on. Add a Moodle folder resource and a subfolder geogebra
. Upload both files deployggb.js
and fflate
into the subfolder and save. Everything you place on the start page can be used by every user ... and also without any login.
- Edited
UlrichKraus Here a little applet I made yesterday
The geogebra plugin only allows to upload ggb files so I renamed material-puuxpzck.zip
to material-puuxpzck.ggb
.
ralfkrause You're my hero !
Two questions tough:
- Once uploaded, a right-click on the deploy file does not give me the absolute link. Is there something I am doing wrong ?
- Where do I find th fflate file you are talking about ?
Thanks again.
- Edited
- When you uploaded the files and saved the folder then you should see the folder resource. Open it and open the subfolder. Now you can right click on both files. The browser shows its content menu.
- Get https://www.geogebra.org/apps/deployggb.js in your browser and save the content as
deployggb.js
. Get https://unpkg.com/fflate in your browser and save the content asfflate
. I found both urls in the plugin admin settings as the standard for the plugin.
It's not very difficult to get the right positions because the terms get green icons.
UlrichKraus
You found a forum post https://moodle.org/mod/forum/discuss.php?d=421071 to setup a local copy of the file deployggb.js
. It's not a good idea to put the file into the boost theme folder. Yes, the boost theme is static but you will get problems when you upgrade your MoodleBox.
- Edited
ralfkrause I've already thought about this, but it's unfortunately not enough. See here for more info.
The problem is file deployggb.js
looks for a online codebase, so it doesn't work totally offline. This will need a fix in the GeoGebra Moodle plugin. I'm working on a pull request.
Well well well.
It seems to work just fine, but I was not able to see it until I switch from Firefox to Safari ?!
Also, it is not supported by the iOS Moodle app, which is not that important if you let students use their browsers.
Again thanks a lot !
This conversation should lead to a tutorial on the Moodle Box site
ralfkrause I know It is just a proof of concept, since I only began to make geogebra applets yesterday. I have much more ambitious ideas upcoming
)
UlrichKraus Well well well. It seems to work just fine (β¦)
Are you sure your browser has not a cached copy of the codebase? Try please after having flushed your cache.
UlrichKraus
No, geogebra is an additional plugin without any Moodle app support. You need to use the geogebra things in a iPad browser.
UlrichKraus
The geogebra plugin comes without any Moodle app support. So you must use the browser for all geogebra things.
- Edited
Nicolas Holy shit !!! You're right ! It does not work any longer
Nicolas I will the wait for this update.
Till then, I will work on my courses hoping it'll work when I am done
Thanks to both of you.
Pull request done: https://github.com/projectestac/moodle-mod_geogebra/pull/81. Hopefully will be integrated and published soon!
- Edited
Edit: the following procedure is not needed any more, since the current version of the plugin, released March 21, 2023, has the feature of setting a local codebase (my PR, was accepted ).
See this HOWTO to enable offline GeoGebra on your MoodleBox.
- Install GeoGebra plugin
- Edit the plugin code following the diff here. Be very very precautious, this could brick your Moodle installation. You're on your own
- Download
fflate
and GeoGebra codebase to your MoodleBox and unzip the codebase:ssh moodlebox.home wget -c https://unpkg.com/fflate -O fflate.js wget -c https://download.geogebra.org/package/geogebra-math-apps-bundle -O geogebra-bundle.zip unzip geogebra-bundle.zip
- Create a folder where to put these files:
mkdir -p /var/www/moodle/lib/GeoGebra/
- Move
fflate.js
there:mv fflate.js /var/www/moodle/lib/GeoGebra/
- Move GeoGebra codebase there too:
mv GeoGebra/* /var/www/moodle/lib/GeoGebra/
- Fix ownership and permissions:
sudo chown -R www-data /var/www/moodle/lib/GeoGebra/ sudo chmod -R g+w /var/www/moodle/lib/GeoGebra/
- Go to GeoGebra plugin settings in Moodle: http://moodlebox.home/admin/settings.php?section=modsettinggeogebra
- Set the 3 paths to
- deployggb:
/lib/GeoGebra/deployggb.js
- codebase:
/lib/GeoGebra/HTML5/5.0/web3d
- fflate:
/lib/GeoGebra/fflate.js
- deployggb:
- Save, you're done
Nicolas That's what I thought: way above my pay grade
I think I'll keep this on my todo list for a while, until I understand everything you said.
Just a question though: if the moodlebox "bricks",, does it just mean that I have to flash a new SD card and upload my courses or does something worse happen ?
Thanks
Nicolas
Are you sure that the additional files must stay in the lib folder? When we install the geogebra plugin in a normal way then the plugin will be in the folder moodle/mod/geogebra
. Could it be better to install the additional files inside this folder?