nearwood / msqur Goto Github PK
View Code? Open in Web Editor NEWOnline Megasquirt/Tuner Studio MSQ file viewer
Home Page: https://msqur.com/
License: GNU General Public License v3.0
Online Megasquirt/Tuner Studio MSQ file viewer
Home Page: https://msqur.com/
License: GNU General Public License v3.0
So other applications can use the service. Even uploading files via PUT and some engine details. That'd be cool. Note that I might want to dole out API keys to deter abuse.
Skip the try catch (unless we expect errors and can continue), and use the error_handler callback for major problems (and send a 500 response, for example).
Add some more SEO optimizations.
not work
Uploaded files were throwing errors about nullable columns. Prod doesn't seem to have this issue but a contributor did and I did upon starting up the project on my local.
Line 81 in 5d6a746
The insert statement does not insert all metadata fields, but this works in prod somehow. Some DB update probably changed default behavior. Solution may be to just make the columns nullable. Yeah, that's real easy than trying to track this down.
My map for the supra I uploaded for 7m-gte does not have a detection for ms3 files
For server-side suggested autocompletion, compile a list of engine codes and manufacturers. Will help keep out clutter, though users should still be able to enter in custom input.
Hopefully between myself and @andreika-git we will have some progress
Me no see them.
and decode on backend.
Otherwise it's janky, esp. with API.
Application is ancient by modern web standards. Works fine, but the combination of PHP + jQuery + custom CSS doesn't lend itself to mobile development very well. ~80% of traffic is from mobile.
Having a usable mobile interface would help people using a laptop (possibly without internet) to tune, but want to compare on a mobile.
Ideally, the data would be completely separate from the view (eg, split into API and front end).
Options:
Without defined env. vars, rsync tries to sync src with "$DEPLOY_DIR/" aka "/".
Do sanity check before using rsync.
Allow logged in user to post MSQs, so they can search/browse/manage their MSQs. Also allow anonymous uploads, but perhaps they dissappear after a while/lack of hits.
OpenID? Definitely don't want to roll my own.
Linking the website on Facebook gives weird preview images for the main page or a specific tune file.
Which totally breaks XML parsers, go figure.
Add download link added to browse and view pages. Perhaps behind a registration wall.
Not just when viewed.
Update and configure msqur.com to take down the trunk and run any DB scripts, etc. to update once a week or so.
This will involve:
#!ini
[Constants]
page = 5
; name = class, type, offset, shape, units, scale, translate, lo, hi, digits
veTable1 = array , U08, 0, [16x16], "%", 1.00000, 0.00000, 0.00, 255.00, 0 ; * (144 bytes)
[TableEditor]
; table_id, map3d_id, "title", page
table = veTable1Tbl, veTable1Map, "Fuel VE Table 1", 5
topicHelp = "file://$getProjectsDirPath()/docs/Megasquirt2_TunerStudio_MS_Lite_Reference-3.3.pdf#ve1"
; constant, variable
xBins = frpm_table1, rpm
yBins = fmap_table1, fuelload
zBins = veTable1
upDownLabel = "RICHER", "LEANER"
gridOrient = 250, 0, 340 ; Space 123 rotation of grid in degrees.
[Menu]
;----------------------------------------------------------------------------
; There are five pre-defined values that may be used to define your menus.
; The first four allow access to the "standard" dialog boxes, the last one
; merely draws a separator (horizontal line) in the menu.
;
; std_constants
; std_enrichments
; std_realtime
; std_warmup
; std_accel
;
; std_separator
;
; Additionally, to support MegaSquirt-II firmware, there are two standard
; dialogs to generate its three embedded tables. The first of these acts
; like Roger Enns' EasyTherm, but only works for MS-II. The second one
; generates the internal AFR table required for proper closed loop operation
; in MS-II. Use these without page numbers, as they will just be ignored
; in any case.
;
; std_ms2gentherm
; std_ms2geno2
;
; If you use any of the std_constants, std_enrichments or std_warmup
; editors, they may be optionally suffixed with a page number (only
; useful for multi-page code variants), which causes them to edit the
; specified page. If you leave off the page specifier, they edit logical
; page one as specified in the Constants section.
;
; There are four special menu names, which when used append to the standard
; menus of the same name instead of creating a new one. The menu names
; are "File", "Communications", "Tools" and "Help".
;
;----------------------------------------------------------------------------
menuDialog = main
menu = "Basic/Load Settings"
subMenu = base, "Engine and Sequential Settings"
subMenu = generalsettings2, "General Settings"
menu = "F&uel Settings"
subMenu = overrun, "Over-Run Fuel Cut"
subMenu = std_separator
subMenu = egoControl, "&EGO Control"
subMenu = afrTable1Tbl, "A&FR Table 1", 0
subMenu = afrTable2Tbl, "AF&R Table 2", 0, { dualTable}
subMenu = std_separator
subMenu = veTable1Tbl, "Fuel VE Table &1", 0,{ ((algorithm != 5) || ((algorithm == 5) && (feature7_maftrim))) && (feature4_0VEtblsize==0) }, { (feature4_0VEtblsize==0) }
menu = "3D &Tuning Maps"
subMenu = veTable1Map, "Fuel VE Table &1", 0, { (feature4_0VEtblsize==0) && ( ((algorithm != 5) || ((algorithm == 5) && (feature7_maftrim))))}, { (feature4_0VEtblsize==0) }
[SettingContextHelp]
veTable1 = "The main fuel table (1). Larger VE values mean more fuel, smaller mean less fuel."
If an MSQ can't parse because of an error with the INI, for example, it caches that error so when the INI is added it won't try to reparse and will just return the cached error.
In the warmup tables and whatnot it looks like some temperatures get output with lots of decimal places. This might due to unit preference, but regardless it's not hard to change. For Fahrenheit we might want to round, for Celsius maybe 10ths precision.
Should be easy.
Add comments field when uploading. One per file? One per upload?
From a tune file:
<div id="settings">
<img id="settingsIcon" src="view/img/settings3.png"/>
<div id="settingsPanel" style="display:none;">
<label><input id="colorizeData" type="checkbox" />Colorize</label>
<label><input id="normalizeData" type="checkbox" title="Recalculate VE table values to a 5-250 unit scale"/>Normalize Data</label>
<label><input id="normalizeAxis" type="checkbox" disabled />Normalize Axis</label>
</div>
</div>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" ng-app="msqur">
<head>
<title>MSQur</title>
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.