Mac OS
- Issues with Makefile: Download latest version of serialbasedprotocol folder contents from here.
- Change directory to your current Engine Installation and then to syslib folder.
- Unzip the perifupdate.zip file downloaded in step (2)
- Change directory to serailbasedprotocols and run command "make"
- Copy the libserial.dylib file from syslib/serialbasedprotocols/library to /Library/Java/Extensions/ folder
Raspberry Pi (or Other smaller Memory size Controllers)
...
Background
TQLEngine UI supports importing of projects whose contents (as .zip) are provided as HTTP downloadable file. In some cases the controllers on which TQLEngine is installed my not have proper / stable internet connection. Therefore importing of projects may be come problematic. Here are the steps on how to import projects where there is no internet connection.
- Download and install TQLEngine using normal procedure outlined here.
- Cd to TQLEngine installation folder
- Create directories:
- mkdir -p resources/fileserver/deploy
- mkdir localrepo
Create a file named "GenericStaticFile.mqp.xml" in resources/fileserver/deploy folder with content:
Code Block language xml title Serve Files Locally linenumbers true <NewPackage> <RESTHeaders> <Headers> <Connection>close</Connection> <Access-Control-Allow-Origin>*</Access-Control-Allow-Origin> <Access-Control-Allow-Methods>GET, POST, PUT </Access-Control-Allow-Methods> <Access-Control-Allow-Headers>Content-Type, X-Atomiton-Studio-Key,X-Atomiton-Session-Key </Access-Control-Allow-Headers> </Headers> </RESTHeaders> <NewFacetInstance fid='localfiles' name='File' Type='SffHttpStaticFileFacet'> <OnActivate> <Process BasePath='.' Resource='localrepo' TailPath='index.html'> <Include>RESTHeaders</Include> </Process> </OnActivate> </NewFacetInstance> </NewPackage>
Add this entry to sff.local.config.xml file
Code Block language xml title Sff Local Config file linenumbers true <sff.local.deploy>resources/fileserver/deploy</sff.local.deploy>
- Restart the engine.
You can serve any file in localrepo folder using the endpoint
Code Block language xml title Files EndPoint linenumbers true http://<HostORIPofTQLEngine>:<PortOfTQLEngine>/fid-localfiles/localrepo/<NameOfFileYouWantTOView>
- If you export the project from TQLStudio or get project zip files from elsewhere you can always copy the zip files to localrepo folder on the controller machine using (scp or other commands)
- Now you can import the project using endpoint in step 7.