My last update was blocked by Google because of some issues I understand and some who are fucking stupid. :(
Prominent disclosure not found Your app must display a prominent disclosure through a pop-up alert before your app’s location runtime permission. [..]
Include at least the following sentence, adapted to include all the relevant features requesting access to location in the background in the app that are readily visible to the user: “This app collects location data to enable ["feature"], ["feature"], & ["feature"] even when the app is closed or not in use.”
Somehow I'm now forced to explain one of the biggest tech company in the world the use case of an IDE.
Finally I could implement the last missing part of my concept for LabDroid: Variables!
Now it's possible to store information and reuse them on another run of the same project.
For example: If you would make a RC controlled car which is equipped with an Android phone running LabDroid, you could store/accumulate usage data like driven distance or used energie.
How to use
1. Step: Add the variables you need. You can choose between number or string as a dataytype. The String datatype can also be used to store JSON serialized objects.
2. Step: Connect them to your script.
3. Step: Use them in your script. :)
4. Step: And here is the result!
Note: The variables will be saved if the project is finished. During runtime they stay in the memory to provide the best possible performance.
Beside of another feature I will add this year, I want to focus more on making the application stable, improve UX and add more components.
Just published a new version today. This update includes the imorved front-end editor.
To be honest this is the worst tested update yet. I just needed some good feelings from pressing the release button. The last weeks at work have been quite exhausting for me.
I will now focus more on stability and hopefully update in a 1-2 week rhythm.
Recently I didn't have time to work on LabDroid but it looks quite promising that it will change soon! In the next few weeks I should be able to finally release the big front-end update that allows you to create more complex graphical user interfaces for your projects.
In the meanwhile I updated the website, hope you like it.
functiongetRandom(max) {
return1+Math.floor(Math.random() * Math.floor(max))
}
let force = 0.0let rolled = ""while(true) {
const accel = $in(0)
force += Math.abs(accel.x) + Math.abs(accel.y)
if (force > 100.0) // Keep the dice on the floor
force = 90.0elseif (force > 30.0) {
force *= 0.6
rolled += getRandom(6) + " "
}
elseif (force > 10) // The dice wiggles out
force *= 0.6else {
if (rolled.length > 0) {
$log(rolled + "*" + getRandom(6) + "*")
rolled = ""
$sleep(1000) // Give the dice some time to cool down
}
force = 0.0
}
}
And the output:
Still thinking about how I could share some example projects. Hackaday, Instructable, YouTube or Github?! :/