Calling JSON from your HISE instance - to make a simple versioning system....
-
@d-healey said in Calling JSON from your HISE instance - to make a simple versioning system....:
@orange said in Calling JSON from your HISE instance - to make a simple versioning system....:
@Lindon said in Calling JSON from your HISE instance - to make a simple versioning system....:
@orange as it should...
So is this normal because of the json file?
It's not a real website ;)
@Lindon said in Calling JSON from your HISE instance - to make a simple versioning system....:
OK check its working from in your favourite browser by using the URL:
https://davescoolpatreonsite.com/productversions/myCoolProductVersion.json
this should return and show you your json file.
I asked because of this :)
-
@orange If Lindon's set up a website called
davescoolpatreonsite
I think I have to take legal action :p -
@d-healey said in Calling JSON from your HISE instance - to make a simple versioning system....:
@orange If Lindon's set up a website called
davescoolpatreonsite
I think I have to take legal action :p:D
-
@Lindon Thanks for your tip!
-
@Lindon said in Calling JSON from your HISE instance - to make a simple versioning system....:
{
"Name": "MyCoolProduct",
"MajorVersion": 1,
"MinorVersion" : 0,
"MaintenanceVersion" : 0
}I am defining a local variable and Console.print like this:
local version_check_identifier = trace(response); Console.print(version_check_identifier);
In console I am seeing that exact text, it is ok.:
{ "Name": "MyCoolProduct", "MajorVersion": 1, "MinorVersion" : 0, "MaintenanceVersion" : 0 }
But how can we pull and check the MajorVersion, MinorVersion, MaintenanceVersion?
-
@Steve-Mohican
Perhaps:
local majV = response.MajorVersion
local minV = response.MinorVersion
etc...
-
@d-healey Oh, now it works! Thank you so much! :)
-
@Steve-Mohican Homework - https://www.w3schools.com/js/js_objects.asp :p
-
@Steve-Mohican
https://docs.hise.audio/scripting/scripting-in-hise/additions-in-hise.html#object-oriented-programming
Sorry, Dave began -