jhulframework / phpserver4odk Goto Github PK
View Code? Open in Web Editor NEWPHP Server for ODK Collect
License: MIT License
PHP Server for ODK Collect
License: MIT License
I don't see where the newly submitted forms are validated before they a stored.
I just discover this PHP implementation I was looking for and find out the latest commit on 1 oct 2018
=> Warning: This project is abandoned
Why?
See: https://github.com/opendatakit/opendatakit/wiki/ODK-2.0-Synchronization-API-(RESTful)
There is a plugin for Aggregate.
The nice think about ODK2 is the bi-directional sync support.
Very nice to see an alternative aggregate server that should make it much easier and quicker to put up self hosted instances.
How about utilizing all the nice functionality a nextcloud installation would give you to run an php aggregate server as a plugin for it? That should also make multi-user support much easier to implement.
Nice project!
I didn't check the code, but it seems that the OpenRosa Form Discovery API is not implemented. I only see a very old version that Aggregate supports for backwards compatibility (if I remember correctly) of ancient versions of ODK Collect. In ODK Aggregate the correct version is shown if you supply the special 'X-OpenRosa-Version: 1.0' header.
Ancient: curl https://opendatakit.appspot.com/formList
Correct: curl -H "X-OpenRosa-Version: 1.0" https://opendatakit.appspot.com/formList
I'd recommend doing the same as Ona and KoboToolbox and only implement the correct /formList, unless you need support for ancient ODK Collect versions, see e.g. https://kc.kobotoolbox.org/martijnr/formList. Note they show this listing even if the special header is not supplied - very helpful for data-collection-client developers such as myself.
Once this is implemented, I'd be happy to link your demo site with odk.enke.to, so you can view forms, and submit data, in the browser with Enketo. You'd just have to replace the demo forms with modern ones created with XLSForm/Pyxform (many of the ones currently hosted don't have the correct syntax, or have rather exotic syntax that is not supported (any longer) in Enketo).
Hi,
I tested your code. The installation, download to collect, and upload a submission to server are all OK. However, when I try to view the submission on the portal, I am getting this error:
Jhul\Components\EX\Sys\Handlers\Debug
ERROR_NO_READ_ACCES to field "_modules\main\models\data\M::ik"
Error(Fatal) - 1
/var/www/required/odk/0.1/framework/jhul/Jhul/Components/Database/Store/Data/_Base.php:112
Can you help me out about what is going wrong?
Thanks,
Saad
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.