I have a couple of ideas for the EZ-Robot team to consider that I think would be a nice addition to EZ-Builder.
1. When adjusting the volume slider from 100 on an EZ-B soundboard, say to about 60 for example, when a project is saved, closed, and reopened the volume goes back to the default 100. Would it be possable to add the ability to save the the changed volume level when a project is saved, so when it reopens the volume will still be set at 60 (or whatever value it was last set at when saved)?
2. Would you consider adding a "When button is released" script command to the mobile interface control?
Upgrade to ARC Pro
Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.
2) I can add a button released
To save the volume, you would have a script like this running:
Your init script would have a section like this
When EZ Cloud Variables are implemented, the "do something" lines would be replaced with pushvar() and pullvar() statements.
You can do something locally with the filewrite and fileread and other file manipulation commands, but they are really designed for adding lines to a file, not a single data element so the scripting would be fairly complex to keep the file from growing too large and to make sure you are reading the latest.
If you are handy with SQL Server, @d.cochran wrote EZ-DB to push data into and retreive data from a database: http://www.ez-robot.com/Community/Forum/Thread?threadId=5867
@Luis Vazquez is also working on a cloud variable storage app:
@rich also has something (I think running Python) that manages saving variables.
There are probably other ways I haven't seen or thought of, but this can get you started. (clearly, when pullvar and pushvar work, they will be the easiest, but you will need Internet access from your ARC).
Taking Alan's code a little further...
The init script
Note: This hasn't been checked in ARC, some tweaks may be needed
Thanks for that. It's much appreciated and will come in very handy. Top man.
Much like the signal strength bars you would find on a mobile/cell phone or laptop, it would be useful when controlling a robot, or for autonomous movement with a script, if a robot detects that the WiFi signal drops to one bar for example, it would stop, turn 180, and head back to where the signal was stronger.
What do you think? Good/bad idea, or already do'able with EZ Script?
My thoughts exactly about doing our own scripts to make the robot stop, turn ect, or with a soundboard file or SayEZB() audible alarm if needed as you suggested.